1.4 KiB
Contribution Guidelines
Installation and startup
- Use yarn to install dependencies
yarn install
then pass
yarn dev
Startup project.
-
Please add code only related to the main process of Electron in the
src/maindirectory. Code only related to the rendering process should be added in thesrc/rendererdirectory. Add code that can be used by both processes in thesrc/universaldirectory. Note: The rendering process does not have theNode.jscapability. All rendering processes need to useNode.js modulesrelated code, please add events undersrc/main/events/picgoCoreIPC.tsfor processing. -
Please add all cross-process event names in
src/universal/events/constants.ts. -
Please add all global type definitions in
src/universal/types/, if it isenum, please add it insrc/universal/types/enum.ts.
i18n
Create a yml file for a language under public/i18n/, e.g. zh-Hans.yml. Then refer to zh-CN.yml or en.yml to write language files. Also note that PicGo will display the name of the language to the user via LANG_DISPLAY_LABEL in the language file.
Submit code
- Please check that the code has no extra comments,
console.logand other debugging code. - Before submitting the code, please execute the command
git add . && yarn czto invoke PicGo's Code Submission Specification Tool. Submit code through this tool.