-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
56 lines (56 loc) · 2.38 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
55
56
{
"name": "task-runner",
"version": "1.0.0",
"engines": {
"node": "18.x"
},
"description": "",
"main": "index.html",
"scripts": {
"init-project": "npm install && npm-run-all init:*",
"init:dirs": "mkdirp dist src/sass src/css src/vendor src/images src/js src/db",
"init:files": "touch README.md src/index.html src/sass/style.scss src/js/script.js src/db/app.json",
"init:gitignore": "curl https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore -o .gitignore",
"init:gitignore:custom": "echo \"dist\" >> .gitignore",
"init:db": "echo {} >> src/db/app.json",
"test": "npm-run-all test:*",
"test:html": "html-validate src/*.html",
"test:js": "eslint --fix src/js/",
"test:scss": "stylelint --fix src/sass/",
"server": "json-server --port 3131 --no-cors --delay 250 --watch dist/db/app.json",
"build": "npm-run-all build:* test",
"build:clean": "rimraf dist && mkdirp dist",
"build:copy": "copyfiles -a -u 1 -e \"**/sass/**/*\" -e \"**/.gitkeep\" \"src/**/*\" dist",
"build:sass": "sass src/sass:dist/css ",
"build:autoprefixer": "postcss dist/css/*.css --use autoprefixer -d dist/css",
"build-dev": "npm-run-all build-dev:sass build:autoprefixer",
"build-dev:sass": "sass src/sass:dist/css",
"watch": "npm-run-all build build-dev -p watch:* server",
"watch:browsersync": "browser-sync start --server dist --files \"dist/**/*\"",
"watch:sassprefixer": "onchange \"src/sass/**/*.scss\" -- npm run build-dev",
"watch:copy": "onchange -e \"**/sass/**/*\" -e \"**/.gitkeep\" \"src/**/*\" -- copyfiles -a -u 1 {{changed}} dist"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^10.2.4",
"browser-sync": "^2.26.3",
"copyfiles": "^2.1.0",
"eslint": "^5.14.1",
"globstar": "^1.0.0",
"html-validate": "^2.8.0",
"mkdirp": "^0.5.1",
"npm-run-all": "^4.1.5",
"onchange": "^5.2.0",
"postcss": "^8.2.6",
"postcss-cli": "^8.3.1",
"rimraf": "^3.0.2",
"stylelint": "^9.10.1",
"stylelint-scss": "^3.5.4"
},
"dependencies": {
"json-server": "^0.16.3",
"sass": "^1.35.1"
}
}