apeman-task-subpack

apeman task to link sub packages

Usage no npm install needed!

<script type="module">
  import apemanTaskSubpack from 'https://cdn.skypack.dev/apeman-task-subpack';
</script>

README

apeman-task-subpack

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to link sub packages

This tasks creates a symbolic links into node_modules to avoid "require('../../../../') problem".

Installation

$ npm install apeman-task-subpack --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. Call the task via apeman task command.

Apemanfile.js

/** This is an example Apemanfile to use apeman-task-subpack */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $tasks: {
    // Define your own task.
    'lib:subpack': require('apeman-task-subpack')(
      'lib/**/package.json', {
        // Options
        ignore: 'node_modules'
      })
  }
}

Then,

$ apeman task my-task-01

Signature

define(pattern, options) -> function

apeman task to link sub packages

Args
Name Type Default Description
pattern string File name pattern.
options object Optional settings.
options.ignore string string[]

License

This software is released under the MIT License.

Links