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');
oz: {
// comming soon...
},
ozma: {
testapp: {
src: 'tests/js/main.js', // same as 'ozma tests/js/main.js'
saveConfig: false, // true for default ('ozconfig.json'), or string for specified path and file name
debounceDelay: 3000, // see [1]
config: { // or existing configuration file, same as option '--config'
baseUrl: "tests/js/",
distUrl: "tests/.tmp/js/",
loader: "lib/oz.js",
disableAutoSuffix: true
}
}
}
[1]: fix for built-in watch
For a full list of possible options, see the grunt.js example.
Execute the following command from ./
directory
grunt ozma:testapp
See tests/dist/js/main.js
Then execute:
grunt
See tests/index.html
and tests/static/js/
See OzJS References
Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.