Code Monkey home page Code Monkey logo

gulpfile's Introduction

A Gulpfile for any use

In this repository you can find a "ready to use" Gulpfile that can be used in any project.

Installation

All the necessary plugins are in the package.json so it is easier to install them via package manager.

Once you have put the Gulpfile.js in your project main directory, install the necessary plugins using a package manager (npm, yarn, bower, etc... as you wish) and that's it: you are now ready to use Gulp.

Configuration

All you have to do now is to update your personal paths in the initial variables (at the top of the file):

  • pathHtml is the path where there are all your main HTML files

  • pathViews is the path where there are all your HTML views if you are using a framework

  • pathSass is the path where there are your source SASS files (all the sub-folders are scanned as well for changes)

  • pathJs is the path where there are your source JavaScript files (all the sub-folders are scanned as well for changes

  • pathJsLibs is the path where there are your source JavaScript libraries (or frameworks, or vendors, or whatever)

  • distCssPath is the path where the built CSS file will be placed

  • distCssFile is the name of the built/minified CSS file

  • distJsPath is the path where the built JavaScript file will be placed

  • distJsFile is the name of the built/minified JavaScript file

Note: If you change the paths, remember to add the "/" (slash) at the end of them!

Run Gulp

In the terminal command line simply run:

gulp

You can also run both the compiler/builder and the watcher at the same time:

gulp && gulp watch

This Gulpfile comes with the option to also minify your built files (styles and scripts) for production environments:

gulp --type production

The plugins used by this Gulpfile

Note: Keep them up to date so the Gulpfile can works at its best performances.

gulpfile's People

Contributors

ferie avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.