npm install
npm start and visit http://localhost:8080 in the browser.
(truncated, only showing one component in src, for the sake of simplicity)
├── docs
│ ├── Styleguide
│ │ ├── Styleguide.jade
│ │ ├── Styleguide.jsx
│ │ ├── Styleguide.scss
│ ├── entry.js
│ ├── index.html
├── node_modules
├── public
├── src
│ ├── components
│ │ ├── Header
│ │ │ ├── Header.jade
│ │ │ ├── Header.jsx
│ │ │ ├── Header.scss
│ │ ├── index.js
docs/- Imports all components necessary for the docs into Styleguide.jsx.entry.jsis our entry point for webpack. Whennpm run buildis executed, this folder is compiled to serve up our documentation inpublicin the browser atlocalhost:8080.public/- Generated by webpack. Compiled and minified docs for reference.src/components- Where everything we need to build beautiful websites lives.
npm run build to both delete the public folder and rebuild it.
- Run
npm run build:cleanto removepublicfolder - Run
npm run build:allto buildpublicfolder