Skip to content

Commit

Permalink
Better way to update ngModel + Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
yabab-dev committed Apr 20, 2016
1 parent 12a0882 commit 7fe646b
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 63 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/*
npm-debug.log
15 changes: 3 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ gulp.task('default', ['watch']);
/**
* Build all
*/
gulp.task('build', ['babel', 'assets']);

/**
* Copy assets
*/
gulp.task('assets', function(){
return gulp.src(paths.assets)
.pipe(cache('assets-dev'))
.pipe(gulp.dest(paths.dest));
});
gulp.task('build', ['babel', 'uglify']);

/**
* Babel transpile all sources
Expand All @@ -40,13 +31,13 @@ gulp.task('babel', function(){
console.error(err.stack);
this.emit('end');
})
.pipe(sourcemaps.write())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(paths.dest));
});

/**
* Babel watch
*/
gulp.task('watch', function(){
return gulp.watch([paths.sources, paths.assets], ['babel', 'assets']);
return gulp.watch([paths.sources, paths.assets], ['babel']);
});
63 changes: 38 additions & 25 deletions lib/CKEditor.js

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

1 change: 1 addition & 0 deletions lib/CKEditor.js.map

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

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
},
"homepage": "https://github.com/chymz/ng2-ckeditor#readme",
"devDependencies": {
"babel-cli": "^6.4.0",
"babel-plugin-angular2-annotations": "^5.0.0",
"babel-plugin-transform-class-properties": "^6.3.13",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-commonjs": "^6.4.5",
"babel-plugin-transform-flow-strip-types": "~6.3.15",
"babel-preset-es2015": "~6.3.13",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-cached": "^1.1.0",
"gulp-sourcemaps": "^1.6.0"
"babel-cli": "~6.7.5",
"babel-plugin-angular2-annotations": "~5.0.0",
"babel-plugin-transform-class-properties": "~6.6.0",
"babel-plugin-transform-decorators-legacy": "~1.3.4",
"babel-plugin-transform-es2015-modules-commonjs": "~6.7.4",
"babel-plugin-transform-flow-strip-types": "~6.7.0",
"babel-preset-es2015": "~6.6.0",
"gulp": "~3.9.0",
"gulp-babel": "~6.1.1",
"gulp-cached": "~1.1.0",
"gulp-sourcemaps": "~2.0.0-alpha",
}
}
Loading

0 comments on commit 7fe646b

Please sign in to comment.