Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angularskd": {
"angularsdk": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
Expand All @@ -30,6 +30,26 @@
"glob": "mdi.svg",
"input": "./node_modules/@mdi/angular-material",
"output": "./assets"
},
{
"glob": "sdk-config.json",
"input": "./",
"output": "./"
},
{
"glob": "bootstrap-shell.js",
"input": "./constellation/",
"output": "./"
},
{
"glob": "lib_asset.json",
"input": "./constellation/",
"output": "./"
},
{
"glob": "constellation-core.*.*",
"input": "./constellation/",
"output": "./prerequisite"
}
],
"styles": [
Expand Down Expand Up @@ -67,7 +87,8 @@
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"browserTarget": "angularsdk:build"
"browserTarget": "angularsdk:build",
"port": 3500
},
"configurations": {
"production": {
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
"ng": "ng",
"build": "ng build",
"prod-build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"copy-core": "shx cp constellation/constellation-core*.* dist/prerequisite",
"compress-angularsdk": "node compress-with-assets.mjs",
"copy-extra": "shx cp constellation/lib_asset.json dist/lib_asset.json",
"copy-index": "shx cp dist/index.html dist/simpleportal.html && shx cp dist/index.html dist/portal.html && shx cp dist/index.html dist/fullportal.html && shx cp dist/index.html dist/embedded.html && shx cp dist/index.html dist/mashup.html",
"make-mashup-dir": "cd ./dist && mkdir prerequisite",
"make-mashup-dir": "cd ./dist && mkdir -p prerequisite",
"build-angularsdk": "rimraf ./dist && npm run build && npm run copy-extra && npm run copy-index && npm run make-mashup-dir && npm run copy-core",
"prod-build-angularsdk": "rimraf ./dist && npm run prod-build && npm run copy-extra && npm run copy-index && npm run make-mashup-dir && npm run copy-core && npm run compress-angularsdk",
"start-angularsdk": "lite-server --baseDir='./dist'",
Expand Down