Nella fase di compilazione sto utilizzando babel per traspolare il codice in es5 (da src
a dist
). Come faccio a escludere i file che terminano con .test.js
?Make babel esclude i file di test
package.json
"scripts": {
"build": "babel src --out-dir dist",
.babelrc
{
"presets": [ "es2015" ],
"ignore": "\\.test\\.js"
}
Ho trovato che il babelrc non ha funzionato, ma l'opzione del compilatore in linea ha fatto –