fixing build commands. make sure that we can build a desktop flavor of the UI.
This commit is contained in:
parent
16209c91ee
commit
011cfa37e6
11
Makefile
11
Makefile
|
@ -55,13 +55,16 @@ dep-frontend:
|
||||||
|
|
||||||
.PHONY: build-frontend-sandbox
|
.PHONY: build-frontend-sandbox
|
||||||
build-frontend-sandbox: dep-frontend
|
build-frontend-sandbox: dep-frontend
|
||||||
cd frontend
|
cd frontend && yarn build -- -c sandbox
|
||||||
yarn run build -- --configuration sandbox --output-path=../dist
|
|
||||||
|
|
||||||
.PHONY: build-frontend-prod
|
.PHONY: build-frontend-prod
|
||||||
build-frontend-prod: dep-frontend
|
build-frontend-prod: dep-frontend
|
||||||
cd frontend
|
cd frontend && yarn build -- -c prod
|
||||||
yarn run build -- --configuration prod --output-path=../dist
|
|
||||||
|
.PHONY: build-frontend-desktop
|
||||||
|
build-frontend-desktop: dep-frontend
|
||||||
|
cd frontend && yarn build -- -c desktop
|
||||||
|
|
||||||
|
|
||||||
.PHONY: test-frontend
|
.PHONY: test-frontend
|
||||||
# reduce logging, disable angular-cli analytics for ci environment
|
# reduce logging, disable angular-cli analytics for ci environment
|
||||||
|
|
|
@ -126,6 +126,33 @@
|
||||||
"maximumError": "10kb"
|
"maximumError": "10kb"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"desktop": {
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.desktop.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": true,
|
||||||
|
"namedChunks": false,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": true,
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "2mb",
|
||||||
|
"maximumError": "10mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "6kb",
|
||||||
|
"maximumError": "10kb"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -143,6 +170,9 @@
|
||||||
},
|
},
|
||||||
"cloud_sandbox": {
|
"cloud_sandbox": {
|
||||||
"browserTarget": "fastenhealth:build:cloud_sandbox"
|
"browserTarget": "fastenhealth:build:cloud_sandbox"
|
||||||
|
},
|
||||||
|
"desktop": {
|
||||||
|
"browserTarget": "fastenhealth:build:desktop"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"serve": "ng serve",
|
"serve": "ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build --output-path=../dist",
|
||||||
"test": "ng test",
|
"test": "ng test",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"e2e": "ng e2e",
|
"e2e": "ng e2e",
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
export const environment = {
|
||||||
|
production: true,
|
||||||
|
environment_cloud: false,
|
||||||
|
environment_name: "desktop",
|
||||||
|
|
||||||
|
lighthouse_api_endpoint_base: 'https://lighthouse.fastenhealth.com/v1',
|
||||||
|
|
||||||
|
|
||||||
|
//used to specify the api server that we're going to use (can be relative or absolute). Must not have trailing slash
|
||||||
|
fasten_api_endpoint_base: '/api',
|
||||||
|
};
|
Loading…
Reference in New Issue