Fetching contributors…
Cannot retrieve contributors at this time
75 lines (57 sloc) 1.96 KB

Installation

Main | Clazz declaration >

ClazzJS is available both on client and server (NodeJS) sides. Follow next instractions to install it.

NodeJS

Using npm run next command:

$ npm install clazz-js

or if you want to install it globally:

$ npm install -g clazz-js

Then use its API to get necessary functionality:

var clazz     = require('clazz-js').clazz;
var namespace = require('clazz-js').namespace;
var meta      = require('clazz-js').meta;

Enjoy!

Browser

To install ClazzJS you can use bower or can just manually download library from repository.

Bower

Run next command from your project directory:

$ bower install ClazzJS

Then add next tag to html header:

<script type="text/javascript" src="bower_components/ClazzJS/dist/ClazzJS.js"></script>

or if you want minified version:

<script type="text/javascript" src="bower_components/ClazzJS/dist/ClazzJS.min.js"></script>

Manually downloading

Download full or minified version of the library. Than put library into your project and add next tag to html header:

<script type="text/javascript" src="path/to/clazz-js-library.js"></script>

This add ClazzJS variable to your global scope. Use its API to get necessary functionality:

<script type="text/javascript">
  var clazz     = ClazzJS.clazz;
  var namespace = ClazzJS.namespace;
  var meta      = ClazzJS.meta;
</script>

Enjoy!

Main | Clazz declaration >

githalytics.com alpha