From 040ee079eb9498c0fa903401ef5be3e078525fac Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sun, 29 Apr 2018 11:28:39 +0300 Subject: [PATCH] Remove gulpfile --- gulpfile.js | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 gulpfile.js diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 69f39c8..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,39 +0,0 @@ -const gulp = require('gulp'); -const concat = require('gulp-concat'); -const sass = require('gulp-sass'); -const autoprefixer = require('gulp-autoprefixer'); - -const ENV = process.env.BUILD_ENV || 'dev'; - -const SASS_SOURCE_PATH = './source/_assets/**/*.scss'; -const SASS_DEST_PATH = `./output_${ENV}`; -const SASS_FILE_NAME = 'app.css'; - -const SCRIPT_SOURCE_PATH = './source/_assets/**/*.js'; -const SCRIPT_DEST_PATH = `./output_${ENV}`; -const SCRIPT_FILE_NAME = 'app.js'; - -const SASS_OPTIONS = { - outputStyle: ENV === 'prod' ? 'compressed' : 'expanded', -}; - -const AUTOPREFIX_OPTIONS = { - browsers: ['last 2 versions'], -}; - -gulp.task('build', function () { - gulp.src(SASS_SOURCE_PATH) - .pipe(sass(SASS_OPTIONS).on('error', sass.logError)) - .pipe(autoprefixer(AUTOPREFIX_OPTIONS)) - .pipe(concat(SASS_FILE_NAME)) - .pipe(gulp.dest(SASS_DEST_PATH)) - ; - gulp.src(SCRIPT_SOURCE_PATH) - .pipe(concat(SCRIPT_FILE_NAME)) - .pipe(gulp.dest(SCRIPT_DEST_PATH)) - ; -}); - -gulp.task('build:watch', function () { - gulp.watch(SASS_SOURCE_PATH, ['build']); -});