Code Monkey home page Code Monkey logo

gulp-starter-kit's Introduction

Gulp Starter Kit

A boilerplate for frontend development using Gulp, SASS, Bootstrap, MomentJS, Chosen, AngularJS 1.6, Angular UI Router and a few other libraries

Credits to https://github.com/zakaziko99/assets-bootstrap-sass-bower-gulp.git as I used it to start off

Techs used

This boilerplate uses a number of open source projects to work properly:

Contents

Install dependencies

First, get the git repository

In order to start a project with Bootstrap SASS & jQuery, first you'll better get the repo

git clone [email protected]/arjunmat/gulp-starter-kit.git

Customizing your project

Then customize your project by changing the name and delete the .git folder

mv gulp-starter-kit <project-folder>
cd <project-folder>/
rm -rf .git

Prerequisites

To use Bootstrap SASS & jQuery, your project requires the following major dependencies:

  • Node.js, used to run JavaScript tools from the command line.
  • npm, the node package manager, installed with Node.js and used to install Node.js packages.
  • bower, a fast package manager for the web frameworks, libraries, assets, and utilities.
  • gulp, a Node.js-based build tool.

To install dependencies:

  1. Check your Node.js version.
node --version

The version should be at or above 0.12.x.

  1. If you don't have Node.js installed, or you have a lower version, go to nodejs.org and click on the big green Install button.

  2. Install bower and gulp.

npm install -g bower gulp

This lets you run bower and gulp from the command line. (the working directory must be the root of your project)

  1. Install the Bootstrap SASS & jQuery dependencies.
bower install && npm install

This installs Automate Tasks for better workflow.

Customizing gulpfile

on the 'gulpfile.js' file, you can customize the build folder of your project:

var paths  = {...};

Development workflow

wiredep

Run the wiredep gulp task

gulp wiredep

This will add all the bower dependencies to the HTML file

serve

Start a local server and runs the SASS files

gulp serve

Build

Run the build gulp task

gulp build

This will copy all the distribution files to the build directory

gulp-starter-kit's People

Contributors

arjunmat avatar

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.