Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 362ac38

Browse files
committed
Set up CI
1 parent 5b56690 commit 362ac38

File tree

14 files changed

+63
-9
lines changed

14 files changed

+63
-9
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": [
33
["env", {
44
"targets": {
5-
"node": "current"
5+
"node": "6"
66
}
77
}]
88
],

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
3+
node_js:
4+
- 6
5+
- 8
6+
7+
before_install:
8+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.28.4
9+
- export PATH="$HOME/.yarn/bin:$PATH"
10+
11+
script:
12+
- yarn ci
13+
14+
notifications:
15+
email: false
16+
17+
cache:
18+
yarn: true
19+
directories:
20+
- ".eslintcache"
21+
- "node_modules"

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"author": "Greg Bergé <berge.greg@gmail.com>",
55
"scripts": {
66
"build": "babel-node scripts/build.js",
7-
"dev": "yarn run build --silent && babel-node scripts/watch.js"
7+
"ci": "yarn build && yarn lint && yarn test",
8+
"dev": "yarn build --silent && babel-node scripts/watch.js",
9+
"format": "prettier --write --no-semi --single-quote --trailing-comma all \"packages/*/src/**/*.js\"",
10+
"lint": "eslint --cache .",
11+
"test": "jest --runInBand --coverage && codecov"
812
},
913
"devDependencies": {
1014
"babel-cli": "^6.26.0",
@@ -14,6 +18,7 @@
1418
"babel-plugin-transform-object-rest-spread": "^6.26.0",
1519
"babel-preset-env": "^1.6.0",
1620
"chalk": "^2.1.0",
21+
"codecov": "^2.3.0",
1722
"eslint": "^4.4.1",
1823
"eslint-config-airbnb-base": "^11.3.1",
1924
"eslint-config-prettier": "^2.3.0",

packages/h2x-core/.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
!/lib/*.js
3+
*.test.js

packages/h2x-generate/.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
!/lib/*.js
3+
*.test.js

packages/h2x-generate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "h2x-generate",
33
"description": "Convert h2x AST into code.",
44
"version": "0.0.0",
5-
"repository": "https://github.com/smooth-code/h2x/tree/master/packages/h2x-parse",
5+
"repository": "https://github.com/smooth-code/h2x/tree/master/packages/h2x-generate",
66
"author": "Bergé Greg <berge.greg@gmail.com>",
77
"license": "MIT",
88
"homepage": "https://github.com/smooth-code/h2x",

packages/h2x-parse/.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
!/lib/*.js
3+
*.test.js

packages/h2x-plugin-jsx/.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
!/lib/*.js
3+
*.test.js

packages/h2x-plugin-jsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "h2x-plugin-jsx",
33
"description": "Transform HTML into JSX.",
44
"version": "0.0.0",
5-
"repository": "https://github.com/smooth-code/h2x/tree/master/packages/h2x-types",
5+
"repository": "https://github.com/smooth-code/h2x/tree/master/packages/h2x-plugin-jsx",
66
"author": "Bergé Greg <berge.greg@gmail.com>",
77
"license": "MIT",
88
"homepage": "https://github.com/smooth-code/h2x",

0 commit comments

Comments
 (0)