Book Image

Bootstrap 4 Site Blueprints - Second Edition

By : Ian Whitney, David Cochran
Book Image

Bootstrap 4 Site Blueprints - Second Edition

By: Ian Whitney, David Cochran

Overview of this book

Packed with trade secrets, this second edition is your one-stop solution to creating websites that will provide the best experience for your users. We cover six popular, real-world examples, where each project teaches you about the various functionalities of Bootstrap 4 and their implementation. The book starts off by getting you up and running with the new features of Bootstrap 4 before gradually moving on to customizing your blog with Bootstrap and SASS, building a portfolio site, and turning it into a WordPress theme. In the process, you will learn to recompile Bootstrap files using SASS, design a user interface, and integrate JavaScript plugins. Towards the end of the book, you will also be introduced to integrating Bootstrap 4 with popular application frameworks such as Angular 2, Ruby on Rails, and React.
Table of Contents (15 chapters)
Bootstrap 4 Site Blueprints
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Running your template with Bootstrap CLI


In this chapter, you have created a build process which builds and compiles your single page template by running the gulp command. In this book, you'll use Bootstrap CLI to set up your projects.

Bootstrap CLI enables you to choose your own starter templates. These starter templates also have a Gulp (or Grunt) build chain. For instance the source code of the Bootstrap material design template can be found at https://github.com/bassjobsen/bootstrap-material-design-styleguide. Bootstrap CLI downloads the templates from GitHub and its commands call npm to run scripts.

To make your build process and template ready for Bootstrap CLI, you simply add the npm script calls to your package.json file as follows:

  "scripts": { 
    "build": "gulp deploy", 
    "start": "gulp" 
  }