Giter Club home page Giter Club logo

gulptasks's Introduction

gulpTasks (for gulp version >4.0)

This is mostly for personal use, but feel free to use it if it helps you.

I was fed up with a huge gulp file, so modularised it into task submodules.

I will add more as I reuse this on other projects.

Installation

  1. For now download the files and pop them in the root of your project.
  2. copy and paste the devDependencies from this project's package.json into your own package.json
  3. run npm i to install the necessary dependencies for the gulp files.
  4. The gulpfile.esm.js will need editing to import the necessary modules that you need
  5. The tasks that you want to be available on the command line need to be exported (see example file)
  6. The config.js file needs editing to point gulp in the right direction for your assets' sources and build dirs

Usage

  1. run gulp to run your default task
  2. or run gulp taskName to run your exported task

Structure

The gulpfile is using esm to allow for import

The tasks are in gulp/tasks/*.js and each exports a gulp task for running in the gulpfile.esm.js

The gulp/config.js file contains the configurations for source, destination, etc. for each of the tasks.

At the moment The driving gulpfile and the tasks are all dependent on the config file to know what to do.

But I could put the watch task into it's own module perhaps so then only tasks care about the config.

gulptasks's People

Contributors

nathtech avatar

Watchers

 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.