mediawiki-extensions-Visual.../modules/parser/package.json
Adam Wight b234edba88 As much as I have loved writing Makefiles... I've replaced its functionality with package.json, mostly so we can avoid non-node dependencies. This is one of the recommended practices. We should consider moving tests/parser into modules/parser/tests, other node projects keep all module code in one directory.
Explained in the README how to use npm to load the dependencies and run tests.  Too bad about NODE_PATH...

Don't try to find parserTests.txt in assorted places--if it isn't present, fetch from gerrit.  You can symlink from core if you're developing on both parsers, and the fetch script will not overwrite.

Use __dirname in parserTests.js to allow the script to run independent of current working directory.

Change-Id: I4c8b884e91f4fdeae385c7697aff768bdd199dd5
2012-04-04 11:02:58 -07:00

29 lines
629 B
JSON

{
"name": "mediawiki-parsoid",
"description": "Mediawiki parser for the VisualEditor.",
"version": "0.0.1",
"dependencies": {
"events": "0.x.x",
"jquery": "1.x.x",
"request": "2.x.x",
"querystring": "0.x.x",
"path": "0.x.x",
"jshashes": "0.x.x",
"optimist": "0.x.x",
"assert": "0.x.x",
"jsdom": "0.x.x",
"pegjs": "0.x.x"
},
"devDependencies": {
"coffee-script": "1.x.x",
"colors": "0.x.x",
"diff": "1.x.x",
"html5": "0.x.x"
},
"main": "mediawiki.parser.js",
"scripts": {
"pretest": "node ../../tests/parser/fetch-parserTests.txt.js",
"test": "node ../../tests/parser/parserTests.js"
}
}