|
32 | 32 | },
|
33 | 33 | "scripts": {
|
34 | 34 | "_format": "prettier --loglevel=warn \"{src,tools,scripts,tests,.github}/**/*.{mjs,cjs,js,mts,md,yml,json,html,ts}\" \"*.{mjs,cjs,js,mts,yml,json,html,ts}\" \".*.{mjs,cjs,js,yml,json,html,ts}\" \"!CHANGELOG.md\" \"!**/*/package-lock.json\" \"!.github/**/*.md\"",
|
35 |
| - "clean": "rm -rf dist/", |
36 |
| - "start": "node ./bin/run.js", |
37 | 35 | "build": "tsc --project tsconfig.build.json",
|
| 36 | + "certs": "openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj \"/CN=localhost\" -extensions EXT -config certconf", |
| 37 | + "clean": "rm -rf dist/", |
38 | 38 | "dev": "tsc --project tsconfig.build.json --watch",
|
39 |
| - "test": "npm run test:dev", |
| 39 | + "docs": "npm run --prefix=site build", |
| 40 | + "e2e": "node ./tools/e2e/run.js", |
40 | 41 | "format": "npm run _format -- --write",
|
41 | 42 | "format:check": "npm run _format -- --check",
|
| 43 | + "start": "node ./bin/run.js", |
| 44 | + "test": "npm run test:dev", |
42 | 45 | "lint": "eslint --cache \"{src,scripts,tests,.github}/**/*.{mjs,cjs,js,md,html}\" \"*.{mjs,cjs,js,md,html}\"",
|
43 | 46 | "lint:fix": "npm run lint --fix",
|
44 | 47 | "test:dev": "run-s certs test:init:* test:dev:*",
|
| 48 | + "test:dev:vitest": "vitest run tests/unit/ && vitest run tests/integration", |
45 | 49 | "test:init": "run-s test:init:*",
|
46 |
| - "test:init:cli-version": "npm run start -- --version", |
47 | 50 | "test:init:cli-help": "npm run start -- --help",
|
| 51 | + "test:init:cli-version": "npm run start -- --version", |
48 | 52 | "test:init:eleventy-deps": "cd tests/integration/__fixtures__/eleventy-site && pnpm install --frozen-lockfile",
|
49 | 53 | "test:init:hugo-deps": "npm ci --prefix tests/integration/__fixtures__/hugo-site --no-audit",
|
50 | 54 | "test:init:monorepo-deps": "cd tests/integration/__fixtures__/monorepo && pnpm install --frozen-lockfile",
|
51 | 55 | "test:init:next-deps": "npm ci --prefix tests/integration/__fixtures__/next-app-without-config --no-audit && npm ci --prefix tests/integration/__fixtures__/next-app --no-audit",
|
52 |
| - "test:dev:vitest": "vitest run tests/unit/ && vitest run tests/integration", |
53 |
| - "test:ci:vitest:unit": "vitest run --coverage tests/unit/", |
54 | 56 | "test:ci:vitest:integration": "vitest run --coverage tests/integration/",
|
55 |
| - "e2e": "node ./tools/e2e/run.js", |
56 |
| - "docs": "npm run --prefix=site build", |
57 |
| - "watch": "c8 --reporter=lcov vitest --watch", |
| 57 | + "test:ci:vitest:unit": "vitest run --coverage tests/unit/", |
58 | 58 | "postinstall": "node ./scripts/postinstall.js",
|
59 | 59 | "prepublishOnly": "npm shrinkwrap",
|
60 |
| - "certs": "openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj \"/CN=localhost\" -extensions EXT -config certconf", |
61 | 60 | "typecheck": "tsc",
|
62 |
| - "typecheck:watch": "tsc --watch" |
| 61 | + "typecheck:watch": "tsc --watch", |
| 62 | + "watch": "c8 --reporter=lcov vitest --watch" |
63 | 63 | },
|
64 | 64 | "dependencies": {
|
65 | 65 | "@fastify/static": "7.0.4",
|
|
0 commit comments