![]() ![]() ![]() Usually only necessary if you're hacking on Bootstrap itself. grunt (Build absolutely everything and run tests)Ĭompiles and minifies CSS and JavaScript, builds the documentation website, runs the HTML5 validator against the docs, regenerates the Customizer assets, and more. grunt docs (Build & test the docs assets)īuilds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via jekyll serve. Runs JSHint and runs the QUnit tests headlessly in PhantomJS. Watches the Less source files and automatically recompiles them to CSS whenever you save a change. As a Bootstrap user, this is normally the command you want. ![]() Regenerates the /dist/ directory with compiled and minified CSS and JavaScript files. Available Grunt commands grunt dist (Just compile CSS and JavaScript) When completed, you'll be able to run the various Grunt commands provided from the command line. npm will look at the package.json file and automatically install the necessary local dependencies listed there. Navigate to the root /bootstrap/ directory, then run npm install.Install grunt-cli globally with npm install -g grunt-cli.npm stands for node packaged modules and is a way to manage development dependencies through node.js. To install Grunt, you must first download and install node.js (which includes npm). It's how we compile our code, run tests, and more. Bootstrap uses Grunt for its build system, with convenient methods for working with the framework. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |