npm.io
1.0.1 • Published 10 years ago

zkflow-task-jasmine

Licence
MIT
Version
1.0.1
Deps
5
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

ZKflow task jasmine

Jasmine gulp task in ZKflow format. Useful for testing your node app. It uses jasmine API directly, and in watch mode it runs jasmine in separate process to avoid require cache invalidation problem.

Made by Zaklinacze Kodu

Shields

npm npm npm
Travis Code Climate
David David
GitHub forks GitHub stars GitHub followers

Installation

npm install --save zkflow-task-jasmine zkflow gulp

Example

ZKflow task jasmine is used in ZKflow for node

Quickstart

Just put this code in gulpfile.js

require('zkflow')({
  'jasmine': {
    task: require('zkflow-task-jasmine')
  }
}, require('gulp'), {})

Usage

Make sure you understand how ZKflow works

Default options
require('zkflow')({
  'jasmine': {
    task: require('zkflow-task-jasmine'),
    globs: [
      'src/*.js',
      'src/**/*.js'
    ],
    jasmine: {
      spec_dir: './src/',
      spec_files: [
        '*Spec.js',
        '**/*Spec.js'
      ]
    }
  }
}, require('gulp'), {})
globs

Globs that will be used to watch file changes.

jasmine

this will be passed to jasmine.loadConfig(jasmine). Check jasmine documentation for more informations

Sponsors

Street Team

Zaklinacze Kodu

Keywords