Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-query-js
Advanced tools
This plugin provides automatic source maps, concatenation, minification and compiling with Babel.
JS plugin for gulp-query
This plugin provides automatic source maps, concatenation, minification and compiling with Babel.
P.S. Try gulp-query-js-buble with the blazing fast, batteries-included ES2015 compiler
npm install gulp-query gulp-query-js
Paste the code into your gulpfile.js
and configure it
let build = require('gulp-query')
, js = require('gulp-query-js')
;
build((query) => {
query.plugins([js])
.js('src/js/app.js','js/','app')
// uses own babel config and creates with new name
.js('src/js/admin.js','js/undercover.js',{
babel: {
presets: ['env']
}
})
// Config as object
.js({
from: 'src/js/main.js',
to: 'js/',
name: 'main'
})
// Multiple files
.js(['src/js/app.js','src/js/main.js'],'js/')
// Multiple files and combine
.js(['src/js/app.js','src/js/main.js'],'js/concat.js')
;
});
And feel the freedom
gulp
gulp --production // For production (minification)
gulp watch // Watching change
gulp js // Only for js
gulp js:app // Only for app.js
gulp js:admin js:main watch // Watching change only for admin.js and main.js
...
.js({
name: "task_name", // For gulp js:task_name
from: "src/js/app.js", // ["src/js/f1.js", "src/js/f2.js"]
to: "js/", // set filename "js/concat.js" -- for concat or rename
source_map: true,
source_map_type: 'inline',
full: false, // if set true is without compress in prod
babel: {
presets: ['env']
}
})
FAQs
This plugin provides automatic source maps, concatenation, minification and compiling with Babel.
We found that gulp-query-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.