Skip to content

Commit 06a9fe6

Browse files
spike-rabbitfh1ch
authored andcommitted
build: compile examples and lib in separate directories
1 parent 350a974 commit 06a9fe6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- name: Archive build
3535
uses: actions/upload-artifact@v4
3636
with:
37-
name: build
38-
path: dist/ngx-datatable
37+
name: dist
38+
path: dist
3939

4040
- name: Test
4141
run: npm run ci
@@ -81,8 +81,8 @@ jobs:
8181
- name: Download build
8282
uses: actions/download-artifact@v4
8383
with:
84-
name: build
85-
path: dist/ngx-datatable
84+
name: dist
85+
path: dist
8686

8787
- name: Install
8888
run: npm ci

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"builder": "@angular-devkit/build-angular:application",
2323
"options": {
2424
"outputPath": {
25-
"base": "dist/ngx-datatable",
25+
"base": "dist/ngx-datatable-examples",
2626
"browser": ""
2727
},
2828
"index": "src/index.html",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"start:prod": "http-server dist/ngx-datatable -s -p 4200 -a 127.0.0.1",
7+
"start:prod": "http-server dist/ngx-datatable-examples -s -p 4200 -a 127.0.0.1",
88
"build": "ng build",
99
"format": "prettier --write .",
1010
"format:check": "prettier --check .",
@@ -22,7 +22,7 @@
2222
"e2e:update": "yarn e2e --update-snapshots",
2323
"build-docs": "cross-env NODE_ENV=production ng build --configuration production --base-href=\"/ngx-datatable/\"",
2424
"predeploy-docs": "npm run build-docs",
25-
"deploy-docs": "angular-cli-ghpages --dir ./dist/ngx-datatable",
25+
"deploy-docs": "angular-cli-ghpages --dir ./dist/ngx-datatable-examples",
2626
"package": "run-s build:lib:prod copy-files build:css",
2727
"prepublish:lib": "run-s ci package",
2828
"publish:lib": "npm publish ./dist/ngx-datatable",

0 commit comments

Comments
 (0)