Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e41762e15 | ||
|
|
e37a5de79b | ||
|
|
3ee63316ed | ||
|
|
4d7b3a8680 |
@@ -5,15 +5,16 @@ This package provides tasks to work with npm.
|
||||
a very simple example looks like this
|
||||
|
||||
```js
|
||||
require('gulp-tasks-npm')();
|
||||
var gulp = require('gulp');
|
||||
require('gulp-tasks-npm')(gulp);
|
||||
|
||||
```
|
||||
|
||||
a more complex example may look like this
|
||||
|
||||
```js
|
||||
|
||||
require('gulp-tasks-npm'({
|
||||
var gulp = require('gulp');
|
||||
require('gulp-tasks-npm'(gulp, {
|
||||
|
||||
user: "username",
|
||||
password: "password",
|
||||
@@ -27,7 +28,7 @@ require('gulp-tasks-npm'({
|
||||
|
||||
# Api
|
||||
|
||||
## gulp-helper-npm(config)
|
||||
## gulp-helper-npm(gulp, config)
|
||||
|
||||
#### config
|
||||
|
||||
|
||||
2
index.js
2
index.js
@@ -12,7 +12,7 @@ module.exports = function(gulp, config){
|
||||
config.buildVersion = config.buildVersion || undefined;
|
||||
config.email = config.email || undefined;
|
||||
config.strictSsl = config.strictSsl || true;
|
||||
config.registry = config.registry || "https://registry.npmjs.org/";
|
||||
config.registry = config.registry || undefined;
|
||||
config.npmObj = config.npmObj || {
|
||||
registry: config.registry ,
|
||||
"strict-ssl": config.strictSsl,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gulp-tasks-npm",
|
||||
"version": "0.2.0",
|
||||
"version": "0.3.1",
|
||||
"description": "adds npm install and publish tasks to gulp",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user