mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 07:40:48 +00:00
b234edba88
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
13 lines
385 B
Plaintext
13 lines
385 B
Plaintext
A combined Mediawiki and html parser in JavaScript running on node.js. Please
|
|
see (https://www.mediawiki.org/wiki/Future/Parser_development) for an overview
|
|
of the current implementation, and instructions on running the tests.
|
|
|
|
You might need to set the NODE_PATH environment variable,
|
|
export NODE_PATH="node_modules"
|
|
|
|
Download the dependencies:
|
|
npm install
|
|
|
|
Run tests:
|
|
npm test
|