3

ここでは、node、angular、gulpが初めてです。gulpタスクを実行しているときに、gulpを使用してすべての縮小ファイルを生成していますが、エラーが表示されます

ここに画像の説明を入力

以下は私のgulpfile.jsコードです

gulp.task('dev', function(){
var builtPartialDev = gulp.src(paths.partials)
    .pipe(plugins.htmlhint({'doctype-first':false}))
    .pipe(plugins.htmlhint.reporter())
    .pipe(gulp.dest(paths.distDev));

var buitStyleDev = gulp.src(paths.styles)
    .pipe(plugins.less())
    .pipe(gulp.dest(paths.distDev));

var builtAppScriptsDev = gulp.src(paths.scripts)
    .pipe(plugins.jshint())
    .pipe(plugins.jshint.reporter('jshint-stylish'))
    .pipe(gulp.dest(paths.distDev))
    .pipe(plugins.angularFilesort());

var builtVendorScriptsDev = gulp.src(bowerFiles())
    .pipe(gulp.dest(paths.distDevBowerComponents))
    .pipe(plugins.order(['jquery.js', 'angular.js', 'angular-ui.js', 'ui-bootstrap.js', 'ui-bootstrap-tpls.js']));


var builtIndexDev = gulp.src(paths.index)
    .pipe(plugins.htmlhint())
    .pipe(plugins.htmlhint.reporter())
    .pipe(gulp.dest(path.distDev))
    .pipe(plugins.inject(builtVendorScriptsDev, {relative:true, name:'bower'}))
    .pipe(plugins.inject(builtAppScriptsDev, {relative:true}))
    .pipe(plugins.inject(buitStyleDev, {relative:true}))
    .pipe(gulp.dest(paths.distDev));

return es.merge(builtIndexDev, builtPartialDev) 

});
4

1 に答える 1