Skip to content

Commit f0471dc

Browse files
authored
build: update to angular v15 (#131)
* build: update to angular v14 - npx browserslist@latest --update-db - npx ng update @angular/core@14 @angular/cli@14 @angular-eslint/schematics@14 @nguniversal/express-engine@14 @nguniversal/builders@14 --force * build: update to angular v15 - npm i -D ajv@latest core-js@latest - npx ng update @angular/core@15 @angular/cli@15 @angular-eslint/schematics@15 @nguniversal/express-engine@15 @nguniversal/builders@15 --force * ci: disable Angular CLI Analytics * build: bump minimal node v14.20.0 * ci: remove sudo usage - sudo usage prevented ENVIRONMENT variables being passed to scripts
1 parent 2aed05b commit f0471dc

File tree

13 files changed

+11041
-9874
lines changed

13 files changed

+11041
-9874
lines changed

.circleci/config.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
version: 2
1+
version: 2.1
22

33
docker_defaults: &docker_defaults
44
docker:
5-
- image: circleci/node:14.18.2-browsers
5+
- image: cimg/node:14.20.0-browsers
6+
environment:
7+
NG_CLI_ANALYTICS: false
8+
69
working_directory: ~/project/repo
710

811
attach_workspace: &attach_workspace
@@ -49,6 +52,8 @@ workflows:
4952
# - end_to_end:
5053
# requires:
5154
# - build
55+
orbs:
56+
browser-tools: circleci/[email protected]
5257
jobs:
5358
build:
5459
<<: *docker_defaults
@@ -57,36 +62,35 @@ jobs:
5762
<<: *docker_defaults
5863
steps:
5964
- *attach_workspace
65+
- browser-tools/install-chrome
6066
- run:
6167
name: Running unit tests
6268
command: |
63-
sudo npm run lint
64-
sudo npm test
69+
npm run lint
70+
npm test
71+
environment:
72+
CHROME_BIN: /usr/bin/google-chrome
6573
# To be added back in later
6674
# sudo npm run coveralls
6775
build_ssr:
6876
<<: *docker_defaults
6977
steps:
7078
- *attach_workspace
7179
- run:
72-
environment:
73-
NG_CLI_ANALYTICS: "false"
7480
name: Building for Angular Universal
7581
command: |
76-
sudo NG_CLI_ANALYTICS="false" npm rebuild
77-
sudo npm run build:ssr
82+
npm rebuild
83+
npm run build:ssr
7884
bundle_size:
7985
<<: *docker_defaults
8086
steps:
8187
- *attach_workspace
8288
- run:
83-
environment:
84-
NG_CLI_ANALYTICS: "false"
8589
name: Checking bundle size
8690
command: |
87-
sudo NG_CLI_ANALYTICS="false" npm rebuild
88-
sudo npm run build:pkg
89-
sudo npm run bundlesize
91+
npm rebuild
92+
npm run build:pkg
93+
npm run bundlesize
9094
# end_to_end:
9195
# <<: *docker_defaults
9296
# steps:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.18.2
1+
v14.20.0

angular.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,15 @@
201201
}
202202
}
203203
},
204-
"defaultProject": "ngx-skeleton-loader-demo"
204+
"schematics": {
205+
"@angular-eslint/schematics:application": {
206+
"setParserOptionsProject": true
207+
},
208+
"@angular-eslint/schematics:library": {
209+
"setParserOptionsProject": true
210+
}
211+
},
212+
"cli": {
213+
"analytics": false
214+
}
205215
}

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ module.exports = function (config) {
3030
colors: true,
3131
logLevel: config.LOG_INFO,
3232
autoWatch: true,
33-
browsers: ['Chrome'],
33+
browsers: [process.env.CI ? 'ChromeHeadlessNoSandbox': 'Chrome'],
34+
customLaunchers: {
35+
ChromeHeadlessNoSandbox: {
36+
base: 'ChromeHeadless',
37+
flags: ['--no-sandbox']
38+
}
39+
},
3440
singleRun: false,
3541
restartOnFileChange: true,
3642
});

0 commit comments

Comments
 (0)