Bootstrap uses Grunt for its build system, with convenient methods for working with the framework. It’s how we compile our code, run tests, and more.
Then, from the command line:
npm install -g grunt-cli.
- Navigate to the root
/bootstrap/directory, then run
npm install. npm will look at the
package.jsonfile and automatically install the necessary local dependencies listed there.
When completed, you’ll be able to run the various Grunt commands provided from the command line.
Available Grunt commands
grunt watch (Watch)
Watches the Less source files and automatically recompiles them to CSS whenever you save a change.
grunt test (Run tests)
grunt docs (Build & test the docs assets)
bundle exec jekyll serve.
grunt (Build absolutely everything and run tests)
Should you encounter problems with installing dependencies or running Grunt commands, first delete the
/node_modules/ directory generated by npm. Then, rerun