Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
grunt-bower-organiser
Advanced tools
Organises Bower components according to their types
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-bower-organiser
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-bower-organiser');
To your grunt.js gruntfile, add:
bowerOrganiser: {
options: {
includeName: true
},
mapping: {
js: 'lib',
css: 'css',
less: 'less'
}
}
If you want to move specific files in modules to a different folder than the mappings, use the following syntax:
bowerOrganiser: {
options: {
includeName: true
},
mapping: {
js: 'lib',
css: 'css',
less: 'css/less'
},
specifics: {
example-module : {
'main.less' : 'css'
}
}
}
Plugin now accepts folders in the main
section of component.json
.
{
"name": "some-module",
"version": "1.0.0",
"main": "./less/",
"dependencies": {},
"gitHead": "",
"_id": "some-module@1.0.0",
"readme": "",
"repository": {
"type": "git",
"url": ""
}
}
will copy all the files in the '''less''' folder over to the destination specified in the mappings.
The plugin will use the file extension as a directory if there are no mappings provided for a certain extension.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
main
section of component.json
.Copyright (c) 2013 Mehdi Avdi
Licensed under the MIT license.
FAQs
Organises Bower components according to their types
We found that grunt-bower-organiser 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.