Vanilla bean is here to make it easy to start building a single page application without the need for a framework like Angular, React or Vue.
To get started, clone this repository, remove the git history, re-init git, install dependencies, initialize husky and start building your awesome app.
mkdir my-app
cd my-app
# clone repo
git clone https://github.com/lbsonley/vanilla-bean.git .
# remove and re-init git
rm -rf .git
git init
# install dependencies
npm i
# initialize husky
husky
npm start
npm run build
- Routing via page.js
- Templating via hogan.js
- ES6 Support via babel (v7)
- SASS Support via sass-loader
- Linting via eslint-loader
- Prettier via prettier
- Precommit hooks via husky
When you run npm run build
we use the mini-css-extract-plugin to move the css to a separate file. The css file gets included in the head of the index.html
.