get-gulp-args

    0.0.1 • Public • Published

    get-gulp-args NPM version

    get cmd arguments for gulp commands

    Install with npm

    npm install get-gulp-args

    Usage

    gulp build --dev --main
    var args = require('get-gulp-args')();
     
    process.env.NODE_ENV = args[0] || 'dev';
    process.env.PROJECT  = args[1] || 'main';

    or

    gulp build --env dev --project main
    var args = require('get-gulp-args')();
     
    process.env.NODE_ENV = args.env     || 'dev';
    process.env.PROJECT  = args.project || 'main';

    License

    Copyright (c) 2014-2015 Oleg Istomin Released under the MIT license


    Install

    npm i get-gulp-args

    DownloadsWeekly Downloads

    1,147

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • tamtakoe