Skip to content

Commit 99725b2

Browse files
Migrate to vite and vitest. Pin versions. Add .npmrc
1 parent a101037 commit 99725b2

23 files changed

+2275
-53771
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ignore-scripts=true
2+
save-exact=true
3+
auto-install-peers=false
4+
minimum-release-age=72h
5+
frozen-lockfile=true

ui/pages/detection-context-explorer/config/rollup.config.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

ui/pages/detection-context-explorer/src/index.html renamed to ui/pages/detection-context-explorer/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22
<html lang="en" style="width: 100%; height: 100%">
33
<head>
44
<title>React Blueprint for Foundry</title>
5-
<link
6-
rel="stylesheet"
7-
href="../node_modules/@crowdstrike/tailwind-toucan-base/index.css"
8-
/>
9-
<link rel="stylesheet" href="./styles.css" />
105
</head>
116

127
<body class="bg-ground-floor text-titles-and-attributes">
138
<div id="app"></div>
149

15-
<script src="./app.js" type="module"></script>
10+
<script src="./src/app.jsx" type="module"></script>
1611
</body>
1712
</html>

ui/pages/detection-context-explorer/jest.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

ui/pages/detection-context-explorer/jest.setup.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

ui/pages/detection-context-explorer/package.json

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,29 @@
99
"@crowdstrike/foundry-js": "0.19.0",
1010
"@crowdstrike/tailwind-toucan-base": "5.0.0",
1111
"dompurify": "3.2.6",
12-
"react": "19.1.1",
13-
"react-dom": "19.1.1"
12+
"react": "18.3.1",
13+
"react-dom": "18.3.1"
1414
},
1515
"devDependencies": {
16-
"@babel/core": "7.28.3",
17-
"@babel/preset-env": "7.28.0",
18-
"@babel/preset-react": "7.27.1",
19-
"@rollup/plugin-babel": "6.0.4",
20-
"@rollup/plugin-commonjs": "28.0.6",
21-
"@rollup/plugin-json": "6.1.0",
22-
"@rollup/plugin-node-resolve": "16.0.1",
23-
"@rollup/plugin-replace": "6.0.2",
24-
"@testing-library/jest-dom": "6.8.0",
25-
"@testing-library/react": "16.3.0",
26-
"@testing-library/user-event": "14.6.1",
27-
"@web/rollup-plugin-html": "2.3.0",
28-
"babel-jest": "30.0.5",
29-
"jest": "30.1.2",
30-
"jest-environment-jsdom": "30.0.5",
31-
"postcss": "8.5.6",
32-
"rollup": "4.50.0",
33-
"rollup-plugin-postcss": "4.0.2"
16+
"@testing-library/dom": "10.4.0",
17+
"@testing-library/jest-dom": "6.6.3",
18+
"@testing-library/react": "14.3.1",
19+
"@testing-library/user-event": "14.5.2",
20+
"@vitejs/plugin-react": "4.4.1",
21+
"jsdom": "25.0.1",
22+
"vite": "7.1.5",
23+
"vitest": "3.2.4"
24+
},
25+
"optionalDependencies": {
26+
"@rollup/rollup-darwin-arm64": "4.50.2"
3427
},
3528
"scripts": {
36-
"build": "rollup -c ./config/rollup.config.js",
37-
"watch": "npm run build -- --watch",
38-
"test": "jest",
39-
"test:watch": "jest --watch",
40-
"test:coverage": "jest --coverage"
29+
"build": "vite build",
30+
"dev": "vite",
31+
"preview": "vite preview",
32+
"test": "vitest --run",
33+
"test:watch": "vitest --watch",
34+
"test:coverage": "vitest --coverage"
4135
},
4236
"engines": {
4337
"node": ">=18.12.0"

0 commit comments

Comments
 (0)