gulp-webtask

0.0.2 • Public • Published

gulp-webtask

NPM version Build Status Dependency Status devDependency Status

Gulp plugin to help you with Webtask development.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-webtask

Usage

Define a deploy task in your gulpfile.js (as below) which can be used to create or update a webtask.

Configuring a single webtask

var gulp = require('gulp');
var wt   = require('gulp-webtask');
 
gulp.task('deploy', function () {
  return gulp.src('./task.js')
    .pipe(wt.create({
      token: process.env('YOUR-WEBTASK-TOKEN'),
      name: 'task'
    }));
});

Configuring multiple webtasks

var gulp = require('gulp');
var wt   = require('gulp-webtask');
 
gulp.task('deploy', function () {
  return gulp.src('./webtasks/*.js')
    .pipe(wt.create({
      token: process.env('YOUR-WEBTASK-TOKEN'),
      name: ['task1', 'task2']
    }));
});

NOTE: It there is no name defined for task it will be skipped.

Now, you should be able to call your task by doing:

gulp deploy

Options

options.token

Type: String
Default: null

Your webtask token. For more information about how to get your token check Webtask.io or wt-cli.

options.name

Type: String or Array Default: null

The name for your webtask or a collection of names for multiple creation.

options.secrets

Type: Object
Default: {}

A collection of secret parameters. For more information check Passing Secrets to Webtask Code.

options.params

Type: Object
Default: {}

A collection of parameters.

Roadmap

  • Add support for Log streaming

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i gulp-webtask

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jcenturion