Use Yarn Workspaces (#6056)
* update lerna and lerna-changelog * Lerna: enable yarn, yarn workspaces [skip ci] * use older version of Babel since it matches on semver (cannot be the same version) * install yarn version * revert node engine change * update flow * circle ci on 8 * update lock
This commit is contained in:
parent
13d931c417
commit
66ec5263a4
@ -13,6 +13,5 @@ lib/types.js
|
|||||||
lib/third-party-libs.js.flow
|
lib/third-party-libs.js.flow
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
strip_root=true
|
|
||||||
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
|
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
|
||||||
suppress_comment= \\(.\\|\n\\)*\\$FlowIssue
|
suppress_comment= \\(.\\|\n\\)*\\$FlowIssue
|
||||||
|
|||||||
@ -12,7 +12,12 @@ node_js:
|
|||||||
- '4'
|
- '4'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- JOB=test
|
global:
|
||||||
|
- PATH=$HOME/.yarn/bin:$PATH
|
||||||
|
- JOB=test
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.28.1
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- 'if [ "$JOB" = "test" ]; then make test-ci; fi'
|
- 'if [ "$JOB" = "test" ]; then make test-ci; fi'
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -26,7 +26,7 @@ lint:
|
|||||||
./node_modules/.bin/eslint scripts packages *.js --format=codeframe
|
./node_modules/.bin/eslint scripts packages *.js --format=codeframe
|
||||||
|
|
||||||
flow:
|
flow:
|
||||||
./node_modules/.bin/flow check
|
./node_modules/.bin/flow check --strip-root
|
||||||
|
|
||||||
fix:
|
fix:
|
||||||
./node_modules/.bin/eslint scripts packages *.js --format=codeframe --fix
|
./node_modules/.bin/eslint scripts packages *.js --format=codeframe --fix
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
machine:
|
machine:
|
||||||
node:
|
node:
|
||||||
version:
|
version:
|
||||||
6
|
8
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
pre:
|
pre:
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
"lerna": "2.0.0-rc.4",
|
"lerna": "2.0.0-rc.4",
|
||||||
"version": "7.0.0-alpha.18",
|
"version": "7.0.0-alpha.18",
|
||||||
"changelog": {
|
"changelog": {
|
||||||
"repo": "babel/babel",
|
|
||||||
"labels": {
|
"labels": {
|
||||||
"tag: spec compliancy": ":eyeglasses: Spec Compliancy",
|
"tag: spec compliancy": ":eyeglasses: Spec Compliancy",
|
||||||
"tag: breaking change": ":boom: Breaking Change",
|
"tag: breaking change": ":boom: Breaking Change",
|
||||||
@ -21,5 +20,10 @@
|
|||||||
"test/**"
|
"test/**"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"packages": [
|
||||||
|
"packages/*"
|
||||||
|
],
|
||||||
|
"npmClient": "yarn",
|
||||||
|
"useWorkspaces": true
|
||||||
}
|
}
|
||||||
|
|||||||
29
package.json
29
package.json
@ -11,14 +11,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "^1.5.0",
|
"async": "^1.5.0",
|
||||||
"babel-cli": "7.0.0-alpha.18",
|
"babel-cli": "7.0.0-alpha.15",
|
||||||
"babel-core": "7.0.0-alpha.18",
|
"babel-core": "7.0.0-alpha.15",
|
||||||
"babel-eslint": "8.0.0-alpha.15",
|
"babel-eslint": "8.0.0-alpha.15",
|
||||||
"babel-plugin-istanbul": "^4.1.4",
|
"babel-plugin-istanbul": "^4.1.4",
|
||||||
"babel-preset-env": "2.0.0-alpha.18",
|
"babel-preset-env": "2.0.0-alpha.15",
|
||||||
"babel-preset-flow": "7.0.0-alpha.18",
|
"babel-preset-flow": "7.0.0-alpha.15",
|
||||||
"babel-preset-stage-0": "7.0.0-alpha.18",
|
"babel-preset-stage-0": "7.0.0-alpha.15",
|
||||||
"babel-register": "7.0.0-alpha.18",
|
"babel-register": "7.0.0-alpha.15",
|
||||||
"browserify": "^13.1.1",
|
"browserify": "^13.1.1",
|
||||||
"bundle-collapser": "^1.2.1",
|
"bundle-collapser": "^1.2.1",
|
||||||
"chai": "^4.1.0",
|
"chai": "^4.1.0",
|
||||||
@ -28,16 +28,16 @@
|
|||||||
"eslint-config-babel": "^7.0.1",
|
"eslint-config-babel": "^7.0.1",
|
||||||
"eslint-plugin-flowtype": "^2.20.0",
|
"eslint-plugin-flowtype": "^2.20.0",
|
||||||
"eslint-plugin-prettier": "^2.1.2",
|
"eslint-plugin-prettier": "^2.1.2",
|
||||||
"flow-bin": "^0.41.0",
|
"flow-bin": "^0.52.0",
|
||||||
"gulp": "^3.9.0",
|
"gulp": "^3.9.0",
|
||||||
"gulp-babel": "7.0.0-alpha.18",
|
"gulp-babel": "babel/gulp-babel#d8c67b",
|
||||||
"gulp-newer": "^1.0.0",
|
"gulp-newer": "^1.0.0",
|
||||||
"gulp-plumber": "^1.0.1",
|
"gulp-plumber": "^1.0.1",
|
||||||
"gulp-util": "^3.0.7",
|
"gulp-util": "^3.0.7",
|
||||||
"gulp-watch": "^4.3.5",
|
"gulp-watch": "^4.3.5",
|
||||||
"husky": "^0.13.2",
|
"husky": "^0.13.2",
|
||||||
"lerna": "2.0.0-rc.4",
|
"lerna": "2.0.0",
|
||||||
"lerna-changelog": "^0.2.0",
|
"lerna-changelog": "^0.6.0",
|
||||||
"lint-staged": "^3.6.1",
|
"lint-staged": "^3.6.1",
|
||||||
"lodash": "^4.2.0",
|
"lodash": "^4.2.0",
|
||||||
"mocha": "^3.0.0",
|
"mocha": "^3.0.0",
|
||||||
@ -50,8 +50,8 @@
|
|||||||
"uglify-js": "^2.4.16"
|
"uglify-js": "^2.4.16"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 6.x <= 8.x",
|
"node": ">= 4.x <= 8.x",
|
||||||
"npm": ">= 3.x <= 5.x"
|
"npm": ">= 2.x <= 5.x"
|
||||||
},
|
},
|
||||||
"nyc": {
|
"nyc": {
|
||||||
"all": true,
|
"all": true,
|
||||||
@ -67,5 +67,8 @@
|
|||||||
"eslint --format=codeframe --fix",
|
"eslint --format=codeframe --fix",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"workspaces": [
|
||||||
|
"packages/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
// @flow
|
|
||||||
|
|
||||||
import * as context from "../index";
|
import * as context from "../index";
|
||||||
import Plugin from "./plugin";
|
import Plugin from "./plugin";
|
||||||
import * as messages from "babel-messages";
|
import * as messages from "babel-messages";
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
/* @flow */
|
|
||||||
|
|
||||||
import type { NodePath } from "babel-traverse";
|
import type { NodePath } from "babel-traverse";
|
||||||
import nameFunction from "babel-helper-function-name";
|
import nameFunction from "babel-helper-function-name";
|
||||||
import template from "babel-template";
|
import template from "babel-template";
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
// @flow
|
|
||||||
|
|
||||||
import type NodePath from "babel-traverse";
|
import type NodePath from "babel-traverse";
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user