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: doc/building.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Building Ghostbird
2
2
3
-
[`tools/tsdown_config.ts`](../tools/tsdown_config.ts) serves as the build script of Ghostbird. It makes heavy use of custom plugins, which would have resulted in very long comments, so I felt they deserved separate documentation.
3
+
[`tools/tsdown_config.ts`](../tools/tsdown_config.ts), which is a configuration file for tsdown, serves as the build script of Ghostbird. It makes heavy use of custom plugins, which would have resulted in very long comments, so I felt they deserved separate documentation.
4
+
5
+
[tsdown](https://tsdown.dev) is a descendant of the Rollup bundler that combines [Rolldown](https://rolldown.rs/) and [TypeScript](https://www.typescriptlang.org/) to compile TypeScript code into JavaScript.
manifest_template & version --> generate_manifest --> manifest["MailExtension Manifest<br>dist/ext/manifest.json"]
@@ -80,6 +84,8 @@ The build script uses several custom plugins, each serving a different purpose:
80
84
- This is skipped in a release build since a full `yarn check-type` is run as a pre-build step.
81
85
1.[`tools/generate_manifest.ts`](../tools/generate_manifest.ts) prepares `manifest.json` by filling in placeholders in [`manifest_template.json`](../manifest_template.json).
82
86
1.[`tools/generate_locale_messages.ts`](../tools/generate_locale_messages.ts) generates [message files](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization) from the definition in [`locales.toml`](../locales.toml).
87
+
1.[`tools/codecov.ts`](../tools/codecov.ts) uploads bundle size information to Codecov for analysis.
88
+
- This is only active during a release build and an API key is available.
83
89
84
90
### Version number calculation in `generate_manifest.ts`
0 commit comments