Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-bower-organiser

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-bower-organiser

Organises Bower components according to their types

  • 0.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by850%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-bower-organiser

Organises Bower components according to their types

Getting Started

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');

Documentation

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.

Contributing

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.

Release History

  • v.7.0 Grunt 0.4 compatible
  • v0.6.0 Added the ability to move specific files to different destinations than the ones declared in the mappings.
  • v0.5.0 Folder recursion bug fixes.
  • v0.4.0 options added to include package name when placing the assets.
  • v0.3.0 Plugin now accepts folders in the main section of component.json.

License

Copyright (c) 2013 Mehdi Avdi
Licensed under the MIT license.

Keywords

FAQs

Package last updated on 20 Feb 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc