This is the best, basic, batteries included webpack, babel, react, scss, starter repo available.
git clone --depth 1 [email protected]:oscarmorrison/react-webpack-starter.git [new-project-name]
cd [new-project-name]
yarn setup
a javascript library for building interfaces.
a bundler for javascript and friends. Packs many modules into a few bundled assets.
dist
folder on each buildThe compiler for writing next generation JavaScript. transpile your code from es6 to js.
Delightful JavaScript Testing.
The pluggable linting utility for JavaScript and JSX.
.
├── LICENSE
├── README.md
├── package.json
├── webpack.config.js
├── yarn.lock
├── src
│ ├── html
│ │ └── index.html
│ ├── js
│ │ ├── index.jsx
│ │ └── utilities
│ │ └── general.js
│ └── style
│ └── index.scss
└── test
└── generalUtility.test.js
this starter uses yarn
by default, it includes the following yarn scripts:
watch
: ./node_modules/.bin/webpack -d –watch
dev
: ./node_modules/.bin/webpack-dev-server -d –hot –inline –progress –colors
build
: NODE_ENV=production ./node_modules/.bin/webpack -p
test
: yarn jest && yarn lint
test:watch
: yarn jest:watch & yarn lint:watch
jest
: ./node_modules/.bin/jest
jest:watch
: ./node_modules/.bin/jest –watch
lint
: ./node_modules/.bin/eslint src/js test –ext .js –ext .jsx
lint:watch
: ./node_modules/.bin/esw src/js test –ext .js –ext .jsx -w –color –clear
You can download the repo here, and run:
yarn setup