Skip to content

Commit 4712fcf

Browse files
committed
update readme
1 parent 8f92f90 commit 4712fcf

File tree

2 files changed

+71
-5
lines changed

2 files changed

+71
-5
lines changed

CONTRIBUTING.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
# Development
22

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.
44

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
12+
│ ├── editor - The main React application
13+
│ ├── engine - The live-code execution engine
14+
│ ├── packager - Tool to bundle TypeCell notebook apps (WIP)
15+
│ └── 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
621

722
Node.js is required to run this project. To download Node.js, visit [nodejs.org](https://nodejs.org/en/).
823

@@ -17,8 +32,14 @@ To run the project, open the command line in the project's root directory and en
1732
# Start the main editor project
1833
npm start
1934

35+
The above `npm start` executes the `vite dev` command of `packages/editor` and watches for changes to this main package.
36+
2037
## Watch changes
2138

2239
npm run watch
2340

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.

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,54 @@ Welcome to TypeCell! An open source live programming environment. Together, we w
1212
<a href="https://discord.gg/aDQxXezfNj"><img alt="Discord" src="https://img.shields.io/badge/Chat on discord%20-%237289DA.svg?&style=for-the-badge&logo=discord&logoColor=white"/></a> <a href="https://matrix.to/#/#typecell-space:matrix.org"><img alt="Matrix" src="https://img.shields.io/badge/Chat on matrix%20-%23000.svg?&style=for-the-badge&logo=matrix&logoColor=white"/></a>
1313
</p>
1414

15-
## Contributing 🙌
15+
<p align="center">
16+
<a href="https://www.typecell.org">
17+
<img alt="TypeCell demo" src="./packages/editor/src/app/main/components/startscreen/assets/intro.gif?raw=true" width="600" />
18+
</a>
19+
</p>
20+
21+
# Features
22+
23+
- Open Source, cell-based notebook environment
24+
- Same, powerful editing experience as VS Code
25+
- Full TypeScript support! (no weird custom language constructs)
26+
- Reactive Runtime, cells automatically re-evaluate when their dependencies update ([learn more](https://www.typecell.org/docs/manual/3.%20Reactive%20variables.md))
27+
- Import NPM packages + types just by writing an `import` statement
28+
29+
[Try the Tutorial to get started!](https://www.typecell.org/docs/interactive-introduction.md)
30+
31+
# Documentation 📖
32+
33+
## Tutorial
34+
35+
Complete the tutorial to get familiar with TypeCell:
36+
37+
» [Interactive introduction](https://www.typecell.org/docs/interactive-introduction.md)
38+
39+
## Manual
40+
41+
We've written about the main functionality of TypeCell in the [manual](https://www.typecell.org/docs/manual):
42+
43+
- [Notebooks and cells](https://www.typecell.org/docs/manual/1.%20Notebooks%20and%20cells.md)
44+
- [TypeScript and exports](https://www.typecell.org/docs/manual/2.%20TypeScript%20and%20exports.md)
45+
- [Reactive variables](https://www.typecell.org/docs/manual/3.%20Reactive%20variables.md)
46+
- [Working with user input](https://www.typecell.org/docs/manual/4.%20Inputs.md)
47+
- [Imports & NPM](https://www.typecell.org/docs/manual/5.%20Imports%20and%20NPM.md)
48+
- [Collaboration](https://www.typecell.org/docs/manual/6.%20Collaboration.md)
49+
50+
## Demos
51+
52+
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 🙌
1661

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`).
1863

1964
TypeCell is organised as a monorepo containing several packages. Directory structure:
2065

0 commit comments

Comments
 (0)