Skip to content

Commit

Permalink
chore: upgrade to angular v9
Browse files Browse the repository at this point in the history
chore: upgrade to angular v9
  • Loading branch information
manekinekko committed Mar 2, 2020
2 parents 05a8ddf + 35b6cdc commit b57942b
Show file tree
Hide file tree
Showing 126 changed files with 718,344 additions and 321,766 deletions.
180 changes: 87 additions & 93 deletions .circleci/config.yml
@@ -1,119 +1,113 @@
version: 2
jobs:
"ci/build-app":
docker:
- image: circleci/node:11.13.0

working_directory: ~/repo
var_1: &cache_key v1-dependencies-{{ checksum "package-lock.json" }}
var_2: &run_node
docker:
- image: circleci/node:12.13.0
var_3: &run_cypress
docker:
- image: cypress/base:12.13.0

jobs:
install:
<<: *run_node
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Install JUnit coverage reporter
command: npm i -D jest-junit

key: *cache_key
- run: npm ci
- save_cache:
key: *cache_key
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm run build.library.all && npm run app.build.prod

"ci/build-all librarys":
docker:
- image: circleci/node:11.13.0

working_directory: ~/repo

lint:
<<: *run_node
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Install JUnit coverage reporter
command: npm i -D jest-junit

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run:
command: npm run build.library.all
key: *cache_key
- run: npm run lint ||
(echo "Lint errors detected. Please run ''npm lint --fix''" ; exit 1)

"ci/test":
docker:
- image: cypress/base:11.13.0
test:
<<: *run_node
steps:
- checkout
- restore_cache:
keys:
- v2-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-

- run: npm install
- run:
name: Install JUnit coverage reporter
command: npm i -D jest-junit

- save_cache:
paths:
- ~/.cache
key: v2-dependencies-{{ checksum "package.json" }}

key: *cache_key
- attach_workspace:
at: dist
- run: npm run test.ci -- --reporters=default --reporters=jest-junit --maxWorkers=2
- store_test_results:
path: ./junit.xml
test-e2e:
<<: *run_cypress
steps:
- checkout
- run: npm ci
- restore_cache:
key: *cache_key
- attach_workspace:
at: dist
- run: npm run e2e

"ci/lint":
docker:
- image: circleci/node:11.13.0
build-libs:
<<: *run_node
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- save_cache:
key: *cache_key
- run:
command: npm run build.all.libraries
- persist_to_workspace:
root: dist
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm run lint ||
(echo "Lint errors detected. Please run ''npm lint --fix''" ; exit 1)
- ./*
build-app:
<<: *run_node
steps:
- checkout
- restore_cache:
key: *cache_key
- attach_workspace:
at: dist
- run:
command: npm run app.build.prod

workflows:
version: 2
# lint_test_build:
# jobs:
# - lint
# - test:
# requires:
# - lint
# - "build-app":
# requires:
# - test
"ci/lint":
jobs:
- "ci/lint"
"ci/test":
jobs:
- "ci/test"
"ci/build-app":
install-lint-test-build:
jobs:
- "ci/build-app"
- install:
filters:
tags:
only: /.*/
- lint:
requires:
- install
- build-libs:
requires:
- lint
filters:
tags:
only: /.*/
- test:
requires:
- build-libs
filters:
tags:
only: /.*/
- test-e2e:
requires:
- build-libs
filters:
tags:
only: /.*/
- build-app:
requires:
- install
- test
- test-e2e
- build-libs
filters:
tags:
only: /.*/
6 changes: 6 additions & 0 deletions .editorconfig
Expand Up @@ -8,6 +8,12 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,jsx,ts,tsx,vue}]
quote_type = single

[*.{html}]
quote_type = double

[*.md]
max_line_length = off
trim_trailing_whitespace = false
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -35,6 +35,7 @@ testem.log
/typings
tls.*
.firebase
junit.xml

# System Files
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v10.15.3
12.13.0
3 changes: 2 additions & 1 deletion .vscode/settings.json
Expand Up @@ -27,5 +27,6 @@
"**/bazel-out": true,
"**/dist": true
},
"peacock.color": "#ff2c70"
"peacock.color": "#ff2c70",
"prettier.singleQuote": true
}

0 comments on commit b57942b

Please sign in to comment.