Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
grunt-glue-js
Advanced tools
Grunt task to build CommonJS modules for the browser using gluejs.
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-glue-js --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-glue-js');
Run this task with the grunt gluejs
command.
This task is designed to package CommonJS modules into one file for the browser. It directly depends on gluejs.
Type: String
Default:
The name of the global variable the package is exported to.
Setting it to App
will exports the package as window.App
.
In this example, grunt gluejs
(or more verbosely, grunt gluejs:app
) will package recursively every file in the directory public/scripts
to one single file: public/app.js
. The package will be available in a browser environement under one single global variable: App
.
// Project configuration.
grunt.initConfig({
gluejs: {
app: {
options: {
export: 'App'
},
src: 'public/scripts/**/*.js',
dest: 'public/app.js'
}
}
});
gluejs
as an npm
dep as requested fixes are now released.basepath
and main
options support.Task submitted by "ngryman" Nicolas Gryman
This file was generated on Sun Apr 28 2013 14:28:22.
FAQs
Grunt task to build CommonJS modules for the browser using gluejs.
The npm package grunt-glue-js receives a total of 1 weekly downloads. As such, grunt-glue-js popularity was classified as not popular.
We found that grunt-glue-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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.