generator-gulp-angular,Gulp
计算机知识思维导图:generator-gulp-angular,Gulp。网页展示前三层结构,可在线查看完整脑图并下载 GoMind 文件。
2026-08-25
## generator-gulp-angular,Gulp
### generator-gulp-angular,Gulp
#### gulpfile.js
##### require('./gulp/' + file);
##### gulp.start('build');
#### build.js
##### 初始化
##### gulp.task('partials'
##### gulp.task('html', ['inject', 'partials']
##### gulp.task('fonts'
##### gulp.task('other'
##### gulp.task('clean'
##### gulp.task('build', ['html', 'fonts', 'other']);
#### inject.js
##### gulp.task('inject', ['scripts', 'styles']
#### scripts.js
##### gulp.task('scripts'
#### styles.js
##### gulp.task('styles'
#### server.js
##### gulp.task('serve', ['watch']
##### gulp.task('serve:dist', ['build']
##### gulp.task('serve:e2e', ['inject']
##### gulp.task('serve:e2e-dist', ['build']
#### watch.js
##### gulp.task('watch', ['inject']
#### unit-tests.js
##### gulp.task('test', ['scripts']
##### gulp.task('test:auto', ['watch']
#### conf.js
> 仅展示前三层结构;请在线查看完整脑图或下载 GoMind 文件。
generator-gulp-angular,Gulp
generator-gulp-angular,Gulp
require('./gulp/' + file);
gulp.start('build');
gulpfile.js
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
var $ = require('gulp-load-plugins')({
初始化
gulp.task('partials'
gulp.task('html', ['inject', 'partials']
gulp.task('fonts'
gulp.task('other'
gulp.task('clean'
gulp.task('build', ['html', 'fonts', 'other']);
build.js
path.join(conf.paths.tmp, '/serve/app/**/*.css')
path.join(conf.paths.src, '/app/**/*.js'),
gulp.task('inject', ['scripts', 'styles']
inject.js
gulp.task('scripts'
scripts.js
gulp.src(path.join(conf.paths.src, '/app/**/*.js'))
gulp.task('styles'
styles.js
gulp.task('serve', ['watch']
gulp.task('serve:dist', ['build']
gulp.task('serve:e2e', ['inject']
gulp.task('serve:e2e-dist', ['build']
server.js
gulp.watch(path.join(conf.paths.src, '/app/**/*.js')
gulp.task('watch', ['inject']
watch.js
gulp.task('test', ['scripts']
gulp.task('test:auto', ['watch']
unit-tests.js
conf.js