Use a .babelignore to skip compiling lib and fixtures. (#451)
This commit is contained in:
parent
ed452b6f78
commit
1c07efb5fc
2
.babelignore
Normal file
2
.babelignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
test/fixtures
|
||||||
|
lib
|
||||||
2
Makefile
2
Makefile
@ -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
|
||||||
|
|||||||
@ -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,
|
|
||||||
});
|
|
||||||
Loading…
x
Reference in New Issue
Block a user