Expose polyfills option to inject additional libraries above core jasmine
scripts.
This commit is contained in:
parent
e954033776
commit
ad0310bfd9
@ -71,6 +71,11 @@ Type: `String|Array`
|
||||
|
||||
Non-source, non-spec helper files. In the default runner these are loaded after `vendor` files
|
||||
|
||||
#### options.polyfills
|
||||
Type: `String|Array`
|
||||
|
||||
Third party polyfill libraries like json2 that are loaded at the very top before anything else. es5-shim is loaded automatically with this library.
|
||||
|
||||
#### options.styles
|
||||
Type: `String|Array`
|
||||
|
||||
@ -314,4 +319,4 @@ for more information on the RequireJS template.
|
||||
|
||||
Task submitted by [Jarrod Overson](http://jarrodoverson.com)
|
||||
|
||||
*This file was generated on Sat Aug 02 2014 22:57:46.*
|
||||
*This file was generated on Sun Aug 03 2014 19:28:29.*
|
||||
|
@ -77,6 +77,7 @@ module.exports = function(grunt) {
|
||||
specs : [],
|
||||
helpers : [],
|
||||
vendor : [],
|
||||
polyfills : [],
|
||||
outfile : '_SpecRunner.html',
|
||||
host : '',
|
||||
template : __dirname + '/jasmine/templates/DefaultRunner.tmpl',
|
||||
|
@ -72,7 +72,7 @@ exports.init = function(grunt, phantomjs) {
|
||||
|
||||
var polyfills = [
|
||||
tempDir + '/es5-shim.js'
|
||||
];
|
||||
].concat(options.polyfills);
|
||||
|
||||
var jasmineCore = [
|
||||
tempDir + '/jasmine.js',
|
||||
|
Loading…
Reference in New Issue
Block a user