-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 1.87 KB
/
package.json
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
{
"version": "2.0.0",
"name": "lukas_chylik_portfolio",
"description": "NPM confiwg with stylelint. Updated on 7.2.2023",
"private": true,
"main": "./postcss.config.js",
"author": "Lukáš Chylík",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^10.4.13",
"browser-sync": "^2.27.11",
"clean-css-cli": "^5.6.2",
"node-sass": "^8.0.0",
"nunjucks": "^3.2.3",
"postcss": "^8.4.21",
"postcss-cli": "^10.1.0",
"postcss-loader": "^7.0.2",
"postcss-scss": "^4.0.6",
"postcss-value-parser": "^4.2.0",
"stylelint": "^14.16.1",
"stylelint-order": "^6.0.1",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"uglify-js": "^3.17.4",
"watch": "^1.0.2"
},
"browserslist": {
"production": [
"defaults",
"IE 11",
"not IE_Mob 11"
],
"development": [
"defaults"
]
},
"stylelint": {
"enabled": true,
"rules": "Resources/.stylelintrc.json",
"fileExtensions": "scss"
},
"scripts": {
"bundle": "npm run bundle:css && npm run bundle:js",
"postcss": "npm run compile:scss && postcss wwwroot/CSS/style.css --config ./postcss.config.js -o wwwroot/CSS/style.css",
"bundle:css": "npm run stylelint && npm run compile:scss && postcss wwwroot/CSS/style.css --config ./postcss.config.js | cleancss -o wwwroot/CSS/style.min.css",
"bundle:js": "npm run compile:ts && uglifyjs -o wwwroot/JS/app.min.js -c -m -- wwwroot/JS/app.js",
"compile:scss": "node-sass --source-map=true Resources/Stylesheets/SCSS/style.scss wwwroot/CSS/style.css",
"compile:ts": "tsc -p Resources",
"stylelint": "stylelint --fix Resources/Stylesheets/SCSS/**/*.scss --custom-syntax postcss-scss",
"watch": "npm run watch:scss",
"watch:scss": "npm run bundle:css & watch \"npm run bundle:css\" Resources/Stylesheets/SCSS",
"watch:ts": "npm run compile:ts -- -w && npm run bundle:js"
}
}