grunt-ozjs
OzJS is a microkernel for modular javascript, with bundles of powerful yet micro-framework friendly AMD modules.
Ozma is an autobuild tool for OzJS based WebApp
Getting Started
Install this grunt plugin next to your project's grunt.js gruntfile with:
npm install grunt-ozjs
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-ozjs');
Config Example
oz: {
},
ozma: {
dist: {
src: 'tests/js/main.js',
config: {
baseUrl: "tests/js/",
distUrl: "tests/.tmp/js/",
loader: "lib/oz.js",
disableAutoSuffix: true
},
save_config: false,
debounceDelay: 3000
}
}
Options
For a full list of possible options, see the grunt.js example.
Examples
Execute the following command from ./
directory
grunt ozma:dist
See tests/.tmp/js/main.js
Then execute:
grunt
See tests/index.html
and tests/dist/js/
License
Copyright (c) 2012 dexteryy
Licensed under the MIT license.