Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.

Commit 4b1bf36

Browse files
authored
Convert project from Yarn to npm (#5)
* Convert project from Yarn to npm * more * fix more * more * lint * update npm in engines * fix? * tests * better * cov * yay * IDK
1 parent 07e877f commit 4b1bf36

15 files changed

+8597
-6118
lines changed

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=false

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.0.0

Diff for: .travis.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ language: node_js
22
node_js: ["6"]
33

44
install:
5-
- yarn install
5+
- npm install
66

77
script:
8-
- yarn lint
9-
- yarn build
10-
- yarn test:build
11-
- DEBUG=true yarn test:coverage
8+
- npm run lint
9+
- npm run build
10+
- npm run test:build
1211

1312
before_deploy:
1413
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc

Diff for: jest.config.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
module.exports = {
22
"verbose": true,
3-
"transform": { ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" },
4-
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
5-
"moduleFileExtensions": [ "ts", "tsx", "js" ],
3+
"rootDir": ".",
4+
"preset": "ts-jest",
65
"coverageDirectory": ".coverage",
76
"testPathIgnorePatterns": [
87
"/node_modules/",
98
"/build/",
109
"d.ts"
11-
]
10+
],
11+
"coverageThreshold": {
12+
"global": {
13+
"lines": 5
14+
},
15+
}
1216
}

0 commit comments

Comments
 (0)