Merge pull request #32 from brianpooe/feature/gh-pages

feat: using angular cli for deployment of demo
This commit is contained in:
Brian Pooe 2023-08-08 19:15:58 +02:00 committed by GitHub
commit edb374afe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 667 additions and 5828 deletions

View file

@ -18,7 +18,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- uses: nrwl/nx-set-shas@v3 - uses: nrwl/nx-set-shas@v3
- name: Install deps - name: Install deps
run: npm ci run: npm ci --legacy-peer-deps
- name: Lint affected - name: Lint affected
run: npx nx affected -t lint run: npx nx affected -t lint
- name: Test affected - name: Test affected

View file

@ -1,12 +1,12 @@
name: Deploy demo name: Deploy demo
on: [ workflow_dispatch ] on: [workflow_dispatch]
permissions: permissions:
contents: write contents: write
concurrency: concurrency:
group: "pages" group: 'pages'
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
@ -21,7 +21,4 @@ jobs:
run: | run: |
npm ci npm ci
npx nx build ngx-responsive-table-demo -c production npx nx build ngx-responsive-table-demo -c production
- name: Deploy 🚀 npm run deploy:ngx-responsive-table-demo
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/apps/ngx-responsive-table-demo

View file

@ -20,7 +20,8 @@
"apps/ngx-responsive-table-demo/src/assets" "apps/ngx-responsive-table-demo/src/assets"
], ],
"styles": ["apps/ngx-responsive-table-demo/src/styles.scss"], "styles": ["apps/ngx-responsive-table-demo/src/styles.scss"],
"scripts": [] "scripts": [],
"baseHref": "/devtools-bp/ngx-responsive-table-demo/"
}, },
"configurations": { "configurations": {
"production": { "production": {

6476
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,8 @@
"scripts": { "scripts": {
"start:paystack:demo": "nx serve ns-paystack-demo", "start:paystack:demo": "nx serve ns-paystack-demo",
"start:table:demo": "nx serve ngx-responsive-table-demo", "start:table:demo": "nx serve ngx-responsive-table-demo",
"prepare": "husky install" "prepare": "husky install",
"deploy:ngx-responsive-table-demo": "ng build --prod --base-href=/devtools-bp/ && npx ngh --dir=dist/apps/ngx-responsive-table-demo"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "~16.1.0", "@angular/animations": "~16.1.0",
@ -27,6 +28,7 @@
"zone.js": "~0.13.0" "zone.js": "~0.13.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/architect": "^0.1601.8",
"@angular-devkit/build-angular": "~16.1.0", "@angular-devkit/build-angular": "~16.1.0",
"@angular-devkit/core": "~16.1.0", "@angular-devkit/core": "~16.1.0",
"@angular-devkit/schematics": "~16.1.0", "@angular-devkit/schematics": "~16.1.0",
@ -62,6 +64,7 @@
"@types/node": "~18.7.1", "@types/node": "~18.7.1",
"@typescript-eslint/eslint-plugin": "^5.58.0", "@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0", "@typescript-eslint/parser": "^5.58.0",
"angular-cli-ghpages": "^1.0.6",
"conventional-changelog-conventionalcommits": "^6.1.0", "conventional-changelog-conventionalcommits": "^6.1.0",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"eslint": "~8.15.0", "eslint": "~8.15.0",