diff options
author | Fredrik Jonsson <frjo@xdeb.org> | 2021-08-02 10:18:00 +0300 |
---|---|---|
committer | Fredrik Jonsson <frjo@xdeb.org> | 2021-08-02 10:18:00 +0300 |
commit | 609e83d6e87b91af104f7eb45fbd9dd54da6f9b1 (patch) | |
tree | c4fc755186ca2297288ca9b13ebfcbdd6e5d510a | |
parent | 611f12fab8d756466cc4047a917da769c1f80357 (diff) |
Remove old gulp file and fix minor error in README.v1.7.1
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | gulpfile.js | 83 |
2 files changed, 1 insertions, 84 deletions
@@ -596,7 +596,7 @@ Node.js software you need. To install them run: npm run lint-theme npm run lint-project - nmp run list (project + theme) + nmp run lint (project + theme) ## Getting help diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index fc53f95..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; - -var options = {}; - -// ############################# -// Edit these paths and options. -// ############################# - -// The root paths are used to construct all the other paths in this -// configuration. -options.rootPath = { - projectAssets : '../../assets/', - themeAssets : __dirname + '/assets/' -}; - -options.path = { - sass : [ - options.rootPath.themeAssets + 'sass/**/*.scss', - options.rootPath.projectAssets + 'sass/**/*.scss' - ], - js : [ - options.rootPath.themeAssets + 'js/**/*.js', - options.rootPath.projectAssets + 'js/**/*.js' - ] -}; - -// If your files are on a network share, you may want to turn on polling for -// Gulp watch. Since polling is less efficient, we disable polling by default. -options.gulpWatchOptions = {interval: 600}; -// options.gulpWatchOptions = {interval: 1000, mode: 'poll'}; - -// Load Gulp and tools we will use. -var gulp = require('gulp'); -var $ = require('gulp-load-plugins')(); - -// Lint JavaScript. -gulp.task('lint:js', function lint () { - return gulp.src(options.path.js) - .pipe($.eslint()) - .pipe($.eslint.format()); -}); - -// Lint JavaScript and throw an error for a CI to catch. -gulp.task('lint:js-with-fail', function lint () { - return gulp.src(options.path.js) - .pipe($.eslint()) - .pipe($.eslint.format()) - .pipe($.eslint.failOnError()); -}); - -// Lint Sass. -gulp.task('lint:sass', function lint () { - return gulp.src(options.path.sass) - .pipe($.sassLint()) - .pipe($.sassLint.format()); -}); - -// Lint Sass and throw an error for a CI to catch. -gulp.task('lint:sass-with-fail', function lint () { - return gulp.src(options.path.sass) - .pipe($.sassLint()) - .pipe($.sassLint.format()) - .pipe($.sassLint.failOnError()); -}); - -// Lint Sass and JavaScript. -gulp.task('lint', gulp.parallel('lint:sass', 'lint:js')); - -// Watch for changes and rebuild. -gulp.task('watch:lint:sass', gulp.series('lint:sass', function watch () { - return gulp.watch(options.path.sass, options.gulpWatchOptions, gulp.series('lint:sass')); -})); - -gulp.task('watch:lint:js', gulp.series('lint:js', function watch () { - return gulp.watch(options.path.js, options.gulpWatchOptions, gulp.series('lint:js')); -})); - -gulp.task('watch:lint', gulp.parallel('watch:lint:sass', 'watch:lint:js')); - -gulp.task('watch', gulp.series('watch:lint')); - -// The default task. -gulp.task('default', gulp.series('lint')); |