mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
examples no longer outputs double folders
This commit is contained in:
@@ -64,14 +64,14 @@ gulp.task('examples', ['sass'], function() {
|
||||
.pipe(rename(function(file) {
|
||||
file.dirname = file.dirname.replace('/examples/', '/');
|
||||
}))
|
||||
.pipe(gulp.dest(exampleDest));
|
||||
.pipe(gulpif({ isFile: true }, gulp.dest(exampleDest)));
|
||||
});
|
||||
|
||||
require('./scripts/snapshot/snapshot.task')(gulp, argv, buildConfig);
|
||||
|
||||
// Take es6 files from angular2's output, rename to js, and move to dist/lib/
|
||||
gulp.task('ng2-rename', function(done) {
|
||||
exec('test -e dist/angular-master', function(err) {
|
||||
exec('test -e node_modules/angular-master', function(err) {
|
||||
if (err) {
|
||||
console.log('You have not installed angular master.\n' +
|
||||
'Please run ./scripts/build/update-angular.sh.\n' +
|
||||
@@ -79,7 +79,7 @@ gulp.task('ng2-rename', function(done) {
|
||||
return process.exit(1);
|
||||
}
|
||||
gulp.src([
|
||||
'dist/angular-master/dist/js/dev/es6/{angular2,rtts_assert}/**/*.es6'
|
||||
'node_modules/angular-master/dist/js/dev/es6/{angular2,rtts_assert}/**/*.es6'
|
||||
])
|
||||
.pipe(rename({ extname: '.js' }))
|
||||
.pipe(gulp.dest('dist/lib'))
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
"karma-chrome-launcher": "^0.1.7",
|
||||
"karma-jasmine": "^0.3.5",
|
||||
"systemjs": "~0.11.0",
|
||||
"through2": "^0.6.3",
|
||||
"traceur": "0.0.87",
|
||||
"zone.js": "0.4.1"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
NG_FOLDER=dist/angular-master
|
||||
NG_FOLDER=node_modules/angular-master
|
||||
|
||||
cd $(dirname $0)/../../
|
||||
|
||||
|
||||
Reference in New Issue
Block a user