Skip to content

Commit 7e2eeb8

Browse files
committed
ui: simplify local setup
Signed-off-by: Miguel Garcia Garcia <[email protected]>
1 parent 0474c5e commit 7e2eeb8

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.prettierignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ yarn.lock
66
.gitignore
77
Dockerfile
88
*.svg
9-
.npmrc
10-
.yalc
11-
yalc.lock
9+
.npmrc

ui/cap-react/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ bundle-stats.html
4343
cypress/screenshots
4444

4545
.env
46-
47-
.yalc
48-
yalc.lock

ui/cap-react/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cap-react",
3-
"version": "0.3.0",
3+
"version": "1.0.0",
44
"description": "CERN Analysis Preservation UI",
55
"type": "module",
66
"engines": {
@@ -70,7 +70,6 @@
7070
"redux-logger": "3.0.6",
7171
"redux-thunk": "2.3.0",
7272
"sanitize-html": "2.4.0",
73-
"squirrelly": "8.0.8",
7473
"vite": "^5.0.2"
7574
},
7675
"devDependencies": {

ui/cap-react/vite.config.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineConfig(({ mode }) => {
2020
}),
2121
// Restarts the dev server (full reload aka --force) when a new version of react-formule is available
2222
ViteRestart({
23-
restart: [".yalc/react-formule/dist/react-formule.js"],
23+
restart: ["../../../react-formule/dist/react-formule.js"],
2424
}),
2525
],
2626
server: {
@@ -37,13 +37,6 @@ export default defineConfig(({ mode }) => {
3737
},
3838
},
3939
},
40-
// ESModules only allow "import" imports. However some libraries (i.e. squirrelly)
41-
// still use "require" imports. This converts CommonJS modules to ESModules
42-
build: {
43-
commonjsOptions: {
44-
transformMixedEsModules: true,
45-
},
46-
},
4740
// Allows writing JSX in .js files
4841
esbuild: {
4942
loader: "jsx",
@@ -65,6 +58,7 @@ export default defineConfig(({ mode }) => {
6558
},
6659
],
6760
},
61+
include: ["react-formule"],
6862
},
6963
// TEMPORARY: allows using process.env (ideally we should use import.meta.env I think)
7064
define: {

0 commit comments

Comments
 (0)