This repository was archived by the owner on Dec 12, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 2.48 KB
/
package.json
File metadata and controls
71 lines (71 loc) · 2.48 KB
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
{
"name": "npm-compiler",
"version": "1.1.0",
"description": "A compiler for scss, js and asset sync, built with npm scripts.",
"author": "nervewax <[email protected]>",
"license": "ISC",
"browserslist": [
"> 5%",
"last 2 versions",
"not dead"
],
"repository": {
"type": "git",
"url": "https://github.com/nervewax/npm-compiler"
},
"bugs": "https://github.com/nervewax/npm-compiler/issues",
"keywords": [
"npm",
"scripts",
"npm scripts",
"compiler",
"sass compiler"
],
"scripts": {
"scss": "node-sass -o public/assets/css/ src/scss/",
"postcss": "postcss public/assets/css/main.css -m -o public/assets/css/main.min.css",
"rollup": "rollup -c",
"imagemin": "imagemin src/image/* --out-dir=public/assets/image",
"svgo": "mkdirp public/assets/svg && svgo -f src/svg -o public/assets/svg",
"livereload": "livereload .",
"clean:all": "rimraf public/assets/",
"clean:code": "rimraf public/assets/{css,js}",
"clean": "run-s clean:*",
"copy:fonts": "cp -a src/font public/assets/",
"copy:assets": "cp -a src/{font,image,svg} public/assets/",
"build:css": "run-s scss postcss",
"build:js": "run-s rollup",
"build:assets": "run-s imagemin svgo copy:fonts",
"build:markup": "html-minifier --input-dir src --output-dir public --collapse-whitespace --remove-comments --remove-optional-tags --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true --file-ext html",
"build": "mkdirp public/assets && run-s clean build:*",
"dev": "mkdirp public/assets && run-p build:css build:js copy:fonts copy:assets build:markup",
"watch:css": "onchange 'src/scss' -- run-s build:css",
"watch:js": "onchange 'src/js' -- run-s build:js",
"watch:assets": "onchange 'src/font' 'src/image' 'src/svg' -- run-s copy:assets",
"watch:markup": "onchange 'src/**/*.html' -- run-s build:markup",
"watch": "mkdirp public/assets && run-p watch:* livereload"
},
"dependencies": {
"@babel/core": "^7.11.1",
"@babel/preset-env": "^7.11.0",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"autoprefixer": "^9.8.6",
"cssnano": "^4.1.10",
"html-minifier": "^4.0.0",
"imagemin-cli": "^6.0.0",
"livereload": "^0.9.1",
"mkdirp": "^1.0.4",
"node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"onchange": "^7.0.2",
"pixrem": "^5.0.0",
"postcss-cli": "^7.1.1",
"rimraf": "^3.0.2",
"rollup": "^2.23.1",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-uglify": "^6.0.4",
"svgo": "^1.3.2"
}
}