This repository contains all of my usual environment setup for babel, webpack and jest for developing React apps. I got tired of copying and pasting the same config files everywhere, so I put this together.
To get started, either copy apps/template or create these files:
package.json
{
"type": "module",
"scripts": {
"start": "webpack serve",
"build": "NODE_ENV=production webpack",
"test": "jest",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
},
"dependencies": {
"@stanlemon/webdev": "*"
}
}
webpack.config.js
export { default } from "@stanlemon/webdev/webpack.config.js";
jest.config.js
export { default } from "@stanlemon/webdev/jest.config.js";
.eslintrc.json
{
"extends": [
"@stanlemon"
]
}
Then run npm install
and start coding!
Eventually I'll add some CLI tooling to streamline this further.