Page MenuHomePhabricator

Don't track generated parser.js in git
Open, LowestPublic

Description

Problem:

Committing the generated parser.js feels like code smell. Diffing on terminal is inconvenient. Repo history is heavier.

Solution:

Generate the parser on the fly when texvc is required. If parser.js doesn't exist, generate parser.js, else do nothing, finally require parser.js.

Event Timeline

However, the generated parser js should still be in the npm package to avoid additional dependencies.
Currently, the only dependency is commander, which could also become a dev dependency since it is only required for the command-line util.

Physikerwelt removed a project: Math.