Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
/ PrivataFrontend Public archive

This is Privata Client using electron, typescript & react, and bundled by ElectronForge.

Notifications You must be signed in to change notification settings

AierLab/PrivataFrontend

Repository files navigation

PrivataFrontend

This is Privata Client using electron, typescript & react, and bundled by ElectronForge.

How is this been set up

Delevopment

Read Before Coding

  1. 公有的类型声明放在 common-types 里面,引用时使用 @privata/types/xxx
  2. 每个项目的私有类型声明都是 types 打头, e.g. types/security-key

    为什么不用 @types? 因为 @types 是个保留,会去找 node_modules/@types

  3. 如果你遇到了引用出问题的情况,可以运行 tsc --traceResolution,然后搜索你引用的包名即可。

Run in development

  1. Navigate to react-app and electron-app, in both folder, run npm install.
  2. Navigate to react-app, run following command to start react development server, and leave it running.
    $ npm run start
  3. Navigate to electron-app, run following command to open electron window
    $ npm run start

Build

  1. Run npm run build at react-app folder to build react pages.
  2. Run npm run make at electorn folder to bundle react app & electron into one package.

Git

新的功能在主分支上新建分支 (还是不要在功能分支上再建分支了,不然不好合并)

做完后在 github 上 new pull request -> master, 看下没问题的话自己 merge 了就 OK, 顺手 Delete branch 把分支删掉

当然时间久了, 本地难免会出现很多在 github 上早已被删的冗余分支, 清理: git fetch -p

About

This is Privata Client using electron, typescript & react, and bundled by ElectronForge.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •