Skip to content
Snippets Groups Projects
Commit dab9b7d9 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Use bun for survey-creator and update dependencies

parent 383f39bd
No related branches found
No related tags found
No related merge requests found
# Working with the Compendium Survey Creator
## Requires Bun (https://bun.sh/docs/installation)
```bash
curl -fsSL https://bun.sh/install | bash
```
## Install the dependencies
```bash
bun install
```
## Run the Vite development server
```bash
bun run start
```
We don't build & release this, so you're done!
We currently only have a license key for version `1.12.9`.
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
......@@ -7,44 +7,46 @@
"build": "webpack --mode production"
},
"devDependencies": {
"@babel/core": "~7.24",
"@babel/core": "~7.26.0",
"@babel/plugin-proposal-class-properties": "~7.18",
"@babel/plugin-transform-runtime": "~7.24",
"@babel/preset-env": "~7.24.7",
"@babel/preset-react": "~7.24",
"@babel/preset-typescript": "~7.24",
"@babel/runtime": "~7.24",
"@types/express": "^4.17.21",
"@types/react": "~18.3",
"@types/react-dom": "~18.3",
"@babel/plugin-transform-runtime": "~7.25.9",
"@babel/preset-env": "~7.26.0",
"@babel/preset-react": "~7.26.3",
"@babel/preset-typescript": "~7.26.0",
"@babel/runtime": "~7.26.0",
"@types/express": "^5.0.0",
"@types/react": "~19.0.8",
"@types/react-dom": "~19.0.3",
"@types/react-router-dom": "~5.3.3",
"@types/webpack": "~5.28",
"@typescript-eslint/eslint-plugin": "~6.21",
"@typescript-eslint/parser": "~6.21",
"babel-loader": "~9.1.3",
"css-loader": "~6.11.0",
"eslint": "^8.57.0",
"eslint-plugin-react": "~7.34.3",
"eslint-plugin-react-hooks": "~4.6.2",
"express": "^4.19.2",
"@typescript-eslint/eslint-plugin": "~8.21.0",
"@typescript-eslint/parser": "~8.21.0",
"babel-loader": "~9.2.1",
"css-loader": "~7.1.2",
"eslint": "^9.18.0",
"eslint-plugin-react": "~7.37.4",
"eslint-plugin-react-hooks": "~5.1.0",
"express": "^4.21.2",
"fork-ts-checker-webpack-plugin": "~9.0.2",
"mini-css-extract-plugin": "~2.9.0",
"sass": "~1.77.6",
"sass-loader": "~13.3.3",
"style-loader": "~3.3.4",
"mini-css-extract-plugin": "~2.9.2",
"sass": "~1.83.4",
"sass-loader": "~16.0.4",
"style-loader": "~4.0.0",
"ts-node": "~10.9.2",
"typescript": "~5.5.3",
"typescript": "~5.7.3",
"url-loader": "~4.1.1",
"webpack": "~5.92.1",
"webpack-cli": "~5.1.4",
"webpack-dev-server": "~4.15.2"
"webpack": "~5.97.1",
"webpack-cli": "~6.0.1",
"webpack-dev-server": "~5.2.0"
},
"dependencies": {
"react": "~18.3.1",
"react-bootstrap": "~2.10.4",
"react-dom": "~18.3.1",
"survey-creator-react": "~1.11.6",
"survey-react-ui": "~1.11.5"
"react": "~19.0.0",
"react-bootstrap": "~2.10.8",
"react-dom": "~19.0.0",
"survey-core": "1.12.9",
"survey-creator-core": "1.12.9",
"survey-creator-react": "1.12.9",
"survey-react-ui": "1.12.9"
},
"main": "index.tsx",
"author": "GÉANT",
......@@ -53,4 +55,4 @@
"type": "git",
"url": "https://gitlab.geant.org/geant-swd/compendium-v2.git"
}
}
}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<div id="root"></div>
<script src="/bundle.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -58,11 +58,11 @@ const config: Configuration = {
extensions: [".tsx", ".ts", ".js", ".html", '.svg'],
},
output: {
path: path.resolve(__dirname, "..", "compendium_v2", "static"),
path: path.resolve(__dirname, "static"),
filename: "bundle.js",
},
devServer: {
static: path.join(__dirname, "..", "compendium_v2", "static"),
static: path.join(__dirname, "static"),
compress: true,
port: 54054,
// Allow SPA urls to work with dev-server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment