mirror of
https://github.com/chinchang/web-maker.git
synced 2025-01-18 04:48:50 +01:00
prettier gulpfile.js
This commit is contained in:
parent
479e2e89a0
commit
a56f1ae7ce
26
gulpfile.js
26
gulpfile.js
@ -4,19 +4,33 @@ var gulp = require('gulp');
|
||||
var useref = require('gulp-useref');
|
||||
|
||||
gulp.task('copyFiles', [], function() {
|
||||
gulp.src('src/lib/codemirror/theme/*').pipe(gulp.dest('app/lib/codemirror/theme'));
|
||||
gulp.src('src/lib/codemirror/mode/**/*').pipe(gulp.dest('app/lib/codemirror/mode'));
|
||||
gulp
|
||||
.src('src/lib/codemirror/theme/*')
|
||||
.pipe(gulp.dest('app/lib/codemirror/theme'));
|
||||
gulp
|
||||
.src('src/lib/codemirror/mode/**/*')
|
||||
.pipe(gulp.dest('app/lib/codemirror/mode'));
|
||||
gulp.src('src/partials/*').pipe(gulp.dest('app/partials'));
|
||||
gulp.src('src/lib/screenlog.js').pipe(gulp.dest('app/lib'));
|
||||
gulp.src('src/icon-48.png').pipe(gulp.dest('app'));
|
||||
gulp.src([ 'src/FiraCode.ttf', 'src/Fixedsys.ttf', 'src/Inconsolata.ttf', 'src/Monoid.ttf' ]).pipe(gulp.dest('app'));
|
||||
gulp
|
||||
.src([
|
||||
'src/FiraCode.ttf',
|
||||
'src/Fixedsys.ttf',
|
||||
'src/Inconsolata.ttf',
|
||||
'src/Monoid.ttf'
|
||||
])
|
||||
.pipe(gulp.dest('app'));
|
||||
});
|
||||
|
||||
gulp.task('useRef', [ 'copyFiles' ], function() {
|
||||
return gulp.src('src/index.html').pipe(useref()).pipe(gulp.dest('app'));
|
||||
gulp.task('useRef', ['copyFiles'], function() {
|
||||
return gulp
|
||||
.src('src/index.html')
|
||||
.pipe(useref())
|
||||
.pipe(gulp.dest('app'));
|
||||
});
|
||||
|
||||
gulp.task('generate-service-worker', [ 'useRef' ], function(callback) {
|
||||
gulp.task('generate-service-worker', ['useRef'], function(callback) {
|
||||
var swPrecache = require('sw-precache');
|
||||
var rootDir = 'app';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user