Opinionated starter pack for building apps using hyperapp. hyperapp-effects is also provided for more Elm-style goodness.
For stylesheets, picostyle is provided. Additionally, node-sass and a variety of PostCSS plugins are installed. You can also use CSS modules or tachyons for styling components.
Testing is supported through the Mocha framework (with help from zinserjan/mocha-webpack). Chai (for assertions), Sinon (for spies, mocks, and stubs), and JSDom are all also provided. Check the .spec.js files in components/, containers/, and actions/ to see some examples to get started writing unit tests.
Run npm install or yarn install to install packages.
You may also want to reinitialize git, which can be done by running:
rm -rf .git
git init
git add .
git commit -m "Initial Commit"
There are a number of scripts already available for supporting development:
- Start Development Server –
npm run start - Build Production Code –
npm run build - Visualize Bundle Size –
npm run analyze - Unit Testing –
npm run mochanpm run mocha:watchto live update unit tests
- Checking Code Quality –
npm run lintnpm run lint -- --fixto fix errors automatically
Run yarn build or npm run build to build an optimized, production version of your app. It will be in the build/ directory.
npm run analyze
Also: env NODE_ENV=production webpack --json > stats.json and upload to Webpack Visualizer