Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
lineman-bower
Advanced tools
This is a plugin to make it easy to use Bower in conjunction with a Lineman app.
First, add the plugin to your lineman project:
$ npm install lineman-bower --save-dev
When you install lineman-bower, it should create a default .bowerrc
(unless one already exists) with the following
vendor directory. Feel free to customize this directory to a different location if you like.
{
"directory": "/vendor/bower"
}
Third, you'll want to make sure that your bower dependencies don't get checked
into git, so add them to your .gitignore
:
/vendor/bower
Next, you'll need a bower.json
to start pulling down dependencies. This can be completed by executing bower init
from the command prompt:
{
"name": "my-app",
"version": "0.0.1",
"dependencies": {
"jquery": "~1.9.0"
}
}
Finally, you'll want to make sure that jquery is made available when Lineman
concatenates your vendor JavaScript libraries. You can do this by extending the
js.vendor
configuration in config/files.js
like so:
module.exports = require(process.env["LINEMAN_MAIN"]).config.extend("files", {
js: {
vendor: [
"vendor/bower/jquery/jquery.js",
"vendor/js/**/*.js" //Note that this glob remains for traditional vendor libs
]
}
});
Now, when you run lineman run
and visit localhost:8000,
you should see Bower install jQuery and have access to the library on the page.
FAQs
A Bower plugin for Lineman
The npm package lineman-bower receives a total of 2,262 weekly downloads. As such, lineman-bower popularity was classified as popular.
We found that lineman-bower demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.