File tree Expand file tree Collapse file tree 4 files changed +62
-1
lines changed Expand file tree Collapse file tree 4 files changed +62
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ RUN API_URL=${API_URL} \
2626 SCOPES=${SCOPES} \
2727 AZURE_APP_CONFIGURATION_CONNECTION_STRING=${AZURE_APP_CONFIGURATION_CONNECTION_STRING}
2828
29- RUN npm run build
29+ RUN npm run build-v2
3030
3131FROM nginx:1.21 AS production
3232
Original file line number Diff line number Diff line change 7878 "maximumError" : " 10kb"
7979 }
8080 ]
81+ },
82+ "production-v2" : {
83+ "fileReplacements" : [
84+ {
85+ "replace" : " src/environments/environment.ts" ,
86+ "with" : " src/environments/environment.prod_v2.ts"
87+ }
88+ ],
89+ "optimization" : true ,
90+ "outputHashing" : " all" ,
91+ "sourceMap" : false ,
92+ "extractCss" : true ,
93+ "namedChunks" : false ,
94+ "extractLicenses" : true ,
95+ "vendorChunk" : false ,
96+ "buildOptimizer" : true ,
97+ "budgets" : [
98+ {
99+ "type" : " initial" ,
100+ "maximumWarning" : " 2mb" ,
101+ "maximumError" : " 5mb"
102+ },
103+ {
104+ "type" : " anyComponentStyle" ,
105+ "maximumWarning" : " 6kb" ,
106+ "maximumError" : " 10kb"
107+ }
108+ ]
81109 }
82110 }
83111 },
Original file line number Diff line number Diff line change 66 "ng" : " ng" ,
77 "start" : " ng serve" ,
88 "build" : " ng build --prod" ,
9+ "build-v2" : " ng build --configuration=production-v2" ,
910 "test" : " ng test --browsers ChromeHeadless" ,
1011 "test-headless" : " ng test --browsers ChromeHeadless" ,
1112 "ci-test" : " ng test --no-watch --no-progress --browsers ChromeHeadless" ,
Original file line number Diff line number Diff line change 1+
2+ export const environment = {
3+ production : false , //this triggers build angular using google auth only not azure
4+ timeTrackerApiUrl : process . env [ "API_URL" ] ,
5+ stackexchangeApiUrl : 'https://api.stackexchange.com' ,
6+ } ;
7+
8+ export const AUTHORITY = process . env [ "AUTHORITY" ] ; //must be removed once tt-live is down
9+ export const CLIENT_ID = process . env [ "CLIENT_ID" ] ;
10+ export const CLIENT_URL = process . env [ "CLIENT_URL" ] ;
11+ export const SCOPES = process . env [ "SCOPES" ] . split ( "," ) ;
12+ export const ITEMS_PER_PAGE = 5 ;
13+ export const STACK_EXCHANGE_ID = process . env [ "STACK_EXCHANGE_ID" ] ;
14+ export const STACK_EXCHANGE_ACCESS_TOKEN = process . env [ "STACK_EXCHANGE_ACCESS_TOKEN" ] ;
15+ export const AZURE_APP_CONFIGURATION_CONNECTION_STRING = process . env [ "AZURE_APP_CONFIGURATION_CONNECTION_STRING" ] ; //must be removed once tt-live is down
16+ export const DATE_FORMAT = 'yyyy-MM-dd' ;
17+ export const DATE_FORMAT_YEAR = 'YYYY-MM-DD' ;
18+ export const GROUPS = {
19+ ADMIN : 'time-tracker-admin' ,
20+ TESTER : 'time-tracker-tester' ,
21+ } ;
22+
23+ export const ROLES = {
24+ admin : {
25+ name : 'admin' ,
26+ value : 'time-tracker-admin' ,
27+ } ,
28+ tester : {
29+ name : 'test' ,
30+ value : 'time-tracker-tester' ,
31+ } ,
32+ } ;
You can’t perform that action at this time.
0 commit comments