Skip to content
 
 

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 with: npm install grunt-dojo

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-dojo');

Usage

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
      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)
      cwd: './', // Directory to execute build within
      dojoConfig: '' // Optional: Location of dojoConfig (Default: null)
    }
  },
  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
    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)
    cwd: './', // Directory to execute build within
    dojoConfig: '' // Optional: Location of dojoConfig (Default: null)
  }
}

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.

Release History

(Nothing yet)

License

Copyright (c) 2013 Blaine Bublitz Licensed under the MIT license.

About

Build Dojo inside a Grunt task

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages