2.1.0 • Published 9 years ago

apeman-task-exorcist v2.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

apeman-task-exorcist

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to externalizes the source map from javascript files.

Installation

$ npm install apeman-task-exorcist --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-exorcist */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $tasks: {
    // Define your own task.
    'react:exorcist': require('apeman-task-exorcist')(
      'public/js/bundle.js',
      'public/js/bundle.js',
      'public/js/bundle.js.map',
      {
        //Options
      }
    )
  }
}

Then,

$ apeman task my-task-01

Signature

define(srcFile, destFile, mapFile, options) -> function

Externalizes the source map from javascript files.

Args
NameTypeDefaultDescription
srcFilestringSource file which has inline source map.
destFilestringsrcFileDestination file after extracted.
mapFilestringdestFile+".map"Source map file to extract.
optionsobjectOptional settings.

License

This software is released under the MIT License.

Links

2.1.0

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago