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: docs/docs/contribution/adding-languages.mdx
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,36 @@ If you still have doubts if the language qualifies, [let's discuss it](https://g
14
14
15
15
## Checklist when adding
16
16
17
+
```mermaid
18
+
flowchart TD
19
+
A[Add Language] --> B["Create language specs<br/>src/livecodes/languages/"]
20
+
B --> C["Add to languages.ts<br/>or processors.ts"]
21
+
22
+
C --> D{"Compiler needs<br/>separate build?"}
23
+
D -->|Yes| E["Add to build script<br/>scripts/build.js"]
24
+
D -->|No| F{"New packages/<br/>static files?"}
25
+
26
+
F -->|Yes| G["Add to browser-compilers repo<br/>and CDN"]
27
+
F -->|No| H["Reference vendors.ts<br/>for CDN links"]
28
+
29
+
E --> H
30
+
G --> H
31
+
32
+
H --> I["Add name/aliases<br/>to sdk/models.ts"]
33
+
I --> J["Add editor support<br/>Monaco/CodeMirror/Prismjs"]
34
+
J --> K["Add language info<br/>html/language-info.html"]
35
+
K --> L{"Starter template?"}
36
+
37
+
L -->|Yes| M["Create template<br/>Add to TemplateList, command-menu,<br/>language-info"]
38
+
L -->|No| N["Add e2e tests"]
39
+
40
+
M --> N
41
+
N --> O["Add language docs<br/>docs/docs/languages/"]
42
+
O --> P["Add to docs slider<br/>LanguageSliders.tsx"]
43
+
P --> Q["Add licenses<br/>vendor-licenses.mdx"]
44
+
Q --> R["Update badge<br/>README.mdx"]
45
+
```
46
+
17
47
-[ ] Add [language specs](https://github.com/live-codes/livecodes/tree/develop/src/livecodes/languages) and include that in the list of [languages](https://github.com/live-codes/livecodes/blob/develop/src/livecodes/languages/languages.ts) or [processors](https://github.com/live-codes/livecodes/blob/develop/src/livecodes/languages/processors.ts).
18
48
-[ ] The compiler +/- formatter should be lazy-loaded.
19
49
-[ ] If the compiler needs a separate build, add it to the [build script](https://github.com/live-codes/livecodes/blob/3a2617850f09487b9af92de862093f082942b8a9/scripts/build.js#L207).
This means there are no changes to the source code/texts, only translations are updated. Adding new languages or updating existing translations are examples of this part.
0 commit comments