UNPKG

grunt-ozjs

Version:

grunt tasks for oz.js and ozma.js

87 lines (58 loc) 1.84 kB
<!--- layout: intro title: grunt-ozjs --> # grunt-ozjs > * [OzJS](https://github.com/dexteryy/OzJS) is a microkernel for modular javascript, a toolchain for modern front-end, a micro-framework for growable WebApp. > * [Ozma](https://github.com/dexteryy/ozma.js) is an intelligent autobuild tool for OzJS. ## Getting Started Install this [grunt] plugin next to your project's [grunt.js gruntfile][getting_started] with: ``` npm install grunt-ozjs ``` Then add this line to your project's `grunt.js` gruntfile: ```javascript grunt.loadNpmTasks('grunt-ozjs'); ``` [grunt]: http://gruntjs.com/ [getting_started]: https://github.com/gruntjs/grunt/blob/master/docs/getting_started.md #### Config Example ```javascript oz: { // coming 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 config: { // or existing configuration file, same as option '--config' baseUrl: "tests/js/", distUrl: "tests/.tmp/js/", loader: "lib/oz.js", disableAutoSuffix: true } } } ``` #### Options For a full list of possible options, [see the grunt.js example](https://github.com/dexteryy/grunt-ozjs/blob/master/grunt.js). ## Examples 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/` ## Source code * [View on Github](https://github.com/dexteryy/grunt-ozjs) ## More References See [OzJS Project Homepage](http://ozjs.org/) ## Release History See [OzJS Release History](http://ozjs.org/#release) ## License Copyright (c) 2010 - 2013 dexteryy Licensed under the MIT license.