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

grunt-y-u-no-bundle

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-y-u-no-bundle

Grunt task for y-u-no-bundle

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-y-u-no-bundle

Grunt task for asserting that all of your AMD driver scripts are being bundled by r.js

Getting Started

This plugin requires Grunt ~0.4.5

npm install grunt-y-u-no-bundle --save-dev

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

grunt.loadNpmTasks('grunt-y-u-no-bundle');

Overview

The plugin will throw an error if there are driver scripts in your codebase that aren't excluded and aren't in the modules section of your requirejs configuration.

Usage

grunt.initConfig({
  y_u_no_bundle: {
    app: {
      root: 'path/to/my/js',
      config: 'path/to/my/config',
      exclude: [
        // If you really don't want this particular script bundled
        'a.js',
        '!vendor/**/*.js'
      ]
    }
  },
});

Options

options.root

Type: String

The path to all of your JavaScript files

options.config

Type: String

The path to your requirejs config (containing the modules attribute)

options.exclude

Type: String[]

A list of files to exclude as driver scripts that you really don't want bundled for whatever reason.

Keywords

FAQs

Package last updated on 29 Apr 2015

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