- Node >=12.14.0
- yarn
- Execute command
yarn install
To add environment variables create .env
file in the root of the project.
Available variables:
# one of: prod, dev, stag
ENV=
# for production write url path here
BASE_URL=
BROWSER_PORT=3000
# non-mandatory. specify languages that need to be rendered, example: en,de,es,cz...
LANGUAGES=
- Change
ENV
environment variable todev
- Execute command
yarn develop
- Change
BASE_URL
environment variable to your domain - Execute command
yarn build
. This will build project to/dist
folder
- If gulp commands do not work, try install gulp globally
yarn syncTerms
- will sync 'po' terms from/locales
folder on git with POeditor. YOU MUST CONFIGURE WEBHOOKS IN POEDITOR AND CHANGE KEYS IN FILEbin/config.js
yarn exportTerms
- will export new translations from POeditor to/locales
. YOU MUST CONFIGURE WEBHOOKS IN POEDITOR AND CHANGE KEYS IN FILEbin/config.js
yarn parseTerms