File tree Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change
1
+ src/js/lib
Original file line number Diff line number Diff line change 11
11
"extends": ["airbnb-base", "prettier"],
12
12
"rules": {
13
13
"dollar-sign/dollar-sign": [2, "ignoreProperties"],
14
- "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
14
+ "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
15
+ "no-unused-vars": 1
15
16
}
16
17
}
Original file line number Diff line number Diff line change 1
1
import util from 'gulp-util' ;
2
2
3
- const production = util . env . production || util . env . prod || false ;
3
+ const production = util . env . production || util . env . prod || util . env . _ . indexOf ( 'build' ) !== - 1 || false ;
4
4
const destPath = 'build' ;
5
5
6
6
const config = {
Original file line number Diff line number Diff line change 46
46
"gulp-git" : " ^2.9.0" ,
47
47
"lost" : " ^8.3.1" ,
48
48
"postcss-csso" : " ^3.0.0" ,
49
- "babel-eslint" : " ^7.2.3" ,
50
49
"gulp-postcss" : " ^8.0.0" ,<% if (css === 'postcss') { %>
51
50
"gulp-sass-to-postcss-mixins" : " 0.0.3" ,
52
51
"postcss" : " ^8.0.0" ,
82
81
"gulp-cheerio" : " ^0.6.3" ,
83
82
"gulp-changed" : " ^3.2.0" ,
84
83
"gulp-svgstore" : " ^7.0.1" ,
85
- "through2" : " ^3.0.1" ,
86
- "gulp-consolidate" : " ^0.2.0" ,<% } %><% if (svgo) { %>
84
+ "through2" : " ^3.0.1" ,<% } %><% if (svgo) { %>
87
85
"gulp-svgmin" : " ^1.2.0" ,<% } %><% if (templates) { %>
88
- "gulp-changed" : " ^1.3.0" ,
89
86
"gulp-front-matter" : " ^1.3.0" ,
90
87
"gulp-prettify" : " ^0.5.0" ,<% } %><% if (templates === 'nunjucks') { %>
91
88
"gulp-nunjucks-render" : " ^2.2.2" ,<% } %><% if (templates === 'swig') { %>
98
95
"webpack-cli" : " ^3.3.0" ,
99
96
"glslify-loader" : " ^2.0.0" ,
100
97
"raw-loader" : " ^1.0.0" ,
101
- "babel-runtime" : " ^5.0.0" ,
102
98
"require-yaml" : " ^0.0.1" ,
103
99
"lodash" : " ^4.17.11"
104
100
}
Original file line number Diff line number Diff line change 1
1
const webpack = require ( 'webpack' ) ;
2
2
const path = require ( 'path' ) ;
3
- const util = require ( 'gulp-util' ) ;
4
3
const config = require ( './gulp/config' ) ;
5
4
const BundleAnalyzerPlugin = require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin ;
6
5
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ module.exports = function () {
24
24
this . fs . copy ( this . templatePath ( 'gitignore' ) , '.gitignore' ) ;
25
25
this . fs . copy ( this . templatePath ( 'editorconfig' ) , '.editorconfig' ) ;
26
26
this . fs . copy ( this . templatePath ( 'eslintrc' ) , '.eslintrc' ) ;
27
+ this . fs . copy ( this . templatePath ( 'eslintignore' ) , '.eslintignore' ) ;
27
28
this . fs . copy ( this . templatePath ( 'htmlhintrc' ) , '.htmlhintrc' ) ;
28
29
this . fs . copy ( this . templatePath ( 'sass-lint.yml' ) , '.sass-lint.yml' ) ;
29
30
this . fs . copy ( this . templatePath ( 'stylelintrc' ) , '.stylelintrc' ) ;
You can’t perform that action at this time.
0 commit comments