fix build script

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
This commit is contained in:
Augustin Husson 2024-02-21 12:21:25 +01:00
parent c627cde8bf
commit 3d9782ba49
4 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
{
"name": "app",
"name": "@prometheus-io/app",
"private": true,
"version": "0.0.0",
"type": "module",

View file

@ -33,7 +33,7 @@ function buildReactApp() {
echo "build react-app"
npm run build -w @prometheus-io/app
rm -rf ./static/react
mv ./react-app/build ./static/react
mv ./app/dist ./static/react
}
for i in "$@"; do

View file

@ -20,6 +20,7 @@
}
},
"app": {
"name": "@prometheus-io/app",
"version": "0.0.0",
"dependencies": {
"@codemirror/autocomplete": "^6.11.1",
@ -86,8 +87,7 @@
},
"codemirror-promql/node_modules/lru-cache": {
"version": "7.18.3",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
"integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
"license": "ISC",
"engines": {
"node": ">=12"
}
@ -899,6 +899,10 @@
"node": ">= 8"
}
},
"node_modules/@prometheus-io/app": {
"resolved": "app",
"link": true
},
"node_modules/@prometheus-io/codemirror-promql": {
"resolved": "codemirror-promql",
"link": true
@ -1766,10 +1770,6 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/app": {
"resolved": "app",
"link": true
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@ -3640,9 +3640,9 @@
}
},
"node_modules/vite": {
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.3.tgz",
"integrity": "sha512-UfmUD36DKkqhi/F75RrxvPpry+9+tTkrXfMNZD+SboZqBCMsxKtO52XeGzzuh7ioz+Eo/SYDBbdb0Z7vgcDJew==",
"version": "5.1.4",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.4.tgz",
"integrity": "sha512-n+MPqzq+d9nMVTKyewqw6kSt+R3CkvF9QAKY8obiQn8g1fwTscKxyfaYnC632HtBXAQGc1Yjomphwn1dtwGAHg==",
"dev": true,
"dependencies": {
"esbuild": "^0.19.3",

View file

@ -4,7 +4,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "npm run build -w app",
"build": "GENERATE_SOURCEMAP=false bash build_ui.sh --all",
"build:module": "bash build_ui.sh --build-module",
"start": "npm run start -w app"
},