karma-jspm
karma-jspm copied to clipboard
Two more possible config files (jspm 0.17-beta.17)
The latest jspm version (0.17-beta.17, at the time of writing) adds support for more config files:
- a separate config file for the devDependencies (
jspm.dev.js
for example) - a separate config file for Node environments
This brings all the config files to:
- config:
jspm.config.js
- browser:
jspm.browser.js
- dev:
jspm.dev.js
- node:
jspm.node.js
(not sure about the default name here, haven't used it)
This would need to extra karma-jspm options, next to config
and browser
: dev
and node
.
If I can find the time, I should be able to make a PR for this.
You might wish to amend the README as follows:
Clarify:
You may have named your jspm config.js file or jspm_packages directory something else. In this case simply add that to the jspm configuration in karma.conf.js:
to read:
If your jspm config file is not named config.js or your jspm package directory is not jspm_packages, then add your jspm locations to the jspm configuration in karma.conf.js, e.g.:
The standard jspm config file is now 'jspm.config.js', which must be set in the karma config in order for karma-jspm to pick it up. The README wording is a bit confusing after this jspm change.