Skip to content

Commit

Permalink
ci: Reworking app build and dist process
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Steiler committed Aug 29, 2023
1 parent ada93af commit 0e3adff
Show file tree
Hide file tree
Showing 8 changed files with 348 additions and 194 deletions.
5 changes: 1 addition & 4 deletions .github/actions/build/app-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ runs:
cache-dependency-path: ${{ inputs.app-path }}
- id: setup-npm
shell: bash
run: (cd ${{ inputs.app-path }}; npm ci)
- id: setup-fs
shell: bash
run: cp README.md LICENSE ${{ inputs.app-path }}/
run: (cd ${{ inputs.app-path }}; npm ci)
2 changes: 1 addition & 1 deletion .github/actions/build/app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
steps:
- id: build-app
shell: bash
run: (cd ${{ inputs.app-path }}; npm run build)
run: (cd ${{ inputs.app-path }}; npm run build && npm run dist)
- id: package-artifact
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"<node_internals>/**"
],
"preLaunchTask": "Build App",
"program": "${workspaceFolder}/app/bin/main.js",
"program": "${workspaceFolder}/app/src/main.ts",
"args": ["sync"],
"outFiles": [
"${workspaceFolder}/app/bin/**/*.js",
"${workspaceFolder}/app/build/out/**/*.js",
],
"env": {
"NODE_NO_WARNINGS": "1"
Expand Down
4 changes: 3 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ bin/
node_modules/
docs/
coverage/
src/lib/resources/schemas/
src/lib/resources/schemas/
LICENSE
README.md
1 change: 1 addition & 0 deletions app/build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
out/
Loading

0 comments on commit 0e3adff

Please sign in to comment.