angular2-now
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "angular2-now", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "pbastowski@gmail.com" |
@@ -1,12 +0,19 @@ | ||
var gulp = require('gulp') | ||
var replace = require('gulp-replace') | ||
var gulp = require('gulp'); | ||
var replace = require('gulp-replace'); | ||
// bump npm package version into package.js | ||
gulp.task('meteor', function() { | ||
var pkg = require('./package.json') | ||
var versionRegex = /(version\:\s*\')([^\']+)\'/gi | ||
// get version of npm package | ||
var version = require('./package.json').version; | ||
// find: version: '...' | ||
var versionRegex = /(version\:\s*\')([^\']+)\'/gi; | ||
// find: 'angular2-now': '...' | ||
var npmVersionRegex = /(\'angular2-now\'\:\s*')([^\']+)\'/gi; | ||
return gulp.src('package.js') | ||
.pipe(replace(versionRegex, '$1' + pkg.version + "'")) | ||
.pipe(gulp.dest('./')) | ||
}) | ||
// update version of meteor package | ||
.pipe(replace(versionRegex, '$1' + version + "'")) | ||
// update version of npm dependency | ||
.pipe(replace(npmVersionRegex, '$1' + version + "'")) | ||
.pipe(gulp.dest('./')); | ||
}); |
Package.describe({ | ||
name: 'pbastowski:angular2-now', | ||
version: '1.1.0', | ||
version: '1.1.1', | ||
summary: 'Angular 2 @Component syntax for Meteor 1.2 and AngularJS', | ||
@@ -9,3 +9,7 @@ git: 'https://github.com/pbastowski/angular2-now/tree/meteor1.2', | ||
Package.onUse(function (api) { | ||
Npm.depends({ | ||
'angular2-now': '1.1.0' | ||
}); | ||
Package.onUse(function(api) { | ||
api.versionsFrom('1.2.0.1'); | ||
@@ -16,12 +20,20 @@ api.use('angular@1.3.1', 'client'); | ||
// Make sure we load after pbastowski:systemjs, if it's used | ||
api.use('pbastowski:systemjs@0.0.1', 'client', {weak: true}); | ||
api.use('pbastowski:systemjs@0.0.1', 'client', { | ||
weak: true | ||
}); | ||
api.addFiles(['dist/angular2-now.js', 'src/exports.js'], ['client'], {transpile: false}); | ||
api.addFiles([ | ||
'.npm/package/node_modules/angular2-now/dist/angular2-now.js', | ||
'src/exports.js' | ||
], 'client', { | ||
transpile: false | ||
}); | ||
api.export(['angular2now']); | ||
}); | ||
Package.onTest(function (api) { | ||
Package.onTest(function(api) { | ||
api.use('tinytest'); | ||
api.use('pbastowski:angular2-now'); | ||
api.addFiles('tests/meteor-spec.js', ['client']); | ||
api.addFiles('tests/meteor-spec.js', 'client'); | ||
}); |
{ | ||
"name": "angular2-now", | ||
"version": "1.1.0", | ||
"private": false, | ||
"version": "1.1.1", | ||
"description": "Angular 2 component syntax for Angular 1 apps", | ||
@@ -11,8 +10,8 @@ "main": "dist/angular2-now.js", | ||
"test:local": "karma start karma.config.js", | ||
"test:meteor": "npm run build:dist & spacejam test-packages ./", | ||
"test:meteor:local": "npm run build:dist & meteor test-packages ./", | ||
"test:meteor": "npm run build:dist && spacejam test-packages ./", | ||
"test:meteor:local": "npm run build:dist && meteor test-packages ./", | ||
"lint": "eslint src/**/*.js", | ||
"build:dist": "webpack --progress --colors --set-env-NODE_ENV=development", | ||
"build:prod": "webpack --progress --colors --set-env-NODE_ENV=production", | ||
"build": "npm run build:dist & npm run build:prod & npm run meteor", | ||
"build": "npm run build:dist && npm run build:prod && npm run meteor", | ||
"coverage:coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
@@ -19,0 +18,0 @@ }, |
@@ -52,8 +52,8 @@ import { common } from './common'; | ||
init(); | ||
} | ||
if (typeof window !== 'undefined') { | ||
window.angular2now = angular2now; | ||
} | ||
if (typeof window !== 'undefined') { | ||
window.angular2now = angular2now; | ||
} | ||
export default angular2now; |
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
308601
65
3702
0
1