Skip to content

Commit

Permalink
create package script for action
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Kusumgar committed Dec 6, 2024
1 parent 84aeb2a commit e41acbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"genversion": "genversion --es6 --semi --double src/version.ts",
"static-serve": "http-server ./public -p 3000",
"copy-static-files": "cp ../../config/index.html ./public && cp -r ../../config/files ./public && cp -r ../../config/help ./public",
"build-static-site": "ts-node --project tsconfig.node.json ./src/static-site-builder/wodinBuilder.ts ../../config ./public ./views && npm run copy-static-files"
"build-static-site": "ts-node --project tsconfig.node.json ./src/static-site-builder/wodinBuilder.ts ../../config ./public ./views && npm run copy-static-files",
"build-static-site-for-action": "ts-node --project tsconfig.node.json ./src/static-site-builder/wodinBuilder.ts"
},
"devDependencies": {
"@eslint/js": "^9.14.0",
Expand Down
5 changes: 1 addition & 4 deletions app/static/src/store/appState/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ export const appStateMutations: MutationTree<AppState> = {
},

[AppStateMutation.SetConfig](state: AppState, payload: AppConfig) {
if (STATIC_BUILD) {
payload.readOnlyCode = true;
}
state.config = payload;
state.config = STATIC_BUILD ? { ...payload, readOnlyCode: true } : payload;
},

[AppStateMutation.SetOpenVisualisationTab](state: AppState, payload: VisualisationTab) {
Expand Down
1 change: 0 additions & 1 deletion scripts/build-and-serve-static-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ set -ex

npm run static-build --prefix=app/static
npm run build-static-site --prefix=app/server
npm run copy-static-files --prefix=app/server

sleep 1

Expand Down

0 comments on commit e41acbf

Please sign in to comment.