Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Support for devDependency install #60

@blaineadams

Description

@blaineadams

When using gulp-param installed as a devDependency only the ouput is always undefined.

For example.

npm install gulp gulp-param --save-dev

There is no global installation of gulp or gulp-param on my system. They are install as dev dependency in the project only.

Create a npm script in package.json called gulp that runs Gulp.

"gulp": "gulp"

Using the sample gulp tasks in the readme

var gulp = require('gulp-param')(require('gulp'), process.argv);

gulp.task('dep', function(debug) {
  console.log(debug); // => true
});

gulp.task('build',  function(debug, tag) {
  console.log(debug); // => true
  console.log(tag); // => 'v1.0.0'
});

Output is:

$ npm run gulp build --debug --tag v1.0.0

> testproj@0.0.0 gulp C:\Development\projects\testproj
> gulp "build"

[16:12:27] Using gulpfile C:\Development\projects\testproj\gulpfile.js
[16:12:27] Starting 'build'...
undefined
undefined

Node version 6.9.0
Windows 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions