Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
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.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: '[]'.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.
FAQs
NPAW's Gulp builder that packs browserify with sourcemaps, uglify and license
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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.