You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,23 @@
1
1
# Development
2
2
3
-
We use [Lerna](https://lerna.js.org/) to manage the monorepo with separate packages. In VS Code, it's best to open `typecell.code-workspace` to open the project as a workspace.
3
+
TypeCell is a monorepo containing several packages. In VS Code, it's best to open `typecell.code-workspace` to open the project as a workspace.
4
4
5
-
## Running
5
+
## Directory structure:
6
+
7
+
```
8
+
blocknote
9
+
├── docs - Docs / samples (see https://www.typecell.org/docs/)
10
+
├── packages
11
+
│ ├── common - Utility functions shared across the codebase
│ └── parsers - Helpers to convert to / from TypeCell notebooks
16
+
├── patches - patch-package patches
17
+
└── test-util - Server and data for unit tests
18
+
```
19
+
20
+
## Running locally
6
21
7
22
Node.js is required to run this project. To download Node.js, visit [nodejs.org](https://nodejs.org/en/).
8
23
@@ -17,8 +32,14 @@ To run the project, open the command line in the project's root directory and en
17
32
# Start the main editor project
18
33
npm start
19
34
35
+
The above `npm start` executes the `vite dev` command of `packages/editor` and watches for changes to this main package.
36
+
20
37
## Watch changes
21
38
22
39
npm run watch
23
40
24
-
The above `npm start` executes the `vite dev` command of `packages/editor` and watches for changes to this main package. However, you might also be making changes to other packages in the `packages` directory. To continuously watch and compile for changes, open a new terminal and run `npm run watch`.
41
+
You might also be making changes to other packages in the `packages` directory. To continuously watch and compile for changes, open a new terminal and run `npm run watch`.
42
+
43
+
## Testing
44
+
45
+
The codebase is automatically tested using Vitest and Playwright. When submitting a PR or issue, ideally try to add a test case for it.
Copy file name to clipboardExpand all lines: README.md
+47-2Lines changed: 47 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,54 @@ Welcome to TypeCell! An open source live programming environment. Together, we w
12
12
<ahref="https://discord.gg/aDQxXezfNj"><imgalt="Discord"src="https://img.shields.io/badge/Chat on discord%20-%237289DA.svg?&style=for-the-badge&logo=discord&logoColor=white"/></a> <ahref="https://matrix.to/#/#typecell-space:matrix.org"><imgalt="Matrix"src="https://img.shields.io/badge/Chat on matrix%20-%23000.svg?&style=for-the-badge&logo=matrix&logoColor=white"/></a>
Another good way to learn is to check out some notebooks from our community:
53
+
54
+
» [View demo notebooks](/docs/demos.md)
55
+
56
+
# Feedback 🙋♂️🙋♀️
57
+
58
+
We'd love to hear your thoughts and see your experiments, so [come and say hi on Discord](https://discord.gg/TcJ9TRC3SV) or [Matrix](https://matrix.to/#/#typecell-space:matrix.org).
59
+
60
+
# Contributing 🙌
16
61
17
-
See [CONTRIBUTING.md](CONTRIBUTING.md).
62
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for more info and guidance on how to run the project (TLDR: just use `npm start`).
18
63
19
64
TypeCell is organised as a monorepo containing several packages. Directory structure:
0 commit comments