Skip to content

Commit

Permalink
chore(): update to beta.20
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 28, 2016
1 parent d259b32 commit d6a98f0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions lib/ionic/assets/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
var gulp = require('gulp'),
gulpWatch = require('gulp-watch'),
del = require('del'),
argv = process.argv;

/**
* Ionic Gulp tasks, for more information on each see
* https://github.com/driftyco/ionic-gulp-tasks
*/
var buildWebpack = require('ionic-gulp-webpack-build');
var buildSass = require('ionic-gulp-sass-build');
var copyHTML = require('ionic-gulp-html-copy');
var copyFonts = require('ionic-gulp-fonts-copy');

gulp.task('watch', ['sass', 'html', 'fonts'], function(){
gulpWatch('app/**/*.scss', function(){ gulp.start('sass'); });
gulpWatch('app/**/*.html', function(){ gulp.start('html'); });
return buildWebpack({ watch: true });
});
gulp.task('build', ['sass', 'html', 'fonts'], buildWebpack);
gulp.task('sass', buildSass);
gulp.task('html', copyHTML);
gulp.task('fonts', copyFonts);
gulp.task('clean', function(done){
del('www/build', done);
});

/**
* Ionic hooks
* Add ':before' or ':after' to any Ionic project command name to run the specified
* tasks before or after the command.
*/
gulp.task('serve:before', ['watch']);
gulp.task('emulate:before', ['build']);
gulp.task('deploy:before', ['build']);

// we want to 'watch' when livereloading
var shouldWatch = argv.indexOf('-l') > -1 || argv.indexOf('--livereload') > -1;
gulp.task('run:before', [shouldWatch ? 'watch' : 'build']);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionic",
"version": "2.0.0-beta.19",
"version": "2.0.0-beta.20",
"preferGlobal": true,
"description": "A tool for creating and developing Ionic Framework mobile apps.",
"homepage": "http://ionicframework.com/",
Expand Down Expand Up @@ -74,7 +74,7 @@
"gulp": "3.8.8",
"gulp-util": "^3.0.7",
"inquirer": "0.11.2",
"ionic-app-lib": "2.0.0-beta.9",
"ionic-app-lib": "2.0.0-beta.10",
"moment": "2.11.1",
"ncp": "0.4.2",
"open": "0.0.5",
Expand Down

0 comments on commit d6a98f0

Please sign in to comment.