Skip to content
grunt tasks for oz.js and ozma.js
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tasks
tests
.gitignore
Gruntfile.js
README.md
package.json

README.md

grunt-ozjs

  • OzJS is a microkernel for modular javascript, a toolchain for modern front-end, a micro-framework for growable WebApp.
  • Ozma is an intelligent autobuild tool for OzJS.

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: {
    // 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.

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

More References

See OzJS Project Homepage

Release History

See OzJS Release History

License

Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.

Something went wrong with that request. Please try again.