Please to read this document before contributing code, translations or building
vscode-coding-tracker1 is a open-sources project licensed under GPL-3.0.
[1]: included two repository vscode-coding-tracker and vscode-coding-tracker-server
Submitting an issue to this project is a easy way to contribute. If you find a bug in this project or have of an improvement, you can create an issue. Of course, Pull Requests are welcomed for bug fixes and improvements.
- Ensure you are in the correct repository between
vscode-coding-trackerandvscode-coding-tracker-servervscode-coding-tracker-serverif you met trouble in report page (included charts, report result, translations ...)- otherwise, commit to
vscode-coding-trackerrepository.
- Search for issues or feature requests that may have already been filed.
- Please include information the following in your issue:
- VS Code version
- extension version
- your operation system
- server version (in the end of report page)
- Detailed reproduction ways or error tracking information
- Passed test suites. Travis-CI
- The target of pull request must be develop branch if there has any develop branch looks like
x.y.z-developin repository. - Included any one description followed in your pull request content
- What bugs your pull request fixes
- What improvements your pull request includes
- Create a translation js file in
frontend/src/js/i18n/ - Add a line likes
'language_code': require('./language_code')intofrontend/src/js/i18n/index.js - Add a item likes
option(value='language_code') Language Nameintofrontend/src/modules/top_navbar.pug - You can build frontend code and have a look.
- Server side code (Node.js) is in folder
liband fileapp.js - Frontend code (report page code) is in folder
frontend/src- distribution frontend files (after building) in folder
frontend/dist
- distribution frontend files (after building) in folder
- Libraries used in frontend in folder
frontend/lib
Detailed files manifest: FILES.md
- Make sure
nodeandnpmenvironments have been installed in your system. - Executing
npm installfor Node.js tradition - If you want to edit frontend code (for example: HTML, style-sheet, scripts). Please install dependencies of builder by:
- Linux/macOS, Executing script
./build/install-dependencies - Windows, You should install dependencies manually by referring
./build/install-dependenciesfile
- Linux/macOS, Executing script
- Recommended IDE:
Visual Studio Code
npm run build or npm run build-live(building automatically after file be modified)
- Build configuration file location:
build/build.config.yaml - Build scripts from repository: fe-build-scripts
npm start or npm run server
- To pass parameters to server script, execute like this:
npm start -- --port=23333 - Tips: To debug server scripts with tracking data in local computer:
npm start -- --public-report --port=9000 --output="$HOME/.coding-tracker"
npm test or npm run test-no-eslint-tsc