Git Product home page Git Product logo

abhijithvijayan / gulp-sass-bootstrap-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 9.0 2.89 MB

โฐ๐Ÿ“Œ Boilerplate with gulp.js, Sass, Babel, and Browsersync.

Home Page: https://abhijithvijayan.github.io/gulp-sass-bootstrap-boilerplate/

License: MIT License

HTML 7.97% JavaScript 73.66% CSS 18.37%
gulp bootstrap4 sass babel devserver browsersync livereload-server boilerplate-template jquery popperjs

gulp-sass-bootstrap-boilerplate's Introduction

gulp-sass-bootstrap-boilerplate

travis gulp Bootstrap node-sass jQuery livereload

SASS ยท Babel ยท Bootstrap ยท Gulp ยท JQuery ยท PopperJS ยท Browsersync

This Gulp-Sass boilerplate starter contains the features and scripts you need to get started quickly with Gulp Runner and building, Live Loading.

๐Ÿ™‹โ€โ™‚๏ธ Made by @abhijithvijayan

Donate: PayPal, Patreon

Buy Me a Coffee


It contains the following features:

  • GulpJS
  • Babel ES6 Compiler
  • Bootstrap v4
  • JQuery v3.3.1
  • PopperJS
  • Concatenate and minify JavaScript.
  • Compile, minify, autoprefix SASS.
  • Browser-Sync Hot-Reloading
  • Optimize and Cache Images

Features

Gulp Loaders and Plugins

This project contains the following loaders & plugins:

  • node-sass for compiling sass (SCSS)
  • gulp-babel for compiling ES6 code
  • Browser-sync for hot-reloading
  • gulp-uglify for compressing JS
  • gulp-clean-css for compressing CSS
  • gulp-sourcemaps for mapping into css file
  • gulp-rev for filename hashing
  • gulp-imagemin for optimising images

Getting Started

Dependencies

Note: if you've previously installed Gulp globally, run npm rm --global gulp to remove it. Details here.

Make sure these are installed first.

Quick Start

  1. Clone the repo :

    git clone https://github.com/abhijithvijayan/gulp-sass-boilerplate.git

  2. In bash/terminal/command line, cd gulp-sass-boilerplate into project directory.

  3. Run npm install to install required files and dependencies.

  4. Launch the development environment with :

    gulp

    then, navigate to http://localhost:3000

Note: For Production, Use:

gulp build

This will build files and assets to dist directory.


Documentation

Workflow structure

src - > source directory

dist -> build directory

.
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ assets
โ”‚   โ”‚   โ””โ”€โ”€ 500x300.jpg
โ”‚   โ”œโ”€โ”€ sass
โ”‚   โ”‚   โ”œโ”€โ”€ _fonts.scss
โ”‚   โ”‚   โ”œโ”€โ”€ _variables.scss
โ”‚   โ”‚   โ””โ”€โ”€ main.scss
โ”‚   โ”œโ”€โ”€ index.js
โ”‚   โ””โ”€โ”€ index.html
.
.
โ”œโ”€โ”€ dist
โ”‚   โ”œโ”€โ”€ assets
โ”‚   โ”‚   โ”œโ”€โ”€ 500x300.jpg
โ”‚   โ”‚   โ””โ”€โ”€ rev-manifest.json
โ”‚   โ”œโ”€โ”€ css
โ”‚   โ”‚   โ””โ”€โ”€ style.min.css
โ”‚   โ”œโ”€โ”€ js
โ”‚   โ”‚   โ””โ”€โ”€ bundle.min.js
โ”‚   โ””โ”€โ”€ index.html
.

Instructions

  • Add your HTML files by inserting or including them in the src directory (By default index.html is added to the directory, feel free to edit it with the changes seen live.)

    • For the new HTML file(s), link the styles.css (in head tag) and bundle.js (in body tag) file in the HTML files as they are created.
      <head>
          :
          <link rel="stylesheet" href="css/style.css" />
      </head>
      <body>
          : 
          <script src="js/bundle.js"></script>
      </body>
      
  • Add sass(SCSS) files to src/sass folder.

    • Make sure you import the scss file in main.scss
      @import "filename";
      
  • Add images to src/assets folder.

Licence

Code released under the MIT License.

gulp-sass-bootstrap-boilerplate's People

Contributors

abhijithvijayan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gulp-sass-bootstrap-boilerplate's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.