diff --git a/.angular-cli.json b/.angular-cli.json deleted file mode 100644 index 4ba15b0..0000000 --- a/.angular-cli.json +++ /dev/null @@ -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": {} - } -} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 2391918..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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