Use a .babelignore to skip compiling lib and fixtures. (#451)

This commit is contained in:
Logan Smyth 2017-04-05 12:16:51 -07:00 committed by Henry Zhu
parent ed452b6f78
commit 1c07efb5fc
3 changed files with 3 additions and 11 deletions

2
.babelignore Normal file
View File

@ -0,0 +1,2 @@
test/fixtures
lib

View File

@ -19,7 +19,7 @@ test-babel:
cd ./build/babel; \ cd ./build/babel; \
jq "del(.nyc)" package.json > package.nonyc.json; \ jq "del(.nyc)" package.json > package.nonyc.json; \
mv -f package.nonyc.json package.json; \ mv -f package.nonyc.json package.json; \
../../node_modules/.bin/nyc --no-instrument --no-source-map --reporter=json --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --compilers js:../../scripts/test-babel-register.js; \ ../../node_modules/.bin/nyc --no-instrument --no-source-map --reporter=json --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --compilers js:babel-register; \
bootstrap-flow: clean bootstrap-flow: clean
mkdir ./build mkdir ./build

View File

@ -1,10 +0,0 @@
"use strict";
const register = require("babel-register").default;
register({
extensions: [".js"],
// Only js files in the test folder but not in the subfolder fixtures.
only: [/packages\/.+\/test\/(?!fixtures\/).+\.js$/],
compact: true,
});