Have ideas to improve npm?Join in the discussion! »

    gulp-macros

    0.2.2 • Public • Published

    gulp-macros

    sweetjs macros for gulp

    Installation

    npm install sweet.js gulp-macros -g npm install gulp-macros --save-dev

    Usage

    Create file gulpfile.sjs

    Example

    var gulp = require('gulp');
    var coffee = require('gulp-coffee');
    var concat = require('gulp-concat');
    var uglify = require('gulp-uglify');
    var sourcemaps = require('gulp-sourcemaps');
     
    task 'scripts' {
      @ ['js/**/*.coffee', '!client/external/**/*.coffee'];
        | sourcemaps.init();
        | coffee();
        | uglify();
        | concat('all.min.js');
        | sourcemaps.write();
          > 'build/js';
    }
     
    task 'watch' {
      watch '**/*.coffee', ['scripts'];
    }
     
    task 'default' ['watch', 'scripts'] { }

    CLI

    $ gulps [task]
    $ gulps watch
    $ gulps scripts
    $ gulps

    Keywords

    Install

    npm i gulp-macros

    DownloadsWeekly Downloads

    1

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • avatar