Build Bootstrap with Assemble instead of Jekyll.
You must have NPM, Bower and Grunt installed globally before you begin.
Do one of the following:
git clone git://github.com/assemble/boilerplate-bootstrap.git
bower install boilerplate-bootstrap
Next, cd
into the project run the following in the command line:
npm i && git clone git://github.com/twbs/bootstrap.git "vendor/bootstrap" && cd vendor/bootstrap && npm i
Optionally update the metadata and config defaults to how you want them for your project.
You may now run grunt
to build the project.
If you haven't used Assemble before, please visit http://assemble.io/docs to learn how to customize the task.
In the project's Gruntfile, the example assemble
task is pre-loaded with paths and options to build the project successfully:
assemble: {
options: {
flatten: true,
assets: '<%= site.assets %>',
// Metadata
site: '<%= site %>',
// Templates
partials: '<%= site.includes %>',
layoutdir: '<%= site.layouts %>',
layout: '<%= site.layout %>',
},
docs: {
src: ['templates/*.hbs'],
dest: '<%= site.dest %>/'
}
}
Take a look at _config.yml to see some of the metadata and config data is defined.
Jon Schlinkert
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.