Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 0219878

Browse files
committed
Organize npm scripts with run-scripts-util
1 parent 705f524 commit 0219878

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

package.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,19 @@
6767
"@typescript-eslint/no-non-null-assertion": "off"
6868
}
6969
},
70+
"runScriptsConfig": {
71+
"build": [
72+
"rimraf build dist **/.DS_Store",
73+
"jshint . --exclude-path .gitignore",
74+
"eslint --max-warnings 0 . --ext .ts",
75+
"tsc",
76+
"tsc --module UMD --outDir build/umd",
77+
"copy-file build/umd/html-validator.js build/html-validator.umd.cjs",
78+
"add-dist-header build dist"
79+
]
80+
},
7081
"scripts": {
71-
"step:01": "rimraf build dist **/.DS_Store",
72-
"step:02": "jshint . --exclude-path .gitignore",
73-
"step:03": "eslint --max-warnings 0 . --ext .ts",
74-
"step:10": "tsc",
75-
"step:11": "tsc --module UMD --outDir build/umd",
76-
"step:12": "copy-file build/umd/html-validator.js build/html-validator.umd.cjs",
77-
"step:20": "add-dist-header build dist",
78-
"pretest": "npm-run-all step:*",
82+
"pretest": "run-scripts build",
7983
"test": "mocha spec --timeout 5000"
8084
},
8185
"dependencies": {
@@ -85,19 +89,19 @@
8589
"w3c-html-validator": "~1.2"
8690
},
8791
"devDependencies": {
88-
"@types/node": "~18.8",
92+
"@types/node": "~18.11",
8993
"@types/through2": "~2.0",
9094
"@typescript-eslint/eslint-plugin": "~5.40",
9195
"@typescript-eslint/parser": "~5.40",
9296
"add-dist-header": "~0.3",
9397
"assert-deep-strict-equal": "~1.0",
9498
"copy-file-util": "~0.1",
9599
"copy-folder-util": "~0.2",
96-
"eslint": "~8.25",
100+
"eslint": "~8.26",
97101
"jshint": "~2.13",
98-
"mocha": "~10.0",
99-
"npm-run-all2": "~6.0",
102+
"mocha": "~10.1",
100103
"rimraf": "~3.0",
104+
"run-scripts-util": "~0.1",
101105
"sinon": "~14.0",
102106
"slash": "~5.0",
103107
"typescript": "~4.8"

0 commit comments

Comments
 (0)