Skip to content

Commit e0d8689

Browse files
committed
add travis.yml, generate yarn.lock from existed node_modules
1 parent af333f6 commit e0d8689

File tree

3 files changed

+4107
-0
lines changed

3 files changed

+4107
-0
lines changed

.travis.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: node_js
2+
node_js:
3+
- "10.16.0"
4+
before_install:
5+
# install yarn
6+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.17.3
7+
- export PATH="$HOME/.yarn/bin:$PATH"
8+
install:
9+
- yarn install
10+
jobs:
11+
include:
12+
- stage: "Tests"
13+
name: "Unit Tests with coverage"
14+
script: yarn coverage
15+
- stage: "Compile"
16+
script: yarn build
17+
stages:
18+
- compile
19+
- test

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "./dist/index.js",
66
"scripts": {
77
"test": "jest --detectOpenHandles --verbose",
8+
"coverage": "npm test -- --coverage",
89
"clean": "rm -rf ./dist",
910
"prebuild": "npm run clean",
1011
"build": "tsc",

0 commit comments

Comments
 (0)