Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Packages code for the browser as Node modules.
JavaScript CoffeeScript HTML

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
doc
docs
node_modules
src
.gitignore
LICENSE
README.md
Rakefile
package.json

README.md

Ark

Ark allows you package up your browser Javascript using the Node module system. You can use require just like in Node. Put another way, you can reuse server-side code in the browser and still use require and NPM.

Installation

npm install -g ark

Usage

Generate a manifest of what will be packaged up:

ark manifest --source cs/lib/web > manifest.json

Then you can package up the manifest like this:

ark package < manifest.json >  web/js/web-api.js

Or, in one step:

ark package --source cs/lib/web > web/js/web-api.js

Note You must have a package.json in your --source directory that has a main entry point defined.

Status

Ark is currently under development and is not ready for production use.

Something went wrong with that request. Please try again.