-
Notifications
You must be signed in to change notification settings - Fork 22
Build
Make sure you have installed Node.js 16.x or greater and npm.
We use the grunt task runner, so install grunt-cli globally.
npm install -g grunt-cli
If you do not install grunt-cli globally, you'll need to use the full path to the local grunt command:
./node_modules/.bin/grunt
git clone [email protected]:vexflow/vexflow.git
cd vexflow
npm install
Build all libraries (production, debug, and tests):
grunt
Clean the build/ and reference/ folders::
grunt clean
Run tests on the command line:
grunt test
To run tests in the browser, open tests/flow.html in a new browser tab. This will load the CJS version of VexFlow, from vexflow/build/cjs/vexflow-debug-with-tests.js. You can also try the following commands:
# Open the default browser to the flow.html test page.
grunt test:browser:cjs
# Open the default browser to `http://localhost:8080/tests/flow.html?esm=true`.
# A web server needs to be serving the `vexflow/` directory (e.g., `npx http-server`).
grunt test:browser:esmTo watch source files and build automatically when a file changes:
grunt watch
Build, test, debug, fix, iterate. If everything works and there are no breaking visual diffs, commit your changes and submit a PR!
You are viewing the VexFlow 5 wiki.
The V4 wiki is located at https://github.com/0xfe/vexflow/wiki