Skip to content

Commit

Permalink
feat: setup publishing of share and marketplace packages (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored and MattDHill committed Oct 17, 2022
1 parent de6ae42 commit 729eb04
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 28 deletions.
10 changes: 2 additions & 8 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,7 @@
},
"configurations": {
"production": {
"tsConfig": "projects/marketplace/tsconfig.prod.json"
},
"development": {
"tsConfig": "projects/marketplace/tsconfig.json"
"tsConfig": "tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
Expand All @@ -415,10 +412,7 @@
},
"configurations": {
"production": {
"tsConfig": "projects/shared/tsconfig.prod.json"
},
"development": {
"tsConfig": "projects/shared/tsconfig.json"
"tsConfig": "tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
Expand Down
4 changes: 4 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"build:setup": "ng run setup-wizard:build",
"build:ui": "ng run ui:build",
"build:all": "npm run build:deps && npm run build:dui && npm run build:setup && npm run build:ui",
"build:shared": "ng build shared",
"build:marketplace": "npm run build:shared && ng build marketplace",
"publish:shared": "npm run build:shared && npm publish ./dist/shared",
"publish:marketplace": "npm run build:marketplace && npm publish ./dist/marketplace",
"start:dui": "npm run-script build-config && ionic serve --project diagnostic-ui --host 0.0.0.0",
"start:setup": "npm run-script build-config && ionic serve --project setup-wizard --host 0.0.0.0",
"start:ui": "npm run-script build-config && ionic serve --project ui --ip --host 0.0.0.0",
Expand Down
1 change: 1 addition & 0 deletions frontend/projects/marketplace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"peerDependencies": {
"@angular/common": "^13.2.0",
"@angular/core": "^13.2.0",
"@ionic/angular": "^6.0.3",
"@start9labs/shared": "^0.0.1",
"fuse.js": "^6.4.6"
},
Expand Down
10 changes: 0 additions & 10 deletions frontend/projects/marketplace/tsconfig.prod.json

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/projects/shared/tsconfig.prod.json

This file was deleted.

19 changes: 19 additions & 0 deletions frontend/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"outDir": "../../out-tsc/lib",
"declaration": true,
"declarationMap": false,
"inlineSources": true,
"types": [],
"paths": {
"@start9labs/marketplace": ["dist/marketplace"],
"@start9labs/shared": ["dist/shared"]
}
},
"angularCompilerOptions": {
"compilationMode": "partial"
}
}

0 comments on commit 729eb04

Please sign in to comment.