Skip to content

Frontend Commands

sebeder edited this page Nov 18, 2022 · 3 revisions

The following commands are supported by Specmate:

Initialize everything:

  • npm run init (You should run this in the beginning of every development session; this includes npm install)

To build i18n: npm run extract

To clean: npm run clean

Compile

  • npm run build-dev compiles everything and deploys it in a developer friendly version on the server.
  • npm run build-prod compiles everything and deploys it in a production friendly version on the server.
  • npm run extract builds the i18n files for English and German translation

Utilities

  • npm run check Runs the linter for code errors, prints all licenses used in production mode, and checks whether the dependencies in package.json reference the newest versions of the libraries.
  • npm run update-dependencies Updates all dependencies in package.json to reflect the newest version. You should use this with care. Additionally, you have to run npm run init afterwards.