Compare commits

...

2 Commits

Author SHA1 Message Date
Blair Vanderlugt 4163acfd84 adding dev configs 2021-08-13 14:51:30 -07:00
Blair Vanderlugt 85bd92a2fc monorepo builds 2021-08-13 14:42:59 -07:00
5 changed files with 34 additions and 19 deletions

1
.gitignore vendored
View File

@ -49,4 +49,3 @@ Thumbs.db
# Configuration Files # Configuration Files
.env .env
/src/environments/environment.ts

View File

@ -13,8 +13,9 @@ RUN npm install
COPY . . COPY . .
ARG FRONTEND_ENV=prod
# running build script # running build script
RUN npm run build:dev RUN npm run build:${FRONTEND_ENV}
### STAGE 2: Setup ### ### STAGE 2: Setup ###
# defining nginx image version # defining nginx image version

View File

@ -24,11 +24,7 @@
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": true, "aot": true,
"assets": [ "assets": ["src/favicon.ico", "src/assets", "src/manifest.webmanifest"],
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
"styles": [ "styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss", "src/styles.scss",
@ -78,6 +74,14 @@
"with": "src/environments/environment.dev.ts" "with": "src/environments/environment.dev.ts"
} }
] ]
},
"staging": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.staging.ts"
}
]
} }
} }
}, },
@ -109,11 +113,7 @@
"tsConfig": "tsconfig.spec.json", "tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js", "karmaConfig": "karma.conf.js",
"codeCoverage": true, "codeCoverage": true,
"assets": [ "assets": ["src/favicon.ico", "src/assets", "src/manifest.webmanifest"],
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
"styles": [ "styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss" "src/styles.scss"
@ -130,9 +130,7 @@
"e2e/tsconfig.json", "e2e/tsconfig.json",
"tsconfig.worker.json" "tsconfig.worker.json"
], ],
"exclude": [ "exclude": ["**/node_modules/**"]
"**/node_modules/**"
]
} }
}, },
"e2e": { "e2e": {

View File

@ -6,11 +6,11 @@ export const environment = {
logLevel: NgxLoggerLevel.DEBUG, logLevel: NgxLoggerLevel.DEBUG,
serverLogLevel: NgxLoggerLevel.OFF, serverLogLevel: NgxLoggerLevel.OFF,
loggingUrl: '', loggingUrl: '',
cicMetaUrl: 'https://meta-auth.dev.grassrootseconomics.net:443', cicMetaUrl: 'http://localhost:63380',
publicKeysUrl: 'https://dev.grassrootseconomics.net/.well-known/publickeys/', publicKeysUrl: 'https://dev.grassrootseconomics.net/.well-known/publickeys/',
cicCacheUrl: 'https://cache.dev.grassrootseconomics.net', cicCacheUrl: 'http://localhost:63313',
web3Provider: 'wss://bloxberg-ws.dev.grassrootseconomics.net', web3Provider: 'http://localhost:8545',
cicUssdUrl: 'https://user.dev.grassrootseconomics.net', cicUssdUrl: 'http://localhost:63415',
registryAddress: '0xea6225212005e86a4490018ded4bf37f3e772161', registryAddress: '0xea6225212005e86a4490018ded4bf37f3e772161',
trustedDeclaratorAddress: '0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C', trustedDeclaratorAddress: '0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C',
dashboardUrl: 'https://dashboard.sarafu.network/', dashboardUrl: 'https://dashboard.sarafu.network/',

View File

@ -0,0 +1,17 @@
import { NgxLoggerLevel } from 'ngx-logger';
export const environment = {
production: false,
bloxbergChainId: 8996,
logLevel: NgxLoggerLevel.DEBUG,
serverLogLevel: NgxLoggerLevel.OFF,
loggingUrl: '',
cicMetaUrl: 'https://meta.staging.grassrootseconomics.net',
publicKeysUrl: 'https://dev.grassrootseconomics.net/.well-known/publickeys/',
cicCacheUrl: 'https://cache.staging.grassrootseconomics.net',
web3Provider: 'wss://bloxberg.staging.grassrootseconomics.net',
cicUssdUrl: 'https://user.staging.grassrootseconomics.net',
registryAddress: '0xea6225212005e86a4490018ded4bf37f3e772161',
trustedDeclaratorAddress: '0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C',
dashboardUrl: 'https://dashboard.sarafu.network/',
};