https://github.com/phated/grunt-dojo
Build Dojo inside a Grunt task
https://github.com/phated/grunt-dojo
Last synced: 6 months ago
JSON representation
Build Dojo inside a Grunt task
- Host: GitHub
- URL: https://github.com/phated/grunt-dojo
- Owner: phated
- License: mit
- Created: 2012-11-13T04:43:41.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-07-30T17:35:53.000Z (over 7 years ago)
- Last Synced: 2024-12-27T10:01:07.123Z (about 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 32
- Watchers: 10
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
- awesome-dojo - grunt-dojo - Build Dojo inside a Grunt task (Packages, libraries and scripts)
README
# grunt-dojo
Build Dojo inside a Grunt task
## Compatibility
grunt-dojo `>=0.2.0` works with Grunt `~0.4.0`
For Grunt `~0.3.0`: use `grunt-dojo@0.1.3`
## Getting Started
Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-dojo`
Then add this line to your project's `grunt.js` gruntfile:
```javascript
grunt.loadNpmTasks('grunt-dojo');
```
[grunt]: http://gruntjs.com/
[getting_started]: https://github.com/gruntjs/grunt/blob/master/docs/getting_started.md
## Usage
```javascript
dojo: {
dist: {
options: {
dojo: 'path/to/dojo.js', // Path to dojo.js file in dojo source
load: 'build', // Optional: Utility to bootstrap (Default: 'build')
profile: 'app.profile.js', // Profile for build
profiles: [], // Optional: Array of Profiles for build
appConfigFile: '', // Optional: Config file for dojox/app
package: '', // Optional: Location to search package.json (Default: nothing)
packages: [], // Optional: Array of locations of package.json (Default: nothing)
require: '', // Optional: Module to require for the build (Default: nothing)
requires: [], // Optional: Array of modules to require for the build (Default: nothing)
action: '', // Optional: Build action, release, help. clean has been deprecated.
cwd: './', // Directory to execute build within
dojoConfig: '', // Optional: Location of dojoConfig (Default: null),
// Optional: Base Path to pass at the command line
// Takes precedence over other basePaths
// Default: null
basePath: '',
ignoreErrors: true // Options (default: false): Grunt task returns successful even if there are errors in the dojo build
}
},
options: {
// You can also specify options to be used in all your tasks
dojo: 'path/to/dojo.js', // Path to dojo.js file in dojo source
load: 'build', // Optional: Utility to bootstrap (Default: 'build')
profile: 'app.profile.js', // Profile for build
profiles: [], // Optional: Array of Profiles for build
appConfigFile: '', // Optional: Config file for dojox/app
package: '', // Optional: Location to search package.json (Default: nothing)
packages: [], // Optional: Array of locations of package.json (Default: nothing)
require: '', // Optional: Module to require for the build (Default: nothing)
requires: [], // Optional: Array of modules to require for the build (Default: nothing)
action: '', // Optional: Build action, release, help. clean has been deprecated.
cwd: './', // Directory to execute build within
dojoConfig: '', // Optional: Location of dojoConfig (Default: null),
// Optional: Base Path to pass at the command line
// Takes precedence over other basePaths
// Default: null
basePath: '',
ignoreErrors: true // Options (default: false): Grunt task returns successful even if there are errors in the dojo build
}
}
```
## Contributing
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][grunt].
## Release History
_(Nothing yet)_
## License
Copyright (c) 2013 Blaine Bublitz
Licensed under the MIT license.