Skip to content

Commit 392e5d3

Browse files
committed
Add stko build
1 parent 878bc44 commit 392e5d3

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
lines changed

node-browser/angular.json

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
},
4242
"configurations": {
4343
"production": {
44-
"buildOptimizer": true,
45-
"optimization": true,
44+
"buildOptimizer": false,
45+
"optimization": false,
46+
"vendorChunk": true,
47+
"extractLicenses": false,
48+
"sourceMap": true,
49+
"namedChunks": true,
4650
"fileReplacements": [
4751
{
4852
"replace": "src/environments/environment.ts",
@@ -63,6 +67,21 @@
6367
],
6468
"outputHashing": "all"
6569
},
70+
"stko": {
71+
"buildOptimizer": false,
72+
"optimization": false,
73+
"vendorChunk": true,
74+
"extractLicenses": false,
75+
"sourceMap": true,
76+
"namedChunks": true,
77+
"outputHashing": "all",
78+
"fileReplacements": [
79+
{
80+
"replace": "src/environments/environment.ts",
81+
"with": "src/environments/environment.prod.ts"
82+
}
83+
]
84+
},
6685
"stage": {
6786
"buildOptimizer": false,
6887
"optimization": false,
@@ -105,26 +124,18 @@
105124
},
106125
"stage": {
107126
"browserTarget": "node-browser:build:stage"
127+
},
128+
"stko": {
129+
"browserTarget": "node-browser:build:stko"
108130
}
109131
},
110-
"defaultConfiguration": "production"
132+
"defaultConfiguration": "stko"
111133
},
112134
"extract-i18n": {
113135
"builder": "@angular-devkit/build-angular:extract-i18n",
114136
"options": {
115137
"browserTarget": "node-browser:build"
116138
}
117-
},
118-
"test": {
119-
"builder": "@angular-devkit/build-angular:karma",
120-
"options": {
121-
"polyfills": "src/polyfills.ts",
122-
"tsConfig": "tsconfig.spec.json",
123-
"inlineStyleLanguage": "scss",
124-
"assets": ["src/favicon.ico", "src/assets"],
125-
"styles": ["src/styles.scss"],
126-
"scripts": []
127-
}
128139
}
129140
}
130141
}

node-browser/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ services:
33
build: '.'
44
volumes:
55
- ./dist/:/app/dist/
6-
entrypoint: ["ng","build","--configuration=production"]
6+
entrypoint: ["ng","build","--configuration=stko"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const environment = {
22
baseAddress: 'https://stko-kwg.geog.ucsb.edu/',
3-
graphEndpoint: 'https://stko-kwg.geog.ucsb.edu/sparql'
3+
graphEndpoint: 'https://stko-kwg.geog.ucsb.edu/sparql',
44
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const environment = {
22
baseAddress: 'https://staging.knowwheregraph.org/',
33
graphEndpoint: 'https://staging.knowwheregraph.org/sparql',
4-
production: false,
54
};

node-browser/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>NodeBrowser</title>
5+
<title>Node Browser</title>
66
<base href="/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />

0 commit comments

Comments
 (0)