Simple boilerplate for single page applications.
- Webpack for bundling.
- Babel for es2017 support.
- scss/sass for styling.
- jest for JavaScript testing.
- semistandard for JS standard.
Check the package.json
file a detailed list of packages.
The webpack configurations will build the html index file from the index.tmpl.html
file in the src directory.
All images in the img directory will be copied to dist/img
. JavaScript and CSS will be compiled and bundled into
js files.
Download and install repo:
curl -sL https://github.com/jitesoft/boilerplate-spa/archive/1.0.0.tar.gz | tar xz; cd -
yarn install
Open package.json
file, change the name of the project and update all meta tags that you wish to have injected into the resulting HTML files.
Run yarn watch
and webpack-serve will start a hot-swap enabled server with the webpack/webpack.config.dev.js
configuration.
To build dev files to dist, run yarn build:dev
The package comes with jest
and semistandard
by default. To run them, run yarn test
.
To build the production files, run yarn build:prod
. Resulting files will be placed in the dist
directory.
Build the docker file for a lighttpd instance running your site!