Skip to content

Commit 0c1d5f7

Browse files
unknownunknown
unknown
authored and
unknown
committed
Updated running instructions
1 parent f8a4a5f commit 0c1d5f7

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README

+5-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The commands for the preprocessor are:
6363

6464
How to use:
6565

66-
usage: node pp.js with the following options
66+
usage: npm start Node-JavaScript-Preprocessor with the following options
6767

6868
Source file(s) e.g. --src=file1.js,file2.js
6969
--src *required
@@ -166,7 +166,9 @@ Result
166166

167167
How to install:
168168

169-
Save to a folder of your choice and rune with node.
169+
npm install Node-JavaScript-Preprocessor
170+
171+
To run:
172+
npm start Node-JavaScript-Preprocessor
170173

171-
I'm looking into installing with NPM.
172174

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"author": "Mike Coolin <[email protected]> (www.coolwebdevelopment.ca)",
33
"name": "Node-JavaScript-Preprocessor",
44
"description": "A preprocessor for Javascript that supports defines, if else endif and includes.",
5-
"version": "0.0.3",
5+
"version": "0.0.5",
66
"homepage": "http://coolwebdevelopment.ca/wordpress/index.php/developers-area/javascript/node-javascript-preprocessor/",
77
"repository": {
88
"type": "git",
99
"url": "git://github.com/mcoolin/Node-JavaScript-Preprocessor.git"
1010
},
1111
"main": "pp.js",
1212
"scripts": {
13-
"test": "node pp.js --help"
13+
"start": "node server.js --help"
1414
},
1515
"engines": {
1616
"node": "~v0.4.11"

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var fs = require('fs'),
4343
note : 'Enable debugging',
4444
value : false
4545
}
46-
}, "Usage: node pp.js with the following options");
46+
}, "Usage: npm Node-JavaScript-Preprocessor pp.js with the following options");
4747

4848
doPreprocess(opts);
4949

0 commit comments

Comments
 (0)