This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a2e6cf
commit d3cab9d
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,53 @@ | ||
# Contribution Guide | ||
|
||
If you want to contribute to Newcar Team, there are some tips for you. | ||
|
||
## Compiling and Run | ||
|
||
We use pnpm as the packages manager and monorepo to namage our repo. | ||
|
||
Before you get started, you are supposed to install pnpm if your computer have not it: | ||
|
||
```shell | ||
$ npm install -g pnpm | ||
``` | ||
|
||
Forking the repo and link to it, you can use command as followings: | ||
|
||
```shell | ||
$ pnpm install | ||
$ pnpm dev | ||
$ pnpm serve | ||
$ pnpm build | ||
``` | ||
|
||
Congratulations! If everything is okay, you can visit [localhost:5173](localhost:5173) with your browser and see this examples. | ||
|
||
## File Structure | ||
|
||
Open the repo, you will see the structure like followings: | ||
|
||
``` | ||
mods | ||
| mod-math | ||
| mod-geometry | ||
| mod-chart | ||
| ... | ||
packages | ||
| core | ||
| basic | ||
| ... | ||
plugins | ||
| ... | ||
... | ||
``` | ||
- mods: The offical mods of Newcar | ||
- packages: the core and other packages that core is dependent on or be dependented | ||
- basic: There are many basic figures in there, please refer to [newcar.js.org](https://newcar.js.org) to see them | ||
- plugions: The offcial plugins of Newcar | ||
|
||
And you can custom some widget for our offical lib, the guide is in out [documentation](https://newcar.js.org). | ||
|
||
We hope you can get a great sense when you contribute to us. | ||
|
||
Thanks for reading! |