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:
Henry Zhu 2017-08-05 14:48:15 -04:00 committed by GitHub
parent 13d931c417
commit 66ec5263a4
11 changed files with 656 additions and 640 deletions

View File

@ -13,6 +13,5 @@ lib/types.js
lib/third-party-libs.js.flow
[options]
strip_root=true
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
suppress_comment= \\(.\\|\n\\)*\\$FlowIssue

View File

@ -12,8 +12,13 @@ node_js:
- '4'
env:
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:
- 'if [ "$JOB" = "test" ]; then make test-ci; fi'
- 'if [ "$JOB" = "lint" ]; then make lint && make flow; fi'

1
.yarnrc Normal file
View File

@ -0,0 +1 @@
workspaces-experimental true

View File

@ -26,7 +26,7 @@ lint:
./node_modules/.bin/eslint scripts packages *.js --format=codeframe
flow:
./node_modules/.bin/flow check
./node_modules/.bin/flow check --strip-root
fix:
./node_modules/.bin/eslint scripts packages *.js --format=codeframe --fix

View File

@ -1,7 +1,7 @@
machine:
node:
version:
6
8
dependencies:
pre:

View File

@ -2,7 +2,6 @@
"lerna": "2.0.0-rc.4",
"version": "7.0.0-alpha.18",
"changelog": {
"repo": "babel/babel",
"labels": {
"tag: spec compliancy": ":eyeglasses: Spec Compliancy",
"tag: breaking change": ":boom: Breaking Change",
@ -21,5 +20,10 @@
"test/**"
]
}
}
},
"packages": [
"packages/*"
],
"npmClient": "yarn",
"useWorkspaces": true
}

View File

@ -11,14 +11,14 @@
},
"devDependencies": {
"async": "^1.5.0",
"babel-cli": "7.0.0-alpha.18",
"babel-core": "7.0.0-alpha.18",
"babel-cli": "7.0.0-alpha.15",
"babel-core": "7.0.0-alpha.15",
"babel-eslint": "8.0.0-alpha.15",
"babel-plugin-istanbul": "^4.1.4",
"babel-preset-env": "2.0.0-alpha.18",
"babel-preset-flow": "7.0.0-alpha.18",
"babel-preset-stage-0": "7.0.0-alpha.18",
"babel-register": "7.0.0-alpha.18",
"babel-preset-env": "2.0.0-alpha.15",
"babel-preset-flow": "7.0.0-alpha.15",
"babel-preset-stage-0": "7.0.0-alpha.15",
"babel-register": "7.0.0-alpha.15",
"browserify": "^13.1.1",
"bundle-collapser": "^1.2.1",
"chai": "^4.1.0",
@ -28,16 +28,16 @@
"eslint-config-babel": "^7.0.1",
"eslint-plugin-flowtype": "^2.20.0",
"eslint-plugin-prettier": "^2.1.2",
"flow-bin": "^0.41.0",
"flow-bin": "^0.52.0",
"gulp": "^3.9.0",
"gulp-babel": "7.0.0-alpha.18",
"gulp-babel": "babel/gulp-babel#d8c67b",
"gulp-newer": "^1.0.0",
"gulp-plumber": "^1.0.1",
"gulp-util": "^3.0.7",
"gulp-watch": "^4.3.5",
"husky": "^0.13.2",
"lerna": "2.0.0-rc.4",
"lerna-changelog": "^0.2.0",
"lerna": "2.0.0",
"lerna-changelog": "^0.6.0",
"lint-staged": "^3.6.1",
"lodash": "^4.2.0",
"mocha": "^3.0.0",
@ -50,8 +50,8 @@
"uglify-js": "^2.4.16"
},
"engines": {
"node": ">= 6.x <= 8.x",
"npm": ">= 3.x <= 5.x"
"node": ">= 4.x <= 8.x",
"npm": ">= 2.x <= 5.x"
},
"nyc": {
"all": true,
@ -67,5 +67,8 @@
"eslint --format=codeframe --fix",
"git add"
]
}
},
"workspaces": [
"packages/*"
]
}

View File

@ -1,5 +1,3 @@
// @flow
import * as context from "../index";
import Plugin from "./plugin";
import * as messages from "babel-messages";

View File

@ -1,5 +1,3 @@
/* @flow */
import type { NodePath } from "babel-traverse";
import nameFunction from "babel-helper-function-name";
import template from "babel-template";

View File

@ -1,5 +1,3 @@
// @flow
import type NodePath from "babel-traverse";
export default function() {

1240
yarn.lock

File diff suppressed because it is too large Load Diff