-
-
Notifications
You must be signed in to change notification settings - Fork 105
Home
Welcome to the Kaku wiki ! Please check right sidebar for any information that you want to know !
Because we use npm to maintain our third party libraries, you have to make sure before doing anything, these needed stuffs are all installed already.
- Use
node 6.10.3 (npm 5.0.4) npm i
!!!!!!THIS IS IMPORTANT, PLEASE READ THIS!!!!!!
Please take a look at config/, you will notice there are some files named like api_config.*.json, remember to update them with correct config and rename them to api_config.production.json, then everything should work as perfect !
In order to make sure others can join the development without worrying too much about this config, I just added api_config.development.json for you guys ! If you don't want to register these services by yourself and want to jump to develop directly, please just copy the file and rename to api_config.production.json then you are done !
npm run compile # for developmentor for production
NODE_ENV=production npm run compile # for productionnpm run compile:lessnpm run compile:jsnpm run compile:envFor one-time tester
npm run compile && ./node_modules/.bin/electron .For someone who wants to contribute and write features
A) Prepare assets first
npm run compileB) Use one terminal to watch js change
./node_modules/.bin/webpack --watchC) Use another terminal to run electron
./node_modules/.bin/electron .npm test... to be continued
npm run build # production buildor
npm run build:development # development buildnpm run build:macnpm run build:linuxnpm run build:windowsBecause we use Transifex to provide a cleaner and easy to use interface for translators, you need to install the command tool called tx to update translations.
After installing, you don't need to setup anything else because they are all set up already under .tx/config ! You just need to use the command below to update translations !
tx pull -a --minimum-perc=90 # we only need any translation which has been translated > 90%