An open API service indexing awesome lists of open source software.

https://github.com/gulpjs/undertaker-common-tasks

Proof-of-concept custom registry that pre-defines tasks.
https://github.com/gulpjs/undertaker-common-tasks

Last synced: 8 months ago
JSON representation

Proof-of-concept custom registry that pre-defines tasks.

Awesome Lists containing this project

README

          





# undertaker-common-tasks

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Proof-of-concept custom registry that pre-defines tasks.

## Example

```js
var gulp = require('gulp');
var CommonTasks = require('undertaker-common-tasks');

gulp.registry(new CommonTasks({ port: 1337, buildDir: './dist' }));

// 'clean' & 'series' were defined by the registry
gulp.task('default', gulp.series('clean', 'serve'));
```

## API

### CommonTasksRegistry([options])

Constructor for the registry. Pass an instance of this registry to `gulp.registry`.

#### options

- `port` - the port to start a static webserver on.
- `buildDir` - the output directory (clean deletes this directory).

## License

MIT

[downloads-image]: https://img.shields.io/npm/dm/undertaker-common-tasks.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/undertaker-common-tasks
[npm-image]: https://img.shields.io/npm/v/undertaker-common-tasks.svg?style=flat-square
[ci-url]: https://github.com/gulpjs/undertaker-common-tasks/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/undertaker-common-tasks/dev.yml?branch=master&style=flat-square
[coveralls-url]: https://coveralls.io/r/gulpjs/undertaker-common-tasks
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/undertaker-common-tasks.svg?style=flat-square