benderjs-amd
Basic AMD support for Bender.js using Require.js.
Installation
npm install benderjs-amd
Usage
Add benderjs-amd
to the plugins
array in your bender.js
configuration file:
var config = applications: ... browsers: ... plugins: 'benderjs-amd' // load the plugin tests: ...; moduleexports = config;
Add Require.js configuration in amd
field:
var config = applications: ... // add your Require.js configuration 'amd': baseUrl: '/foo/bar/' paths: foo: 'baz/foo' browsers: ... plugins: 'benderjs-amd' // load the plugin tests: ...;
From now on the you can use bender.require
to load scripts to test:
bender;
License
MIT, for license details see: LICENSE.md.