GithubHelp home page GithubHelp logo

gulp-boilerplate's Introduction

โšก Gulp Boilerplate

Gulp Logo

Gulp is a Task Runner that runs on Node. The "program" Gulp is installed via the command line through npm, the node package manager and is run on the runtime environment Node. There is no GUI, everything is controlled by a config file and commands via the command line interface.

Gulp is a tool for automating common and time consuming task that we deal with every day when we develop. This repo is a starter kit with an already created config and folder structure.

The master branch of this repo is able to automatically detect changes in your html-files and scss-files and updated your browser with these changes so you don't have to reload. This config will also automatically convert your scss-files to regular css-files so there is no need to use sass command in your ruby-command line (gulp-sass actually uses node-sass which is a port of the original ruby gem that we used earlier). The config will also autoprefix your css-files.

Instructions for the boilerplate

  • Clone the repository.

  • Use this command to install all dependencies for the project:

# Uses package.json "devDependencies" to install dependencies
npm install
  • Start gulp by running:
npm start
  • Write code in the src-folder.

Folder structure

  • dist - The converted files that are linked via index.html. You don't have to touch these files
    • js - All converted js-files go here
    • css - All converted css-files go here
  • src - This is where your development-files are. There are the ones you work on
    • js - All unconverted js-files
    • scss - All unconverted scss-files
  • Gulpfile.js - This config file must be in the root-folder
  • index.html - The index must be in the root-folder
  • package.json - All the dependencies and config for the project

Branches

This repo has three different branches:

  • master
    • Standard with gulp-sass and browser-sync that handles live-reloading and converting sass to prefixed css
  • babel
    • Also has gulp-babel-module to transform ES6-code to older code that is accepted in older browsers.
  • browserify
    • Has browserify and helper utilities to be able to use import and export in the browser.

Dependencies used in this boilerplate

Links

gulp-boilerplate's People

Watchers

James Cloos avatar  avatar

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.