Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/frjo/hugo-theme-zen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Jonsson <frjo@xdeb.org>2021-08-02 10:18:00 +0300
committerFredrik Jonsson <frjo@xdeb.org>2021-08-02 10:18:00 +0300
commit609e83d6e87b91af104f7eb45fbd9dd54da6f9b1 (patch)
treec4fc755186ca2297288ca9b13ebfcbdd6e5d510a
parent611f12fab8d756466cc4047a917da769c1f80357 (diff)
Remove old gulp file and fix minor error in README.v1.7.1
-rw-r--r--README.md2
-rw-r--r--gulpfile.js83
2 files changed, 1 insertions, 84 deletions
diff --git a/README.md b/README.md
index 5b1f63b..6d266b7 100644
--- a/README.md
+++ b/README.md
@@ -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'));