Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update to angular v15 #131

Merged
merged 5 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
version: 2
version: 2.1

docker_defaults: &docker_defaults
docker:
- image: circleci/node:14.18.2-browsers
- image: cimg/node:14.20.0-browsers
environment:
NG_CLI_ANALYTICS: false

working_directory: ~/project/repo

attach_workspace: &attach_workspace
Expand Down Expand Up @@ -49,6 +52,8 @@ workflows:
# - end_to_end:
# requires:
# - build
orbs:
browser-tools: circleci/browser-tools@1.4.0
jobs:
build:
<<: *docker_defaults
Expand All @@ -57,36 +62,35 @@ jobs:
<<: *docker_defaults
steps:
- *attach_workspace
- browser-tools/install-chrome
- run:
name: Running unit tests
command: |
sudo npm run lint
sudo npm test
npm run lint
npm test
environment:
CHROME_BIN: /usr/bin/google-chrome
# To be added back in later
# sudo npm run coveralls
build_ssr:
<<: *docker_defaults
steps:
- *attach_workspace
- run:
environment:
NG_CLI_ANALYTICS: "false"
name: Building for Angular Universal
command: |
sudo NG_CLI_ANALYTICS="false" npm rebuild
sudo npm run build:ssr
npm rebuild
npm run build:ssr
bundle_size:
<<: *docker_defaults
steps:
- *attach_workspace
- run:
environment:
NG_CLI_ANALYTICS: "false"
name: Checking bundle size
command: |
sudo NG_CLI_ANALYTICS="false" npm rebuild
sudo npm run build:pkg
sudo npm run bundlesize
npm rebuild
npm run build:pkg
npm run bundlesize
# end_to_end:
# <<: *docker_defaults
# steps:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.18.2
v14.20.0
12 changes: 11 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,15 @@
}
}
},
"defaultProject": "ngx-skeleton-loader-demo"
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
},
"cli": {
"analytics": false
}
}
8 changes: 7 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
browsers: [process.env.CI ? 'ChromeHeadlessNoSandbox': 'Chrome'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false,
restartOnFileChange: true,
});
Expand Down
Loading