Skip to content

Commit 7bf905f

Browse files
authored
chore(*): Upgrade dev dependencies, fix build & tests (#33)
- Upgrade dev dependencies to the latest versions, except - Zone.js (seems to not work properly within unit tests, in particular when using fakeAsync with tick) - Angular (the compiler seems to not produce the correct files in 4.2 but does in 4.1) - Add missing dev dependency - Upgrade NodeJS from v7 to v8 - Move and fix Jest configuration - Fix TypeScript configuration - Fix Rollup configuration - Add npm package lockfile - Update Travis CI configuration
1 parent c1da89b commit 7bf905f

File tree

14 files changed

+14264
-54
lines changed

14 files changed

+14264
-54
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.9.0
1+
8.1.4

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist: trusty # Beta build environment (newer OS, at least it seems)
2+
sudo: false # Container instead of VM (thus, a lot faster)
23
language: node_js
34
cache:
45
directories:
@@ -19,9 +20,7 @@ before_install:
1920
fi
2021
- npm install -g npm
2122
install:
22-
- npm prune
2323
- npm install
24-
- npm update
2524

2625
script:
2726
- npm run lint
@@ -37,8 +36,8 @@ before_deploy:
3736
- npm run ci:automatic-release
3837
- npm run ci:post-automatic-release
3938
- npm install -g irish-pub@0.2.x pkg-ok@1.1.x
40-
- cd dist
41-
- pkg-ok module es2015 typings
39+
- cd dist && pkg-ok module es2015 typings && cd ..
40+
- irish-pub
4241
deploy:
4342
provider: npm
4443
email: dominique.m.mueller@gmail.com
@@ -47,5 +46,3 @@ deploy:
4746
on:
4847
branch: master
4948
repo: dominique-mueller/angular-notifier
50-
after_deploy:
51-
- irish-pub

jest.config.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"collectCoverage": true,
3+
"coverageDirectory": "<rootDir>/coverage",
4+
"globals": {
5+
"ts-jest": {
6+
"tsConfigFile": "tools/tsc/tsconfig.spec.json"
7+
},
8+
"__TRANSFORM_HTML__": true
9+
},
10+
"transform": {
11+
"^.+\\.(ts|js|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js"
12+
},
13+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|js)$",
14+
"moduleFileExtensions": [
15+
"ts",
16+
"js",
17+
"html"
18+
],
19+
"mapCoverage": true,
20+
"moduleNameMapper": {
21+
"(.*)": "<rootDir>/src/$1"
22+
},
23+
"transformIgnorePatterns": [
24+
"node_modules/(?!@ngrx)"
25+
],
26+
"setupTestFrameworkScriptFile": "<rootDir>/tools/jest/jest.setup.ts",
27+
"verbose": true
28+
}

0 commit comments

Comments
 (0)