Remove obsolete files
This commit is contained in:
parent
73cfe215f5
commit
6db8a00cd7
2 changed files with 0 additions and 135 deletions
|
@ -1,57 +0,0 @@
|
|||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"project": {
|
||||
"name": "convertorizr"
|
||||
},
|
||||
"apps": [
|
||||
{
|
||||
"root": "src",
|
||||
"outDir": "dist",
|
||||
"assets": [
|
||||
"assets",
|
||||
"favicon.ico"
|
||||
],
|
||||
"index": "index.html",
|
||||
"main": "main.ts",
|
||||
"polyfills": "polyfills.ts",
|
||||
"test": "test.ts",
|
||||
"tsconfig": "tsconfig.app.json",
|
||||
"testTsconfig": "tsconfig.spec.json",
|
||||
"prefix": "app",
|
||||
"styles": [
|
||||
"styles.scss"
|
||||
],
|
||||
"scripts": [],
|
||||
"environmentSource": "environments/environment.ts",
|
||||
"environments": {
|
||||
"dev": "environments/environment.ts",
|
||||
"prod": "environments/environment.prod.ts"
|
||||
}
|
||||
}
|
||||
],
|
||||
"e2e": {
|
||||
"protractor": {
|
||||
"config": "./protractor.conf.js"
|
||||
}
|
||||
},
|
||||
"lint": [
|
||||
{
|
||||
"project": "src/tsconfig.app.json"
|
||||
},
|
||||
{
|
||||
"project": "src/tsconfig.spec.json"
|
||||
},
|
||||
{
|
||||
"project": "e2e/tsconfig.e2e.json"
|
||||
}
|
||||
],
|
||||
"test": {
|
||||
"karma": {
|
||||
"config": "./karma.conf.js"
|
||||
}
|
||||
},
|
||||
"defaults": {
|
||||
"styleExt": "scss",
|
||||
"component": {}
|
||||
}
|
||||
}
|
|
@ -1,78 +0,0 @@
|
|||
stages:
|
||||
- build
|
||||
- cleanup_build
|
||||
- deploy
|
||||
- cleanup
|
||||
|
||||
#build_job:
|
||||
# stage: build
|
||||
# script:
|
||||
# - yarn install
|
||||
# - yarn run build
|
||||
# - yarn run lint
|
||||
# - yarn run test
|
||||
# - yarn run e2e
|
||||
# tags:
|
||||
# - javascript
|
||||
# except:
|
||||
# - tags
|
||||
# - master
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - dist
|
||||
# expire_in: 30 min
|
||||
|
||||
build_job_production:
|
||||
stage: build
|
||||
script:
|
||||
- yarn install
|
||||
- yarn run build-prod
|
||||
- yarn run lint
|
||||
# - yarn run test
|
||||
# - yarn run e2e
|
||||
tags:
|
||||
- javascript
|
||||
# only:
|
||||
# - master
|
||||
artifacts:
|
||||
paths:
|
||||
- dist
|
||||
expire_in: 30 min
|
||||
|
||||
cleanup_build_job:
|
||||
stage: cleanup_build
|
||||
script:
|
||||
- rm -rf node_modules
|
||||
- rm -rf dist
|
||||
when: on_failure
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
environment: staging
|
||||
except:
|
||||
- tags
|
||||
- master
|
||||
script:
|
||||
- mv dist public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
dependencies:
|
||||
- build_job_production
|
||||
|
||||
production:
|
||||
stage: deploy
|
||||
environment: production
|
||||
only:
|
||||
- master
|
||||
script:
|
||||
- if [[ -z "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then echo "WWW_DEPLOY_ROOT_PRODUCTION is not set" ; exit 1 ; fi
|
||||
- if [[ ! -d "${WWW_DEPLOY_ROOT_PRODUCTION}" ]] ; then mkdir -p "${WWW_DEPLOY_ROOT_PRODUCTION}" || die "Failed to create target directory for deployment!" ; fi
|
||||
- rm -rf "${WWW_DEPLOY_ROOT_PRODUCTION}"/* || die "Failed to clean old deployment"
|
||||
- cp -r dist/* "${WWW_DEPLOY_ROOT_PRODUCTION}"
|
||||
|
||||
cleanup_job:
|
||||
stage: cleanup
|
||||
script:
|
||||
- rm -rf node_modules
|
||||
when: always
|
Loading…
Reference in a new issue