
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
grunt-bower-release
Advanced tools
#grunt-bower-release
####Push tagged Bower package releases to endpoint
##Installation
Install npm package:
npm install grunt-bower-release --save-dev
Add the following to your project's Gruntfile
in order to load the task:
grunt.loadNpmTasks('grunt-bower-release');
##Usage
This task is intended primarily for packages which are targeted at both CommonJS ecosystems such as Node.js, as well as web browsers. As such, it is expected that a package.json is available in the source tree, and that we are releasing built assets intended for the browser. This is as opposed to maintaining a separate repository for this process.
In order to make use of this package, several things must be specified:
As such, a Gruntfile
may contain the following:
bowerRelease: {
options: {
main: 'library.min.js',
dependencies: {
'jquery': '~2.0.3'
}
},
stable: {
options: {
endpoint: 'git://github.com/someone/some-package-bower-stable.git',
packageName: 'some-package-stable.js',
stageDir: 'staging-stable/'
},
files: [
{
expand: true,
cwd: 'build/stable/',
src: ['library.js', 'library.min.js', 'css/**/*.css'],
}
]
},
devel: {
options: {
endpoint: 'git://github.com/someone/some-package-bower-devel.git',
packageName: 'some-package-devel.js',
stageDir: 'staging-devel/'
},
files: [
{
expand: true,
cwd: 'build/devel/',
src: ['library.js', 'library.min.js', 'css/**/*.css'],
}
]
}
}
This will enable the publishing of two builds: stable
, and devel
, via bowerRelease:stable
and bowerRelease:devel
, respectively. In both cases, bowerRelease.options
are merged into target.options
, which means that for both releases, we specify a main
file 'library.min.js', and specify a bower dependency on jquery#~2.0.3
. The dependencies will be added to the dependencies in the template bower.json
, while the main
files will replace those in the template, if any.
It's super simple stuff, and I hope some people might find it useful!
##Options
endpoint
-- A bower endpoint. Currently, only git repositories are supported. Please contribute different endpoint types if you need them!packageName
-- The bower package name. This overrides name
in bower.json
stageDir
-- A staging directory where the repository is built and tagged.main
-- Enables the grunt task to override bower.json
's main
parameter. This will be ignored if it is not a string or an array.dependencies
-- Enables the grunt task to add dependencies to a build.extendDependencies
-- If true, the depencies from the source repository will be extended with the grunt options dependencies.branchName
-- (Optional) Specify the branch used for the endpoint.Files must currently be specified per-task, which is unfortunate and will hopefully be fixed soon.
They may be specified as per the guidelines in Configuring files
##License
The MIT License (MIT)
Copyright (c) 2013 Caitlin Potter and Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Automatically push tagged Bower package releases to endpoint
The npm package grunt-bower-release receives a total of 14 weekly downloads. As such, grunt-bower-release popularity was classified as not popular.
We found that grunt-bower-release 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.