mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
ci: use real backend instead of fake backend for web reviews
Closes #75
This commit is contained in:
@@ -31,7 +31,7 @@ setup:
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- npm run build:web
|
||||
- npm run build
|
||||
artifacts:
|
||||
paths:
|
||||
- www
|
||||
@@ -137,6 +137,7 @@ staging:
|
||||
production_demo:
|
||||
stage: deploy
|
||||
script:
|
||||
- npm run build:prod
|
||||
- ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG.surge.sh/
|
||||
environment:
|
||||
name: production
|
||||
|
||||
17
angular.json
17
angular.json
@@ -76,11 +76,12 @@
|
||||
],
|
||||
"progress": false
|
||||
},
|
||||
"web": {
|
||||
"fileReplacements": [{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.web.ts"
|
||||
}
|
||||
"fake": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.fake.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
@@ -116,10 +117,10 @@
|
||||
},
|
||||
"ci": {
|
||||
"progress": false,
|
||||
"browserTarget": "app:build:web"
|
||||
"browserTarget": "app:build"
|
||||
},
|
||||
"web": {
|
||||
"browserTarget": "app:build:web"
|
||||
"fake": {
|
||||
"browserTarget": "app:build:fake"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"scripts": {
|
||||
"build": "ng build",
|
||||
"build:prod": "ng build --prod",
|
||||
"build:web": "ng build --configuration=web",
|
||||
"build:fake": "ng build --configuration=fake",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
|
||||
"check-configuration": "openstapps-configuration",
|
||||
"e2e": "ng e2e --no-webdriver-update",
|
||||
@@ -30,7 +30,7 @@
|
||||
"preversion": "npm run prepublishOnly",
|
||||
"push": "git push && git push origin \"v$npm_package_version\"",
|
||||
"start": "ng serve",
|
||||
"start:web": "ng serve --configuration=web",
|
||||
"start:fake": "ng serve --configuration=fake",
|
||||
"test": "ng test",
|
||||
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018, 2019 StApps
|
||||
* Copyright (C) 2018-2020 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018, 2019 StApps
|
||||
* Copyright (C) 2018-2020 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018, 2019 StApps
|
||||
* Copyright (C) 2018-2020 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
|
||||
Reference in New Issue
Block a user