New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-npawify

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-npawify

NPAW's Gulp builder that packs browserify with sourcemaps, uglify and license

  • 1.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

gulp-npawify

js-standard-style

Gulp builder that packs browserify with sourcemaps, uglify and license

Install

npm install --save-dev gulp-npawify

Use

var gulp = require('gulp')
var npawify = require('gulp-npawify')

var options = {
  entry: 'src/youboralib.js',
  output: 'youboralib.min.js'
}

gulp.task('build', npawify(options))
gulp.task('watch', npawify(options, { watch: true })
gulp.task('default', ['build'])

Note: npawify supports multiple arguments, that will be merged using assign. ie: npawify(options, { watch: true }).

Options

npawify receives an options object, that can receive:

  • entry: Name of the entry file. Default: 'src/index.js'.
  • output: Name of the output file. Default: 'app.min.js'.
  • dest: Name of the output folder. Default: 'dist/'.
  • standalone: Browserify standalone option. Default: undefined.
  • watch: If true, generated task will use watchify. Default: false.
  • uglify: If true, generated task file will be uglified. Default: true.
  • postPipe: If a function is suplied, browserify will pipe into that. ie: postPype: browserSync.stream. Default: false.
  • license: String containing license text. Default: undefined.
  • transforms: Collection of transforms to apply. ie: [{ name: 'hbsfy', options: {} }] Default: '[]'.

npawify.sass

Similar to what it does with browserify, npawify includes a pipeline for sass, sass-glob and autoprefixer.

gulp.task('build', npawify.sass({ entry: '*.scss' }))
  • entry: Array of the entry files, supports globs. Default: ['src/css/*.scss'].
  • dest: Name of the output folder. Default: 'dist/'.
  • uglify: If true, generated task file will be compressed, nested otherwise. Default: true.
  • license: String containing license text. Default: undefined.
  • includePaths: Include paths. Default: ['node_modules'].
  • autoprefixer: Autoprefixer options. Default: { browsers: ['last 2 versions', '> 1%'] }.

npawify.assign

npawify comes with npawify.assign() which is a replica of Object.assign for its use with older Node versions.

npawify.analyze

This npawify function analyzes an adapter and returns an object containing its findings.

npawify.copyfiles

Exposes copyfiles package.

Keywords

FAQs

Package last updated on 27 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc