From 29a93837565ef8fad258e72375816a10aec1aa46 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 3 Aug 2019 19:04:12 +0300 Subject: [PATCH] rm gulpfile --- gulpfile.js | 58 ---------------------------------------------------- package.json | 1 - 2 files changed, 59 deletions(-) delete mode 100644 gulpfile.js diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 81afc6b0..00000000 --- a/gulpfile.js +++ /dev/null @@ -1,58 +0,0 @@ -const gulp = require('gulp') -const postcss = require('gulp-postcss') -const sass = require('gulp-sass') -const imageMin = require('gulp-imagemin') -const concat = require('gulp-concat') -const autoprefixer = require('autoprefixer') -const cssnano = require('cssnano') - -gulp.task('style', () => { - const processors = [ - autoprefixer({ - browsers: ['last 1 version'] - }), - cssnano({ - zindex: false - }) - ] - - return gulp.src('./src/style/style.scss') - .pipe(sass()) - .pipe(postcss(processors)) - .pipe(concat('style.css')) - .pipe(gulp.dest('./public')) -}) - -gulp.task('copy fonts', () => { - return gulp.src('./src/assets/fonts/*/*') - .pipe(gulp.dest('./public/fonts')) -}) - -gulp.task('copy graphics', () => { - return gulp.src('./src/assets/graphics/*') - .pipe(gulp.dest('./public/graphics')) -}) - -gulp.task('copy 3rdparty', () => { - return gulp.src('./src/3rdparty/*') - .pipe(gulp.dest('./public')) -}) - -gulp.task('copy robots.txt', () => { - return gulp.src('./robots.txt') - .pipe(gulp.dest('./public')) -}) - -gulp.task('copy views', () => { - return gulp.src('./src/views/**') - .pipe(gulp.dest('./out/views')) -}) - -gulp.task('imagemin', () => { - return gulp.src('./src/assets/graphics/**/*') - .pipe(imageMin()) - .pipe(gulp.dest('./public/graphics')) -}) - -gulp.task('copy', gulp.series('copy views', 'copy fonts', 'copy graphics', 'copy robots.txt', 'copy 3rdparty')) -gulp.task('default', gulp.series('style', 'copy', 'imagemin')) diff --git a/package.json b/package.json index 5059da23..8f13ad32 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "build": "next build", "export": "npm run build && next export -o dist && npm run sitemap", "sitemap": "node scripts/sitemap.js", - "gulp": "gulp", "test": "mocha --compilers js:babel-register", "coverage": "istanbul cover mocha -- --compilers js:babel-register" },