Commit 06f5701c authored by Jonathan Cunanan's avatar Jonathan Cunanan

Add jest

parent 2fdd2c14
{
"presets": ["@babel/preset-env"],
"ignore": ["**/__tests__/**", "*.test.js", "*.spec.js"]
}
# bin folder
bin
# build folder
build
dist
# config files
*.config.js
# exclude src
!src/**
\ No newline at end of file
module.exports = {
presets: ['@babel/preset-env'],
ignore: ['**/__tests__/**', '*.test.js', '*.spec.js']
};
This diff is collapsed.
......@@ -6,7 +6,7 @@
"start": "npm run prod",
"dev": "NODE_ENV=development npm run watch ./src/bin/www",
"prod": "npm run build && NODE_ENV=production node ./dist/bin/www",
"build": "npm run clean && babel ./src --config-file ./.babelrc --out-dir dist",
"build": "npm run clean && babel ./src --config-file ./babel.config.js --out-dir dist",
"clean": "rimraf dist",
"watch": "nodemon --config ./nodemon.json --"
},
......@@ -24,6 +24,7 @@
"@babel/preset-env": "^7.3.1",
"eslint": "^5.13.0",
"eslint-plugin-import": "^2.16.0",
"jest": "^24.1.0",
"nodemon": "^1.18.9"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment