7fd976a2a1
Passing console.log from browser to verbose grunt logging Support for templates as separate node modules Removed internal requirejs template (see grunt-template-jasmine-requirejs) General refactor
45 lines
774 B
Markdown
45 lines
774 B
Markdown
|
|
|
|
## Basic Use
|
|
|
|
Sample configuration to run Pivotal Labs' example Jasmine application.
|
|
|
|
```js
|
|
// Example configuration
|
|
grunt.initConfig({
|
|
jasmine: {
|
|
pivotal: {
|
|
src: 'src/**/*.js'
|
|
options: {
|
|
specs: 'spec/*Spec.js',
|
|
helpers: 'spec/*Helper.js'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
## Supplying a custom template
|
|
|
|
Supplying a custom template to the above example
|
|
|
|
```js
|
|
// Example configuration
|
|
grunt.initConfig({
|
|
jasmine: {
|
|
customTemplate: {
|
|
src: 'src/**/*.js',
|
|
options: {
|
|
specs: 'spec/*Spec.js',
|
|
helpers: 'spec/*Helper.js'
|
|
template: 'custom.tmpl'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
## Sample RequireJS usage
|
|
|
|
Please see the [grunt-template-jasmine-requirejs](https://github.com/jsoverson/grunt-template-jasmine-requirejs)
|