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

grunt-jasmine-bundle

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jasmine-bundle

[![Build Status](https://travis-ci.org/testdouble/grunt-jasmine-bundle.png)](https://travis-ci.org/testdouble/grunt-jasmine-bundle)

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25
decreased by-30.56%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-jasmine-bundle

Build Status

An opinionated little grunt task for running Jasmine specs of JavaScript/CoffeeScript written to run under Node.js.

It delegates to minijasminenode and includes the following goodies without you even asking:

Usage

Check out the included example project for a minimal realistic usage.

Options

  • helpers - a path, glob string, or array of paths and glob strings to all of your spec helpers in the build. These will be loaded prior to your specs (default is "spec/helpers/**/*.{js,coffee}").
  • specs - a path, glob string, or array of paths and glob strings to all of your specs themselves (default is "spec/**/*.{js,coffee}").
  • minijasminenode - a configuration object that will be passed to minijasminenode in accordance to whatever options it accepts.

No configuration is necessary if the defaults work for you. A simple config might be as small as this, however:

grunt.loadNpmTasks("grunt-jasmine-bundle")

grunt.initConfig({
  spec: {
    unit: {
      options: {
        minijasminenode: {
          showColors: true
        }
      }
    }
  }
});

Multiple builds

grunt-jasmine-bundle is a multi-task, which means that, if you choose, you can set up multiple builds via configuration. Something like this ought to work:

grunt.initConfig({
  spec: {
    options: {
      minijasminenode: {
        showColors: true
      }
    },
    unit: {
      options: {
        helpers: ["shared/helpers/**/*.{js,coffee}", "test/helpers/**/*.{js,coffee}"],
        specs: "test/**/*.{js,coffee}"
      }
    },
    e2e: {
      options: {
        helpers: ["shared/helpers/**/*.{js,coffee}", "e2e/helpers/**/*.{js,coffee}"],
        specs: "e2e/**/*.{js,coffee}"
      }
    }
  }
});

Keywords

FAQs

Package last updated on 28 Jun 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