jspm depcachevia Grunt in 10 seconds
This is a super simple plugin that lets you inject your JSPM dependencies into your config.js file for HTTP/2-enabled websites. You should be pretty familiar with JSPM (specifically the
jspm depcache command) before using this plugin. To get started, install to your dev dependencies:
npm install grunt-jspm-depcache --save-dev
In your project's Gruntfile, add the
This is the equivalent of running
jspm depcache main.js from your project root:
The list of files can also be an array, e.g.
The above is equivalent to running this from your project root:
$ jspm depcache main.js$ jspm depcache another_module.js
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
v0.1.1 - Handle errors thrown by JSPM v0.1.0 - Initial release