- Switches to typescript 'composite project' mode for improved
organization & performance
- Generates declarations from core modules, and outputs to a new
`@discourse/types` package
- Introduces tsconfigs for core plugins, which leans on that new
`@discourse/types` package
- In future, we plan to publish this discourse-types package for other
themes/plugins to use
The motivation at this stage is primarily to improve editor
autocompletion. We provide absolutely no guarantees about the accuracy
or stability of the generated types.
For now, some issues have been resolved by adding manual `@type`
declarations.
In particular, extensionless imports of `.gjs` files are broken when
running in composite-project mode, so in those cases we have to add
manual `@type {import("./the-file.gjs").default}` declarations.
Unfortunately this failure does not show up in IDEs. We hope to get this
resolved soon.
---------
Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: Chris Manson <chris@manson.ie>
|
||
|---|---|---|
| .. | ||
| app | ||
| config | ||
| db/migrate | ||
| spec | ||
| package.json | ||
| plugin.rb | ||
| README.md | ||
| tsconfig.json | ||
Discourse Github
https://meta.discourse.org/t/discourse-github/99895/
This plugin combines functionality of deprecated github_badges and discourse-github-linkback plugins.
Installation
Follow the plugin installation guide.
Github Badges
Assign badges to your users based on GitHub contributions.
How to use:
-
Enable
github badges enabledin Settings -> Plugins. -
Generate an access token on Github. Be sure to give it only the
public_reposcope. Paste that token into thegithub linkback access tokensetting. -
Add URL of the GitHub repo to scan for contributions to the
github badges reposite setting.
Github Linkback
Create a link from a Github pull request or commit back to a Discourse post where it is mentioned.
How to use:
-
Enable
github linkback enabledin Settings -> Plugins. -
Generate an access token on Github. Be sure to give it only the
public_reposcope. Paste that token into thegithub linkback access tokensetting. -
Finally, add the projects you wish to post to in the
github linkback projectssite setting in the formats:username/repositoryfor specific repositoriesusername/*for all repositories of a certain user
Github Permalink
Replace Github non-permalinks with permalinks.
How to use:
- Enable
github permalinks enabledin Settings -> Plugins. - If you want to exclude certain files or directories from permalink overwrites, you can modify that in the
github permalinks excludesite setting in the following formats:filenamelinks to all files with matching filenameusername/*links to all repositories belonging to the user/organizationusername/repository/*links to any file in the repositoryusername/repository/directory/*links to any file in the directory within repositoryusername/repository/file.rba specific file