add some basic scripts to package.json
This commit is contained in:
parent
74db3a4c5e
commit
cd3f7a83ed
|
@ -22,7 +22,7 @@ var imagemin = require('gulp-imagemin')
|
|||
gulp.task('js', () => {
|
||||
return gulp.src('src/js/**/*.js', {read: false})
|
||||
.pipe(sourcemaps.init({loadMaps: true}))
|
||||
.pipe(tap((f) => {
|
||||
.pipe(tap(f => {
|
||||
f.contents = browserify(f.path, {debug: true}).bundle()
|
||||
}))
|
||||
.pipe(streamify(babel({presets: ['es2015', 'es2017']})))
|
||||
|
@ -55,7 +55,7 @@ gulp.task('css', () => {
|
|||
})
|
||||
|
||||
gulp.task('images', () => {
|
||||
gulp.src('src/img/**/*')
|
||||
return gulp.src('src/img/**/*')
|
||||
.pipe(imagemin())
|
||||
.pipe(gulp.dest('dist/img'))
|
||||
})
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
"name": "cn.status.im",
|
||||
"version": "1.0.0",
|
||||
"description": "Status main chinese page",
|
||||
"scripts": {
|
||||
"gulp": "gulp",
|
||||
"clean": "gulp clean",
|
||||
"build": "gulp build",
|
||||
"develop": "gulp develop"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel": "^6.23.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
|
|
Loading…
Reference in New Issue