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.
- Host: GitHub
- URL: https://github.com/gulpjs/undertaker-common-tasks
- Owner: gulpjs
- License: mit
- Created: 2014-09-14T00:03:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T02:33:34.000Z (about 3 years ago)
- Last Synced: 2024-10-29T15:14:44.397Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 7
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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