Skip to content

Commit 4823aba

Browse files
author
The Ult
committed
build(scripts): update start script and reorganize and rename npm scripts for clarity
1 parent 87aa580 commit 4823aba

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
7-
"start": "ng serve",
7+
"start": "ng dev",
88
"api": "json-server projects/examples/src/backend/db.json",
99
"build": "ng build",
1010
"watch": "ng build --watch --configuration development",
11-
"test": "jest",
12-
"prepare": "husky",
1311
"build:app": "ng build examples --configuration=production --base-href=/ngx-vest-forms/",
14-
"build:lib": "ng build ngx-vest-forms --configuration=production",
1512
"build:ci": "npm run build:lib && npm run build:app",
16-
"postbuild:lib": "copyfiles README.md dist/ngx-vest-forms",
17-
"test:lib": "jest",
13+
"build:lib": "ng build ngx-vest-forms --configuration=production",
14+
"format:check": "prettier --check \"projects/**/*.{ts,js,json,css,scss,html}\"",
15+
"format": "prettier --write \"projects/**/*.{ts,js,json,css,scss,html}\"",
16+
"lint": "ng lint",
17+
"semantic-release": "semantic-release",
1818
"storybook:build": "npx ng run ngx-vest-forms:build-storybook",
19-
"test:storybook:ci": "npx run-p --race test:storybook preview-storybook",
20-
"test:storybook": "wait-on http://127.0.0.1:6006 && test-storybook -c projects/ngx-vest-forms/.storybook --url http://127.0.0.1:6006 --",
21-
"preview-storybook": "http-server dist/storybook/ngx-vest-forms --port 6006 --silent",
19+
"storybook:preview": "http-server dist/storybook/ngx-vest-forms --port 6006 --silent",
20+
"storybook:test:ci": "npx run-p --race storybook:test storybook:preview",
21+
"storybook:test": "wait-on http://127.0.0.1:6006 && test-storybook -c projects/ngx-vest-forms/.storybook --url http://127.0.0.1:6006 --",
2222
"test:ci": "npm run test:lib",
23-
"semantic-release": "semantic-release",
24-
"prettier:check": "prettier --check \"projects/**/*.{ts,js,json,css,scss,html}\"",
25-
"prettier:format": "prettier --write \"projects/**/*.{ts,js,json,css,scss,html}\"",
26-
"lint": "ng lint"
23+
"test:lib": "jest",
24+
"test": "jest",
25+
"prepare": "husky",
26+
"postbuild:lib": "copyfiles README.md dist/ngx-vest-forms"
2727
},
2828
"private": false,
2929
"dependencies": {

0 commit comments

Comments
 (0)