This is the front-end development kit for use with Bootstrap 4. It has a Gulp-powered build system with these features:
- Nunjucks HTML templates
- Sass compilation and prefixing (with libsass)
- Easy to make styleguides with Sherpa
- JavaScript concatenation
- Font Awesome
- Built-in BrowserSync server
- For production builds:
- CSS compression
- JavaScript compression
- Image compression
To use this template, your computer needs:
To manually set up the template, first download it with npm or git:
npm init
npm install bootstrap4-gulp-nunjucks --save-devgit clone https://github.com/directions4/bootstrap4-gulp-nunjucks projectnameThen open the folder in your command line, and install the needed dependencies:
cd projectname
npm installFinally, run npm start to run Gulp. Your finished site will be created in a folder called dist.
npm startViewable at this URL:
http://localhost:8000
To create compressed, production-ready assets, run npm run build.
npm run buildYou can set paths, browser compatibility and port number in config.yml.