angular2-meteor-auto-bootstrap
Advanced tools
Comparing version 0.5.5 to 0.5.6-beta.1
var gulp = require("gulp"); | ||
var clean = require("gulp-clean"); | ||
var runSequence = require("run-sequence"); | ||
var gulpTypings = require("gulp-typings"); | ||
var exec = require('child_process').exec; | ||
var git = require("gulp-git"); | ||
var fs = require("fs"); | ||
// Install typings. | ||
gulp.task("typings",function(){ | ||
return gulp.src("./typings.json") | ||
.pipe(gulpTypings()); | ||
}); | ||
// Build TypeScript. | ||
gulp.task("tsbuild", function(callback) { | ||
gulp.task("tsc", function(callback) { | ||
exec("tsc", function (err, stdout, stderr) { | ||
@@ -23,10 +12,1 @@ console.log(stdout); | ||
}); | ||
gulp.task("git-add", function(){ | ||
return gulp.src("build/*") | ||
.pipe(git.add()); | ||
}); | ||
gulp.task("build", function(callback) { | ||
runSequence("typings", "tsbuild", "git-add", callback); | ||
}); |
import {Type, Provider, Component, ComponentRef} from '@angular/core'; | ||
import {BROWSER_PROVIDERS} from '@angular/platform-browser/src/browser_common'; | ||
import {BROWSER_APP_DYNAMIC_PROVIDERS} from '@angular/platform-browser-dynamic'; | ||
import {BROWSER_APP_PROVIDERS, BROWSER_PLATFORM_PROVIDERS} from '@angular/platform-browser'; | ||
import {BROWSER_APP_COMPILER_PROVIDERS} from '@angular/platform-browser-dynamic'; | ||
import {MeteorApp as App, METEOR_PROVIDERS} from 'angular2-meteor'; | ||
@@ -9,7 +9,7 @@ | ||
providers: Array<Type | Provider | any[]> = null): Promise<ComponentRef<any>> { | ||
return App.bootstrap(component, BROWSER_PROVIDERS, | ||
[BROWSER_APP_DYNAMIC_PROVIDERS, METEOR_PROVIDERS], providers); | ||
return App.bootstrap(component, BROWSER_PLATFORM_PROVIDERS, | ||
[BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS, METEOR_PROVIDERS], providers); | ||
} | ||
export function MeteorApp(args: any={}) { | ||
export function MeteorApp(args: any = {}) { | ||
return function(cls) { | ||
@@ -24,3 +24,3 @@ | ||
export function defineMetadata(cls: Type, args: any = {}) { | ||
let annotations = Reflect.getMetadata('annotations', cls) || []; | ||
const annotations = Reflect.getMetadata('annotations', cls) || []; | ||
@@ -27,0 +27,0 @@ annotations.push(new Component(args)); |
{ | ||
"name": "angular2-meteor-auto-bootstrap", | ||
"version": "0.5.5", | ||
"version": "0.5.6-beta.1", | ||
"author": "Dotan Simha <dotansimha@gmail.com> (http://github.com/dotansimha/)", | ||
"license": "MIT", | ||
"main": "build/index.js", | ||
"typings": "build/index.d.ts", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "gulp build" | ||
"clear": "rimraf dist", | ||
"typings": "typings i", | ||
"prebuild": "npm run clear && npm run typings", | ||
"build": "npm run build-only", | ||
"build-only": "gulp tsc", | ||
"prepublish": "npm run build" | ||
}, | ||
"peerDependencies": { | ||
"@angular/common": "^2.0.0-rc.3", | ||
"angular2-meteor": "^0.5.6-beta.1" | ||
}, | ||
"dependencies": { | ||
"@angular/common": "2.0.0-rc.1", | ||
"@angular/compiler": "2.0.0-rc.1", | ||
"@angular/platform-browser": "2.0.0-rc.1", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.1" | ||
"@angular/platform-browser": "^2.0.0-rc.3", | ||
"@angular/platform-browser-dynamic": "^2.0.0-rc.3", | ||
"@angular/compiler": "^2.0.0-rc.3" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.9.1", | ||
"gulp-clean": "^0.3.2", | ||
"gulp-git": "^1.7.0", | ||
"gulp-typings": "^1.3.0", | ||
"run-sequence": "^1.1.5", | ||
"typings": "^0.7.7", | ||
"typescript": "^1.7.5" | ||
"@angular/core": "^2.0.0-rc.3", | ||
"@angular/compiler": "^2.0.0-rc.3", | ||
"@angular/common": "^2.0.0-rc.3", | ||
"@angular/platform-browser": "^2.0.0-rc.3", | ||
"@angular/platform-browser-dynamic": "^2.0.0-rc.3", | ||
"es6-shim": "^0.35.0", | ||
"zone.js": "^0.6.12", | ||
"reflect-metadata": "0.1.2", | ||
"angular2-meteor": "^0.5.6-beta.1", | ||
"rimraf": "^2.5.2", | ||
"rxjs": "5.0.0-beta.6", | ||
"tsc": "^1.20150623.0", | ||
"typescript": "^1.8.0", | ||
"typings": "^1.3.0", | ||
"gulp": "^3.9.1" | ||
} | ||
} |
@@ -26,3 +26,3 @@ # angular2-meteor-auto-bootstrap | ||
```` | ||
npm install angular2 | ||
npm install @angular/core | ||
npm install angular2-meteor | ||
@@ -32,5 +32,5 @@ npm install angular2-meteor-auto-bootstrap | ||
And then import the `bootstrap` from THIS package (not from the angular2 package): | ||
And then import the `bootstrap` from THIS package: | ||
````js | ||
import {bootstrap} from 'angular2-meteor-auto-bootstrap/bootstrap'; | ||
import {bootstrap} from 'angular2-meteor-auto-bootstrap'; | ||
```` | ||
@@ -52,2 +52,2 @@ | ||
For more examples and working code, please refer to the `/examples/` folder in this repo. | ||
For more examples and working code, please refer to the `/examples/` folder in this repo. |
{ | ||
"compilerOptions": { | ||
"experimentalDecorators": true, | ||
"module": "commonjs", | ||
"target": "es5", | ||
"moduleResolution": "node", | ||
"noImplicitAny": false, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"moduleResolution": "node", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"sourceMap": false, | ||
"declaration": true, | ||
"outDir": "./build", | ||
"outDir": "./dist", | ||
"rootDir": "./modules" | ||
}, | ||
"filesGlob": [ | ||
"modules/**/*.ts" | ||
], | ||
"files": [ | ||
"modules/bootstrap.ts", | ||
"modules/index.ts", | ||
"typings/main.d.ts" | ||
"typings/index.d.ts" | ||
], | ||
"exclude": [ | ||
"examples", | ||
"node_modules", | ||
"atmosphere-packages" | ||
"dist", | ||
"node_modules" | ||
] | ||
} | ||
} |
{ | ||
"ambientDependencies": { | ||
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654", | ||
"meteor": "registry:dt/meteor#1.2.0+20160317120654", | ||
"globalDependencies": { | ||
"es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504", | ||
"meteor": "registry:env/meteor#1.3.0+20160531044850", | ||
"reflect-metadata": "github:rbuckton/ReflectDecorators/reflect-metadata.d.ts" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
51
1
121547
5
15
23
2833
2
+ Added@angular/common@2.4.10(transitive)
+ Added@angular/compiler@2.4.10(transitive)
+ Added@angular/core@2.4.10(transitive)
+ Added@angular/platform-browser@2.4.10(transitive)
+ Added@angular/platform-browser-dynamic@2.4.10(transitive)
+ Addedangular2-meteor@0.5.6(transitive)
+ Addedangular2-meteor-polyfills@0.1.1(transitive)
+ Addedrxjs@5.5.12(transitive)
+ Addedsymbol-observable@1.0.1(transitive)
+ Addedzone.js@0.7.8(transitive)
- Removed@angular/common@2.0.0-rc.1
- Removed@angular/common@2.0.0-rc.1(transitive)
- Removed@angular/compiler@2.0.0-rc.1(transitive)
- Removed@angular/core@2.0.0-rc.1(transitive)
- Removed@angular/platform-browser@2.0.0-rc.1(transitive)
- Removed@angular/platform-browser-dynamic@2.0.0-rc.1(transitive)
- Removedrxjs@5.0.0-beta.6(transitive)
- Removedzone.js@0.6.26(transitive)