3.0.0 • Published 8 years ago

refill-task-browserify v3.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

Refill task browserify

Browserify task in refill format

Facebook

Shields

npm npm npm Travis bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code GitHub forks GitHub stars GitHub watchers

Installation

npm install --save refill-task-browserify refill gulp

Example

Refill taks browserify is used in Refill for Angular

Usage

gulpfile.js

require('refill')({
  js: {
    task: require('refill-task-browserify')
  }
}, require('gulp'), mode, getOutputDir)

mode

Shared configuration object. Properties used

{
  env: 'dev',                                 // 'prod', 'test'
  watch: true,                                // false
  angularMainModuleProdFallback: undefined    // this will be set to true if test or dev entries are not found
}

getOutputDir

function that will return a base for output dir, for example

function () {
  return 'dist/';
}

in this case js will be saved in dist/index.js file

Default options

{
  devEntries: 'src/dev/index.js',
  prodEntries: 'src/index.js',
  testEntries: 'src/test/index.js',
  uglify: undefined,                    // gulp-uglify options
  browserifyTransforms: [
    [babelify, {
      presets: [babelPresetEs2015]
    }],
    browserifyNgannotate
  ]
}

Changelog

Changelog at github

Sponsors