Implemented NPM package.json functionality
This commit is contained in:
parent
ae445245a7
commit
3ff9e6a369
34
Data/WebUI/package.json
Normal file
34
Data/WebUI/package.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "borealis-webui",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "react-scripts build",
|
||||
"start": "react-scripts start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mui/material": "7.0.2",
|
||||
"@mui/icons-material": "7.0.2",
|
||||
"@mui/x-tree-view": "7.28.1",
|
||||
"@emotion/react": "11.14.0",
|
||||
"@emotion/styled": "11.14.0",
|
||||
"react-resizable": "3.0.5",
|
||||
"reactflow": "11.11.4",
|
||||
"socket.io-client": "4.8.1",
|
||||
"react-simple-keyboard": "3.8.62",
|
||||
"normalize.css": "8.0.1",
|
||||
"react-scripts": "5.0.1"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
@ -9,16 +9,10 @@ import "normalize.css/normalize.css";
|
||||
import './Borealis.css'; // Global Theming for All of Borealis
|
||||
|
||||
import App from './App.jsx';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
// If you want to start measuring performance in your app, pass a function
|
||||
// to log results (for example: reportWebVitals(console.log))
|
||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||
reportWebVitals();
|
||||
);
|
@ -110,7 +110,7 @@ switch ($choice) {
|
||||
} else {
|
||||
Write-Host "`r$($symbols.Info) No custom UI found, using default React app." -ForegroundColor Yellow
|
||||
}
|
||||
# Remove any existing React build folder
|
||||
# Remove any existing React build folders
|
||||
if (Test-Path "$webUIDestination\build") {
|
||||
Remove-Item -Path "$webUIDestination\build" -Recurse -Force
|
||||
}
|
||||
@ -134,14 +134,8 @@ switch ($choice) {
|
||||
Push-Location $webUIDestination
|
||||
$env:npm_config_loglevel = "silent"
|
||||
|
||||
# Install required NPM packages
|
||||
# Configure packages to install using <ProjectRoot>/Data/WebUI/package.json
|
||||
npm install --silent --no-fund --audit=false 2>&1 | Out-Null
|
||||
npm install --silent react-resizable --no-fund --audit=false | Out-Null
|
||||
npm install --silent reactflow --no-fund --audit=false | Out-Null
|
||||
npm install --silent @mui/material @mui/icons-material @emotion/react @emotion/styled --no-fund --audit=false 2>&1 | Out-Null
|
||||
npm install --silent socket.io-client --no-fund --audit=false | Out-Null
|
||||
npm install --silent react-simple-keyboard --no-fund --audit=false | Out-Null
|
||||
npm install --silent normalize.css --no-fund --audit=false | Out-Null
|
||||
|
||||
Pop-Location
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user