mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
no more examples anywhere
This commit is contained in:
17
gulpfile.js
17
gulpfile.js
@ -23,11 +23,14 @@ var traceur = require('gulp-traceur');
|
||||
var wrap = require('gulp-wrap');
|
||||
var argv = require('yargs').argv;
|
||||
|
||||
gulp.task('default', ['sass', 'examples', 'ng2']);
|
||||
gulp.task('default', ['sass', 'e2e', 'ng2']);
|
||||
|
||||
gulp.task('watch', ['default'], function() {
|
||||
gulp.watch(buildConfig.src.scss, ['sass']);
|
||||
return gulp.watch(buildConfig.src.examples.concat('scripts/examples/index.template.html'), ['examples']);
|
||||
gulp.watch([].concat(
|
||||
buildConfig.src.js, buildConfig.src.e2e, buildConfig.src.html,
|
||||
'scripts/e2e/index.template.html'
|
||||
), ['e2e']);
|
||||
});
|
||||
|
||||
gulp.task('karma', function() {
|
||||
@ -54,7 +57,7 @@ gulp.task('clean', function(done) {
|
||||
|
||||
gulp.task('e2e', function() {
|
||||
var e2eSrc = path.join(__dirname, 'src/components/**/test/**/*');
|
||||
var templateSrc = path.join(__dirname, 'scripts/examples/index.template.html');
|
||||
var templateSrc = path.join(__dirname, 'scripts/e2e/index.template.html');
|
||||
var e2eDest = path.join(__dirname, 'dist/e2e/');
|
||||
|
||||
return gulp.src(e2eSrc)
|
||||
@ -67,14 +70,6 @@ gulp.task('e2e', function() {
|
||||
.pipe(gulpif({ isFile: true }, gulp.dest(e2eDest)));
|
||||
});
|
||||
|
||||
gulp.task('e2e-watch', ['e2e'], function() {
|
||||
gulp.watch(buildConfig.src.scss, ['sass']);
|
||||
return gulp.watch([
|
||||
'src/components/**/test/**/*',
|
||||
buildConfig.src.examples.concat('scripts/examples/index.template.html')
|
||||
], ['e2e']);
|
||||
});
|
||||
|
||||
require('./scripts/snapshot/snapshot.task')(gulp, argv, buildConfig);
|
||||
|
||||
// Take es6 files from angular2's output, rename to js, and move to dist/lib/
|
||||
|
Reference in New Issue
Block a user