Skip to content

Commit

Permalink
Removing submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Casarrubias committed Dec 7, 2016
1 parent 82b1fac commit b37f916
Show file tree
Hide file tree
Showing 14 changed files with 172 additions and 2 deletions.
1 change: 0 additions & 1 deletion decorators/boot-script
Submodule boot-script deleted from 5ec2e7
1 change: 1 addition & 0 deletions decorators/boot-script/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export function BootScript(): any;
12 changes: 12 additions & 0 deletions decorators/boot-script/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions decorators/boot-script/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions decorators/boot-script/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* @author Jonathan Casarrubias
* @module BootScript Decorator
* @license MIT
* @description
* This decorator will return boot script instances
* This avoids the need of creating static bootscripts
**/
export function BootScript() {
function f(target: any)
{
function BootScriptInstance(reference: any)
{
return new target(reference);
}
return <any>BootScriptInstance;
}
return f
}
31 changes: 31 additions & 0 deletions decorators/boot-script/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@mean-expert/boot-script",
"version": "1.0.0",
"description": "FireLoop BootScript Decorator",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"index.js",
"index.js.map",
"index.d.ts",
"package.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/mean-expert-official/boot-script.git"
},
"keywords": [
"FireLoop"
],
"author": "Jonathan Casarrubias",
"license": "MIT",
"bugs": {
"url": "https://github.com/mean-expert-official/boot-script/issues"
},
"homepage": "https://github.com/mean-expert-official/boot-script#readme",
"dependencies": {},
"devDependencies": {}
}
14 changes: 14 additions & 0 deletions decorators/boot-script/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"moduleResolution": "node",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true
},
"files": [
"index.ts"
]
}
1 change: 0 additions & 1 deletion decorators/model
Submodule model deleted from b40551
1 change: 1 addition & 0 deletions decorators/model/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export function Model(arg?: { hooks?: {}, remotes?: {} }): any;
19 changes: 19 additions & 0 deletions decorators/model/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions decorators/model/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions decorators/model/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
declare var Object: any;
declare var module: any;
import { ModelRegister } from '@mean-expert/model-register/index';
/**
* @author Jonathan Casarrubias
* @module Model Decorator
* @license MIT
* @description
* This decorator will register fireloop models
**/
export function Model(arg: { hooks?: {}, remotes?: {} }) {
function f(target: any)
{
function ff(reference: any)
{
let instance: any = new target(reference);
if (!arg ||  Object.keys(arg).length === 0) {
return instance;
}
instance = Object.assign(instance, arg);
new ModelRegister(instance, reference);
return instance;
}
return <any>ff;
}
return f
}
32 changes: 32 additions & 0 deletions decorators/model/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@mean-expert/model",
"version": "1.0.9",
"description": "FireLoop Model Decorator",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"index.js",
"index.js.map",
"index.d.ts",
"package.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/mean-expert-official/model.git"
},
"keywords": [
"FireLoop"
],
"author": "Jonathan Casarrubias",
"license": "MIT",
"bugs": {
"url": "https://github.com/mean-expert-official/model/issues"
},
"homepage": "https://github.com/mean-expert-official/model#readme",
"dependencies": {
"@mean-expert/model-register": "1.0.5"
}
}
14 changes: 14 additions & 0 deletions decorators/model/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"moduleResolution": "node",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true
},
"files": [
"index.ts"
]
}

0 comments on commit b37f916

Please sign in to comment.