Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
gulp-npawify
Advanced tools
NPAW's Gulp builder that packs browserify with sourcemaps, uglify and license
Gulp builder that packs browserify with sourcemaps, uglify and license
npm install --save-dev gulp-npawify
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 })
.
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.license
: String containing license text. Default: undefined.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 comes with npawify.assign()
which is a replica of
Object.assign
for its use with older Node versions.
This npawify function analyzes an adapter and returns an object containing its findings.
Exposes copyfiles
package.
[1.2.0] - 2017-01-26
FAQs
NPAW's Gulp builder that packs browserify with sourcemaps, uglify and license
The npm package gulp-npawify receives a total of 12 weekly downloads. As such, gulp-npawify popularity was classified as not popular.
We found that gulp-npawify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.