1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
{
"name": "hugo-theme-techdoc",
"version": "0.9.5",
"description": "The Techdoc is a Hugo Theme for technical documentation.",
"main": "gulpfile.js",
"author": "Thingsym",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
"autoprefixer": "^9.8.6",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"browser-sync": "~2.26.12",
"chokidar-cli": "^2.1.0",
"core-js": "^3.6.5",
"cross-env": "^7.0.2",
"cssnano": "^4.1.10",
"es6-promise": "~4.2.8",
"eslint": "^7.8.1",
"flexbox-grid-mixins": "~0.2.1",
"gulp": "^4.0.2",
"gulp-autoprefixer": "~7.0.1",
"gulp-cssnano": "~2.1.3",
"gulp-eslint": "^6.0.0",
"gulp-load-plugins": "~2.0.4",
"gulp-plumber": "~1.2.1",
"gulp-rename": "~2.0.0",
"gulp-sass": "~4.1.0",
"gulp-stylelint": "^13.0.0",
"gulp-util": "~3.0.8",
"gulp-watch": "~5.0.1",
"node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.2",
"run-sequence": "~2.2.1",
"sass": "^1.29.0",
"stylelint": "^13.7.0",
"stylelint-config-recommended": "^3.0.0",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-scss": "^3.18.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-stream": "^5.2.1"
},
"browserslist": [
"last 2 versions"
],
"postcss": {
"map": true,
"plugins": {
"postcss-import": {},
"autoprefixer": {
"browsers": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 Opera versions",
"last 2 iOS versions",
"last 1 Android version",
"last 1 ChromeAndroid version",
"ie 11",
"> 1%"
]
}
}
},
"stylelint": {
"extends": [
"stylelint-config-recommended",
"stylelint-scss",
"stylelint-config-recommended-scss"
],
"rules": {
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"block-no-empty": null
}
},
"eslintConfig": {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"jQuery": true,
"$": false
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-unused-vars": "off"
}
},
"scripts": {
"default": "gulp --tasks",
"gulp": "gulp",
"build": "run-p build:*",
"build:js": "npm-run-all -p webpack",
"build:css": "run-p sass:**",
"webpack": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"sass:style": "sass src/scss/theme.scss static/css/theme.css --style expanded --no-source-map && postcss --use autoprefixer --no-map -r static/css/theme.css",
"sass:style:minify": "sass src/scss/theme.scss static/css/theme.min.css --style expanded --no-source-map && postcss --use autoprefixer --use cssnano --no-map -r static/css/theme.min.css",
"sass:chroma": "sass src/scss/chroma.scss static/css/chroma.css --style expanded --no-source-map && postcss --use autoprefixer --no-map -r static/css/chroma.css",
"sass:chroma:minify": "sass src/scss/chroma.scss static/css/chroma.min.css --style expanded --no-source-map && postcss --use autoprefixer --use cssnano --no-map -r static/css/chroma.min.css",
"lint": "run-p lint:*",
"lint:es": "eslint static/js/bundle.js",
"lint:es:fix": "eslint static/js/bundle.js --fix",
"lint:css": "stylelint static/css/*.css css/**/*.css !static/css/*.min.css !css/**/*.min.css",
"lint:scss": "stylelint src/scss/*.scss src/scss/**/*.scss",
"watch": "run-p watch:*",
"watch:css": "chokidar \"src/scss/*.scss\" \"src/scss/**/*.scss\" -c \"npm run build:css\" --initial --polling",
"watch:js": "chokidar \"src/js/*.js\" \"src/js/**/*.js\" -c \"npm run build:js\" --initial --polling"
}
}
|