Skip to content

Commit

Permalink
refactor: update angular.json and package.json for build
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHalat committed Sep 11, 2024
1 parent 0d18ec3 commit 042c635
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
17 changes: 16 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"sourceRoot": "projects/astral-accessibility/src",
"prefix": "lib",
"architect": {
"build": {
"e2e": {
"builder": "ngx-build-plus:browser",
"options": {
"outputPath": "dist/astral-accessibility-angular-output",
Expand Down Expand Up @@ -48,6 +48,21 @@
},
"defaultConfiguration": "production"
},
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/astral-accessibility/ng-package.json"
},
"configurations": {
"development": {
"tsConfig": "projects/astral-accessibility/tsconfig.app.json"
},
"production": {
"tsConfig": "projects/astral-accessibility/tsconfig.app.json"
}
},
"defaultConfiguration": "development"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"name": "astral-accessibility",
"version": "0.1.0",
"author": "verto-health",
"license": "MIT",
"main": "dist/astral-accessibility",
"scripts": {
"ng": "ng",
"start": "ng serve astral-accessibility",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"cypress": "cypress open",
"build:lib": "ng build --single-bundle --output-hashing=none",
"build:lib": "ng e2e --single-bundle --output-hashing=none",
"build:lib:dev": "ng build --watch --configuration=development --single-bundle",
"start:demo-server": "lite-server -c projects/demo/lite-server-config.json",
"start:demo": "npm-run-all -p build:lib:dev start:demo-server",
"start:test-server": "npm-run-all build:lib start:demo-server"
},
"private": true,
"dependencies": {
"@angular/animations": "^14.1.0",
"@angular/common": "^14.1.0",
Expand Down

0 comments on commit 042c635

Please sign in to comment.