Skip to content

Commit

Permalink
build(octra): rewrite deploy script to support the current server config
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Oct 14, 2024
1 parent 7c82d1b commit 662eac1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 201 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ deploy

.nx/cache
.nx/workspace-data
/deploy.sh
200 changes: 0 additions & 200 deletions deploy.js

This file was deleted.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"build:assets": "node runner.js build:assets",
"build:web-components": "nx build ngx-components && nx build web-components --outputHashing none && node prepare_web-components.js",
"build:watch:deploy": "nx build octra --configuration=public-development --base-href=/apps/octra/octra-dev/ --outputPath ./deploy --watch",
"build:dev:update:beta": "node runner.js build:dev:update:beta",
"build:prod:update:beta": "node runner.js build:prod:update:beta",
"deploy:octra:dev:beta": "npm run build:dev:update:beta && npm run package:octra:dev && ./deploy.sh octra-2-dev",
"package:octra:dev": "cd dist/apps && zip -r octra-2-dev.zip octra && cd -",
"deploy:octra:prod:beta": "npm run build:prod:update:beta && npm run package:octra:prod && ./deploy.sh octra-2",
"package:octra:prod": "cd dist/apps && zip -r octra-2.zip octra && cd -",
"release:lib:annotation": "node runner.js build:lib annotation && nx run annotation:version --push",
"publish:lib:annotation": "node runner.js build:lib annotation && nx npm annotation",
"release:lib:assets": "node runner.js build:assets && nx run assets:version --releaseAs=patch --push",
Expand Down
18 changes: 17 additions & 1 deletion runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,18 @@ const OCTRA = {
);
await setBuildVariable();
},
buildBeta: async function () {
buildBetaDevUpdate: async function () {
await run(
'node ./build.js beta=true isUpdate=true url=/apps/octra/octra-dev/'
);
await setBuildVariable();
},
buildBetaProdUpdate: async function () {
await run(
'node ./build.js beta=true isUpdate=true url=/apps/octra/octra-2/'
);
await setBuildVariable();
},
buildBetaProd: async function () {
await run('node ./build.js beta=true isUpdate=false url=/');
await setBuildVariable();
Expand Down Expand Up @@ -159,6 +165,16 @@ yargs
'Builds prod beta version of OCTRA.',
OCTRA.buildBetaProd
)
.command(
'build:prod:update:beta',
'Builds prod beta update version of OCTRA.',
OCTRA.buildBetaProdUpdate
)
.command(
'build:dev:update:beta',
'Builds dev beta update version of OCTRA.',
OCTRA.buildBetaDevUpdate
)
.command('build:libs', 'Builds all libraries.', OCTRA.buildLibs)
.command(
'build:lib [library]',
Expand Down

0 comments on commit 662eac1

Please sign in to comment.