Skip to content

Commit 7170d31

Browse files
committed
add scripts
1 parent 16d8b6b commit 7170d31

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

package.json

+13-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010
"/lib"
1111
],
1212
"scripts": {
13-
"lint": "eslint src",
14-
"test": "echo \"Error: no test specified\" && exit 1",
15-
"build": "rm -rf lib && npm run build:esm && npm run build:cjs && npm run copy",
16-
"build:esm": "tsc",
17-
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
18-
"copy": "npm run copy:esm && npm run copy:cjs",
19-
"copy:esm": "cp -r src/public lib/esm/public",
20-
"copy:cjs": "cp -r src/public lib/cjs/public"
13+
"dev": "vite",
14+
"start": "serve -s dist",
15+
"build": "tsc && vite build",
16+
"preview": "vite preview",
17+
"test": "vitest run",
18+
"test:coverage": "vitest run --coverage",
19+
"test:verbose": "vitest run --reporter=verbose --coverage.thresholds.lines=90 --coverage.thresholds.functions=90 --coverage.thresholds.branches=90 --coverage.thresholds.statements=90",
20+
"test:ui": "vitest --ui",
21+
"format": "prettier --write .",
22+
"format:check": "prettier --check --write=false .",
23+
"lint": "eslint --max-warnings=0 .",
24+
"lint:fix": "eslint --fix .",
25+
"type-check": "tsc --noEmit"
2126
},
2227
"repository": {
2328
"type": "git",

0 commit comments

Comments
 (0)