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

Commit 2ff604d

Browse files
committed
chore: cleanup & upgrade deps
1 parent 693cc8f commit 2ff604d

File tree

20 files changed

+1631
-698
lines changed

20 files changed

+1631
-698
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ module.exports = {
1313
'class-methods-use-this': 'off',
1414
'no-param-reassign': 'off',
1515
'no-use-before-define': 'off',
16+
'lines-between-class-members': 'off',
17+
1618
'import/prefer-default-export': 'off',
1719
},
1820
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CHANGELOG.md
2+
package.json
3+
lerna.json
4+
lib/

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"semi": false
5+
}

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ language: node_js
33
node_js:
44
- 6
55
- 8
6+
- 10
67

78
before_install:
8-
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
9+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
910
- export PATH="$HOME/.yarn/bin:$PATH"
1011

1112
script:
@@ -17,5 +18,4 @@ notifications:
1718
cache:
1819
yarn: true
1920
directories:
20-
- ".eslintcache"
21-
- "node_modules"
21+
- 'node_modules'

package.json

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,32 @@
33
"license": "MIT",
44
"author": "Greg Bergé <[email protected]>",
55
"scripts": {
6-
"publish": "lerna publish",
7-
"prepublishOnly": "yarn build",
8-
"build": "lerna-build",
9-
"ci": "yarn build && yarn lint && yarn test",
10-
"dev": "yarn build && lerna-watch",
11-
"format": "prettier --write --no-semi --single-quote --trailing-comma all \"packages/*/src/**/*.js\"",
12-
"lint": "eslint --cache .",
13-
"test": "jest --runInBand --coverage && codecov"
6+
"build": "lerna run build",
7+
"ci": "yarn build && yarn lint && yarn test --ci --coverage && codecov",
8+
"dev": "lerna run build --parallel -- --watch",
9+
"format": "prettier --write \"packages/**/*.{js,json,md}\" \"*.{js,json,md}\"",
10+
"lint": "eslint .",
11+
"release": "lerna publish --conventional-commits && conventional-github-releaser --preset angular",
12+
"test": "jest --runInBand"
1413
},
1514
"devDependencies": {
1615
"babel-cli": "^6.26.0",
1716
"babel-core": "^6.26.3",
18-
"babel-eslint": "^8.2.3",
19-
"babel-jest": "^22.4.3",
17+
"babel-eslint": "^8.2.6",
18+
"babel-jest": "^23.4.2",
2019
"babel-plugin-transform-class-properties": "^6.24.1",
2120
"babel-plugin-transform-object-rest-spread": "^6.26.0",
2221
"babel-preset-env": "^1.7.0",
23-
"chalk": "^2.4.1",
24-
"codecov": "^3.0.2",
25-
"eslint": "^4.19.1",
26-
"eslint-config-airbnb-base": "^12.1.0",
27-
"eslint-config-prettier": "^2.9.0",
28-
"eslint-plugin-import": "^2.11.0",
29-
"glob": "^7.1.2",
30-
"jest": "^22.4.3",
31-
"lerna": "^2.11.0",
32-
"lerna-tools": "^1.0.0",
33-
"micromatch": "^3.1.10",
34-
"mkdirp": "^0.5.1",
35-
"prettier": "^1.12.1",
36-
"string-length": "^2.0.0"
22+
"codecov": "^3.0.4",
23+
"eslint": "^5.3.0",
24+
"eslint-config-airbnb-base": "^13.1.0",
25+
"eslint-config-prettier": "^3.0.1",
26+
"eslint-plugin-import": "^2.14.0",
27+
"jest": "^23.5.0",
28+
"lerna": "^3.0.6",
29+
"prettier": "^1.14.2"
3730
},
3831
"workspaces": [
3932
"packages/*"
40-
],
41-
"jest": {
42-
"roots": [
43-
"packages"
44-
],
45-
"coverageDirectory": "./coverage/"
46-
}
33+
]
4734
}

packages/h2x-core/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"license": "MIT",
88
"homepage": "https://github.com/smooth-code/h2x",
99
"main": "lib/index.js",
10+
"scripts": {
11+
"prebuild": "rm -rf lib/",
12+
"build": "babel --config-file ../../babel.config.js -d lib --ignore \"**/*.test.js\" src",
13+
"prepublishOnly": "yarn run build"
14+
},
1015
"dependencies": {
1116
"h2x-generate": "^1.0.0",
1217
"h2x-parse": "^1.0.0",

packages/h2x-core/src/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NODE_TYPE } from 'h2x-types'
2-
import { transform } from './'
2+
import { transform } from '.'
33

44
describe('transform', () => {
55
it('should transform', () => {

packages/h2x-generate/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"license": "MIT",
88
"homepage": "https://github.com/smooth-code/h2x",
99
"main": "lib/index.js",
10+
"scripts": {
11+
"prebuild": "rm -rf lib/",
12+
"build": "babel --config-file ../../babel.config.js -d lib --ignore \"**/*.test.js\" src",
13+
"prepublishOnly": "yarn run build"
14+
},
1015
"dependencies": {
1116
"h2x-traverse": "^1.0.0"
1217
},

packages/h2x-generate/src/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import parse from 'h2x-parse'
2-
import generate from './'
2+
import generate from '.'
33

44
describe('generate', () => {
55
it('should generate code from AST', () => {

packages/h2x-parse/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"license": "MIT",
88
"homepage": "https://github.com/smooth-code/h2x",
99
"main": "lib/index.js",
10+
"scripts": {
11+
"prebuild": "rm -rf lib/",
12+
"build": "babel --config-file ../../babel.config.js -d lib --ignore \"**/*.test.js\" src",
13+
"prepublishOnly": "yarn run build"
14+
},
1015
"dependencies": {
1116
"h2x-types": "^1.0.0",
1217
"jsdom": "^11.10.0"

0 commit comments

Comments
 (0)