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

grunt-bower-busterjs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-bower-busterjs

Automagically wire-up installed Bower components into your Buster.JS config

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

grunt-bower-busterjs

Automagically wire-up installed Bower components into your Buster.JS config

Adapted from grunt-bower-requirejs which does the same for RequireJS. Thanks!

Getting Started

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, install this plugin with this command:

npm install grunt-bower-busterjs --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-bower-busterjs');

Example usage

grunt.initConfig({
   bowerbuster: {
     path: 'bowerbuster.json'     
   },
   buster: {
        test: {
            config: 'buster.js'
        },
        server: {
            port: 1111
        }
   }
});

grunt.loadNpmTasks('grunt-bower-busterjs');
grunt.loadNpmTasks('grunt-buster');

grunt.registerTask('test', ['bowerbuster', 'buster']);

Documentation

When the bowerbuster task is run generates a JSON file (default name: bowerbuster.json) with the installed Bower components in it.

This file can then be loaded in your buster.js:

var fs = require('fs');

var sources = JSON.parse(fs.readFileSync('bowerbuster.json', 'utf8'));
sources.push('src/**/*.js'); // add local sources under test

and then use these sources in the buster config:

config["my tests"] = {
  ...
  sources: sources
  ...
};

You trigger this task from another task in your Gruntfile or through the CLI: grunt bowerbuster

path

Optional
Type: String

Specify a relative path to the .json file to dump.

Options

exclude

Default: []
Type: Array

Specify components to be excluded from being added to the .json file.

License

BSD license

Keywords

FAQs

Package last updated on 08 May 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