Permalink
Browse files

change the build process

  • Loading branch information...
1 parent 0260ed6 commit d5fa8f34e700a3e6de2b805672a4014e37c8a45f @andrewrk committed Jul 11, 2012
Showing with 23 additions and 17 deletions.
  1. +3 −1 package.json
  2. +20 −16 readme.md
View
@@ -22,7 +22,9 @@
"temp": "~0.4.0"
},
"scripts": {
- "test": "node test.js"
+ "test": "node test.js",
+ "build": "coffee -bco . src/",
+ "watch": "coffee -wbco . src/"
},
"engines": {
"node": ">=0.6.8 <0.9.0"
View
@@ -19,6 +19,20 @@ In JavaScript, the `//depend` directive is used instead of `#depend`.
Be sure to install the languages you wish to use with `npm install -g`.
+## Command line usage
+
+When installed with `npm install jspackage -g`, a command line tool called
+`jspackage` will be made available.
+
+```
+Usage: jspackage input_file output_file [options]
+
+Available options:
+ -h, --help shows this help section
+ -w, --watch watch source files and recompile when any change
+ -l, --lib PATH add an additional search directory for source files
+```
+
## Features
* File extensions are automatically resolved, and in fact are not allowed in
@@ -34,20 +48,6 @@ Be sure to install the languages you wish to use with `npm install -g`.
they change.
* Ability to supply more source code search paths with `--lib`.
-## Command line usage
-
-When installed with `npm install jspackage -g`, a command line tool called
-`jspackage` will be made available.
-
-```
-Usage: jspackage input_file output_file [options]
-
-Available options:
- -h, --help shows this help section
- -w, --watch watch source files and recompile when any change
- -l, --lib PATH add an additional search directory for source files
-```
-
## Server example
```coffee
@@ -88,9 +88,13 @@ extensions['.lua'] =
## Developing jspackage
-To compile and watch:
+To build:
+
+ npm run_script build
+
+To build and watch:
- coffee -wbco . src/
+ npm run_script watch
To run the tests:

0 comments on commit d5fa8f3

Please sign in to comment.