-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-scripts.js
More file actions
56 lines (56 loc) · 1.58 KB
/
package-scripts.js
File metadata and controls
56 lines (56 loc) · 1.58 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
module.exports = {
scripts: {
test: {
default: "jest",
watch: "jest --coverage --watchAll",
coverage: "jest --coverage",
},
format: {
default: {
script: "prettier --write '*.js' && prettier --write 'src/**/*.js'",
description: "Formats source files.",
},
check: {
script: "prettier --check '*.js' && prettier --check 'src/**/*.js'",
description: "Verifies formating of source files.",
},
},
lint: {
dry: "eslint --fix-dry-run src/**.js",
fix: "eslint --fix-dry-run src/**.js",
},
dependencies: {
default: {
script: "madge --image dependencies.svg src/index.js",
description: "Generates a svg of dependencies.",
},
circular: {
script: "madge -c src/index.js",
description:
"Verifies that no circular dependency is present in the project.",
},
},
bundle: "microbundle build --raw",
demo: {
default: {
script: "parcel --out-dir demo/dist demo/index.html",
description: "Runs the demo.",
},
ci: {
build: {
script:
"parcel build --public-url 'https://aboeglin.github.io/snake-render-engine/' --out-dir demo/dist demo/index.html",
description: "Builds the demo.",
},
publish: {
script: "gh-pages -d demo/dist",
description: "Publishes the demo.",
},
},
},
clean: {
description: "Deletes build assets.",
script: "rm -r dist/; rm -r demo/dist/; rm -r coverage/; rm -r .cache;",
},
},
};