0.2.10 • Published 9 years ago

smooshjs v0.2.10

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

smooshjs

A tool to compile a collection of javascript modules into a single library.

Install

npm install -g smooshjs

Usage (command line)

smoosh [-cjs, -amd] <path-to-main-module.js> [path-to-output]

For example:

smoosh -cjs test/resources/cjs.entrypoint.js test/output/

Usage (within a node app/script)

var smooshjs = require("smooshjs");

var result = smooshjs("-cjs", "-amd", "path/to/main.js", "path/to/output.js");

if (result.code === 0){
    // everything went ok!
} else {
    // something failed
    console.error(result.output);
}

Tests

To run all the tests

node mocha test
0.2.10

9 years ago

0.2.9

10 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago