|
1 | 1 | { |
2 | 2 | "name": "calcite-preact-starter", |
3 | 3 | "private": true, |
| 4 | + "type": "module", |
4 | 5 | "homepage": "https://developers.arcgis.com/calcite-design-system/", |
5 | 6 | "description": "Starter application for @esri/calcite-commponents with Preact and TypeScript", |
6 | 7 | "repository": { |
|
9 | 10 | "directory": "examples/components/preact" |
10 | 11 | }, |
11 | 12 | "scripts": { |
12 | | - "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider preact build --no-prerender", |
13 | | - "serve": "sirv build --cors --single", |
14 | | - "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider preact watch", |
| 13 | + "build": "vite build", |
| 14 | + "dev": "vite", |
15 | 15 | "lint": "eslint src", |
16 | | - "test": "jest", |
17 | | - "postinstall": "npm run copy", |
18 | | - "copy": "ncp ./node_modules/@esri/calcite-components/dist/calcite/assets/ ./src/assets/" |
| 16 | + "preview": "vite preview", |
| 17 | + "test": "vitest" |
19 | 18 | }, |
20 | 19 | "eslintConfig": { |
21 | 20 | "parser": "@typescript-eslint/parser", |
|
28 | 27 | ] |
29 | 28 | }, |
30 | 29 | "dependencies": { |
31 | | - "@esri/calcite-components": "3.0.1", |
32 | | - "preact": "^10.10.0", |
33 | | - "preact-render-to-string": "^5.2.1", |
34 | | - "preact-router": "^3.2.1" |
| 30 | + "@esri/calcite-components": "3.1.0", |
| 31 | + "preact": "^10.26.2", |
| 32 | + "preact-iso": "^2.9.0" |
35 | 33 | }, |
36 | 34 | "devDependencies": { |
37 | | - "@types/enzyme": "^3.10.12", |
38 | | - "@types/jest": "^27.4.1", |
| 35 | + "@preact/preset-vite": "^2.10.1", |
| 36 | + "@testing-library/preact": "^3.2.4", |
39 | 37 | "@typescript-eslint/eslint-plugin": "^5.30.6", |
40 | 38 | "@typescript-eslint/parser": "^5.30.6", |
41 | | - "cross-env": "^7.0.3", |
42 | | - "enzyme": "^3.11.0", |
43 | | - "enzyme-adapter-preact-pure": "^4.0.1", |
44 | 39 | "eslint": "^8.20.0", |
45 | 40 | "eslint-config-preact": "^1.3.0", |
46 | | - "jest": "^27.5.1", |
47 | | - "jest-preset-preact": "^4.0.5", |
48 | | - "ncp": "^2.0.0", |
49 | | - "preact-cli": "^3.4.0", |
50 | | - "sirv-cli": "^2.0.2", |
51 | | - "typescript": "^4.5.2" |
52 | | - }, |
53 | | - "jest": { |
54 | | - "preset": "jest-preset-preact", |
55 | | - "setupFiles": [ |
56 | | - "<rootDir>/tests/__mocks__/browserMocks.ts", |
57 | | - "<rootDir>/tests/__mocks__/setupTests.ts" |
58 | | - ] |
| 41 | + "typescript": "^4.5.2", |
| 42 | + "vite-plugin-static-copy": "^2.2.0", |
| 43 | + "vitest": "^3.0.6" |
59 | 44 | }, |
60 | 45 | "volta": { |
61 | 46 | "node": "18.13.0" |
|
0 commit comments