README.md for instructions on how to build. Build is done with
npm scripts are provided:
npm run build:devto trigger a dev build.
npm run build:prodto trigger a production build.
npm run watch:devto trigger a dev build and rebuild on changes.
npm run watch:prodto trigger a production build and rebuild on changes.
npm run cleanto clean the
npm run extractTranslationsto generate a translation file (see below).
npm run lint:scssand
npm run lint:jsfor linting utilities.
npm run testwhich calls all the lint stuff.
Translations are handled by react-intl.
npm run --silent extractTranslations output a file containing all the english
translations, in the expected form. It is a mapping of ids and strings to
translate, with an extra description provided as a comment at the end of the
line, for some translation context.
Typically, if you want to translate to another
./app/locales/$LOCALE, put inside the generated file from
--silent extractTranslations, called
index.js. Copy the lines in
./app/locales/index.js to include your new translation and translate all the
strings in the
./app/locales/$LOCALE/index.js file you have just created.
No strict coding style is used in this repo. ESLint and Stylelint, ran with
npm run test ensures a certain coding style. Try to keep the coding style
Usefuls Git hooks are located in
Text after any dash in a URL parameter is considered as a comment and
/artist/1-foobar, the artist ID is
1 and the
is simply considered as a comment for human readable URLs.