Skip to content

Commit d6a98f0

Browse files
committed
chore(): update to beta.20
1 parent d259b32 commit d6a98f0

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

lib/ionic/assets/gulpfile.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
var gulp = require('gulp'),
2+
gulpWatch = require('gulp-watch'),
3+
del = require('del'),
4+
argv = process.argv;
5+
6+
/**
7+
* Ionic Gulp tasks, for more information on each see
8+
* https://github.com/driftyco/ionic-gulp-tasks
9+
*/
10+
var buildWebpack = require('ionic-gulp-webpack-build');
11+
var buildSass = require('ionic-gulp-sass-build');
12+
var copyHTML = require('ionic-gulp-html-copy');
13+
var copyFonts = require('ionic-gulp-fonts-copy');
14+
15+
gulp.task('watch', ['sass', 'html', 'fonts'], function(){
16+
gulpWatch('app/**/*.scss', function(){ gulp.start('sass'); });
17+
gulpWatch('app/**/*.html', function(){ gulp.start('html'); });
18+
return buildWebpack({ watch: true });
19+
});
20+
gulp.task('build', ['sass', 'html', 'fonts'], buildWebpack);
21+
gulp.task('sass', buildSass);
22+
gulp.task('html', copyHTML);
23+
gulp.task('fonts', copyFonts);
24+
gulp.task('clean', function(done){
25+
del('www/build', done);
26+
});
27+
28+
/**
29+
* Ionic hooks
30+
* Add ':before' or ':after' to any Ionic project command name to run the specified
31+
* tasks before or after the command.
32+
*/
33+
gulp.task('serve:before', ['watch']);
34+
gulp.task('emulate:before', ['build']);
35+
gulp.task('deploy:before', ['build']);
36+
37+
// we want to 'watch' when livereloading
38+
var shouldWatch = argv.indexOf('-l') > -1 || argv.indexOf('--livereload') > -1;
39+
gulp.task('run:before', [shouldWatch ? 'watch' : 'build']);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic",
3-
"version": "2.0.0-beta.19",
3+
"version": "2.0.0-beta.20",
44
"preferGlobal": true,
55
"description": "A tool for creating and developing Ionic Framework mobile apps.",
66
"homepage": "http://ionicframework.com/",
@@ -74,7 +74,7 @@
7474
"gulp": "3.8.8",
7575
"gulp-util": "^3.0.7",
7676
"inquirer": "0.11.2",
77-
"ionic-app-lib": "2.0.0-beta.9",
77+
"ionic-app-lib": "2.0.0-beta.10",
7878
"moment": "2.11.1",
7979
"ncp": "0.4.2",
8080
"open": "0.0.5",

0 commit comments

Comments
 (0)