Get ordered project ExtJS dependencies
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-extdeps --save-dev
The "extdeps" task
This task builds an ordered array of dependency paths by booting up your application in debug mode and inspecting the Ext.Loader history.
The extdeps task creates a variable named
extdeps_[target] which is an ordered array of file paths you can use in subsequent tasks.
For flexibility the extdeps task doesn't add
ext-debug.js to the list of paths it creates. This means you can add it as a static script on a CDN or something. Hence, if you want to concat and minify everything then you'll need to manually add
ext-debug.js to your concat files.
In your project's Gruntfile, add a section named
extdeps to the data object passed into
REQUIRED. Your application entry point.
REQUIRED. Your application namespace.
Path to ExtJS.
Path to your app.
Path to your the root of your website (used when depending on namespaces not belonging to your application).
Path to your app.js file.
In this example, custom options are used to allow the plugin to be used when the frontend files are not in the same directory as the Gruntfile.
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.
- 2013-09-11 v0.0.6 Updated dependencies, fixed github URLs in package.json
- 2013-04-15 v0.0.4 Brand new