task-registry-resource

Resource Task is an abstract [resource][resource-file] processing task.

Usage no npm install needed!

<script type="module">
  import taskRegistryResource from 'https://cdn.skypack.dev/task-registry-resource';
</script>

README

task-registry-resource npm

Build Status Code Climate Test Coverage downloads license

Resource Task is an abstract resource processing task. It's registered to task-registry which is a task register and manager. It adds the src property for the file patterns to limit the files to be processed. the passed aOptions is a resource file object.

Usage

ResourceTask  = require 'task-registry-resource'
Task          = require 'task-registry'
register      = Task.register
aliases       = Task.aliases

class TestResourceTask
  register TestResourceTask, ResourceTask
  aliases TestResourceTask, 'Test', 'test'

  constructor: -> return super
  _executeSync: sinon.spy (aFile)->aFile

API

TODO

License

MIT