commit
a69d75bdcb
@ -17,12 +17,9 @@ env:
|
||||
- JOB=test
|
||||
|
||||
before_install:
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.28.1
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
|
||||
script:
|
||||
# Babel doesn't build correctly with npm v2 (which comes bundled with Node v4)
|
||||
# so we manually upgrade to a known working npm version.
|
||||
- npm install --global npm@4
|
||||
- 'if [ "$JOB" = "test" ]; then make test-ci; fi'
|
||||
- 'if [ "$JOB" = "lint" ]; then make lint && make flow; fi'
|
||||
|
||||
|
||||
8
Makefile
8
Makefile
@ -30,14 +30,14 @@ watch: clean
|
||||
make clean-lib
|
||||
BABEL_ENV=development ./node_modules/.bin/gulp watch
|
||||
|
||||
lint:
|
||||
./node_modules/.bin/eslint scripts $(SOURCES) *.js --format=codeframe --rulesdir="./eslint_rules"
|
||||
|
||||
flow:
|
||||
./node_modules/.bin/flow check --strip-root
|
||||
|
||||
lint:
|
||||
./node_modules/.bin/eslint scripts $(SOURCES) *.js --format=codeframe --rulesdir="./scripts/eslint_rules"
|
||||
|
||||
fix:
|
||||
./node_modules/.bin/eslint scripts $(SOURCES) *.js --format=codeframe --fix --rulesdir="./eslint_rules"
|
||||
./node_modules/.bin/eslint scripts $(SOURCES) *.js --format=codeframe --fix --rulesdir="./scripts/eslint_rules"
|
||||
|
||||
clean: test-clean
|
||||
rm -rf packages/babel-polyfill/browser*
|
||||
|
||||
@ -10,8 +10,7 @@ machine:
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
# Version number can be removed once 0.28.x or higher is released as stable
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.28.4
|
||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||
cache_directories:
|
||||
- ~/.yarn-cache
|
||||
override:
|
||||
|
||||
@ -28,5 +28,7 @@
|
||||
"packages/*",
|
||||
"codemods/*",
|
||||
"experimental/*"
|
||||
]
|
||||
],
|
||||
"npmClient": "yarn",
|
||||
"npmClientArgs": ["--no-lockfile"]
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint --format=codeframe --rulesdir='./eslint_rules'"
|
||||
"eslint --format=codeframe --rulesdir='./scripts/eslint_rules'"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,8 +17,6 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"babel-core": "7.0.0-beta.2",
|
||||
"babel-polyfill": "7.0.0-beta.2",
|
||||
"babel-register": "7.0.0-beta.2",
|
||||
"commander": "^2.8.1",
|
||||
"convert-source-map": "^1.1.0",
|
||||
"fs-readdir-recursive": "^1.0.0",
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
read -p "Username: " username
|
||||
|
||||
for f in packages/*; do
|
||||
package=`basename $f`
|
||||
|
||||
if [ -d "$f" ]; then
|
||||
npm owner add $username $package
|
||||
fi
|
||||
done
|
||||
Loading…
x
Reference in New Issue
Block a user