Skip to content

Commit 5681815

Browse files
authored
fix: improve npm-scripts (#1105)
1 parent df1c7d1 commit 5681815

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
2-
"name": "specs-new",
2+
"name": "specs",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "The Filecoin protocol specification",
55
"main": "index.js",
66
"scripts": {
7-
"start": "concurrently -n diagrams,hugo \"tools/diagrams.js --watch\" \"npm run serve\"",
87
"test": "echo \"Error: no test specified\" && exit 1",
9-
"serve": "npm run diagrams && hugo server --bind=0.0.0.0 --disableFastRender",
10-
"build": "npm run diagrams && hugo --gc --minify",
11-
"clean-modules": "hugo mod clean --all && hugo mod tidy",
12-
"diagrams": "tools/diagrams.js --all"
8+
"start": "concurrently npm:watch-*",
9+
"serve": "npm start",
10+
"watch-hugo": "npm run build-diagrams && hugo server --bind=0.0.0.0 --disableFastRender",
11+
"watch-diagrams": "tools/diagrams.js --watch",
12+
"build": "npm run build-diagrams && hugo --gc --minify",
13+
"build-diagrams": "tools/diagrams.js --all",
14+
"clean": "premove public resources static/_gen && hugo mod clean --all && hugo mod tidy"
1315
},
1416
"author": "",
1517
"license": "MIT",

0 commit comments

Comments
 (0)