1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

add Recipes(scaffolding)

This commit is contained in:
Rokt33r
2015-06-23 19:18:00 +09:00
parent 7c2cbfb32e
commit 0e6fe35ca4
36 changed files with 801 additions and 62 deletions

View File

@@ -42,8 +42,8 @@ gulp.task('styl', function () {
.pipe(styl())
.pipe(autoprefixer())
.pipe(gulp.dest('src'))
.pipe(notify('Stylus!!'))
.pipe(livereload())
.pipe(notify('Stylus!!'))
})
gulp.task('bs', function () {
@@ -57,7 +57,7 @@ gulp.task('bs', function () {
})
gulp.task('inject', function (cb) {
runSequence('inject-main', 'inject-popup', cb)
runSequence(['inject-main', 'inject-popup'], cb)
})
gulp.task('inject-main', function () {
@@ -71,6 +71,13 @@ gulp.task('inject-main', function () {
.pipe(gulp.dest('src/browser/main/'))
})
gulp.task('watch-main', function () {
gulp.watch(
['src/browser/main/index.inject.html', 'src/browser/main/**/*.js', 'src/browser/main/**/*.css', 'src/browser/shared/**/*.js', 'src/browser/shared/**/*.css'], ['inject-main'])
gulp.watch('src/**/*.styl', ['styl'])
livereload.listen()
})
gulp.task('inject-popup', function () {
return gulp.src('src/browser/popup/index.inject.html')
.pipe(inject(gulp.src(['src/browser/popup/**/*.js', 'src/browser/popup/**/*.css', 'src/browser/shared/**/*.js', 'src/browser/shared/**/*.css'], {read: false}), {