Authored by xuqi

recovery gulp

... ... @@ -73,10 +73,10 @@
"gulp": "^3.9.1",
"gulp-cssnano": "^2.1.2",
"gulp-postcss": "^6.1.0",
"gulp-qiniu": "^0.2.4",
"gulp-sourcemaps": "^2.0.0-alpha",
"gulp-util": "^3.0.7",
"handlebars-loader": "^1.3.0",
"husky": "^0.11.4",
"nodemon": "1.9.2",
"nyc": "^6.6.1",
"postcss-assets": "^4.0.1",
... ... @@ -110,8 +110,5 @@
"yoho-jquery-qrcode": "0.0.3",
"yoho-json2": "^1.0.0",
"yoho-slider": "0.0.2"
},
"peerDependencies": {
"husky": "^0.11.4"
}
}
... ...
... ... @@ -8,7 +8,6 @@
const gulp = require('gulp');
const gutil = require('gulp-util');
const qiniu = require('gulp-qiniu');
const postcss = require('gulp-postcss');
const sourcemaps = require('gulp-sourcemaps');
... ... @@ -110,19 +109,6 @@ gulp.task('default', ['postcss-dev', 'postcss-watch', 'webpack-dev-server']);
// ge
gulp.task('ge', ['postcss', 'webpack']);
// upload to qiniu
gulp.task('upQiniu', ['ge'], () => {
gulp.src(`./dist/${config.name}/${config.version}/**`).pipe(
qiniu({
accessKey: 'cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE',
secretKey: 'RduqgmK7cAtaQvdIa1ax_zzmMsnv9ac-Ka0uF6wG',
bucket: 'yohocdn'
}, {
dir: `${config.name}/${config.version}/`
})
);
});
// postcss compile in dev
gulp.task('postcss-dev', () => {
return gulp.src('scss/index.css')
... ...