Improve process for building and testing public repo
@slowcooked99 is already working on this.
Since Nov 8, 2024.
Assessment
This issue has not been assessed yet.
Description
Details
It's difficult for devs to build the reddit/devvit public repo. For example there are dependencies referencing npm packages that don't exist publicly.
PitchforkAssitant has detailed the steps below for how they got the repo working, but the process should not be so complex.
Additional info
Discord message:
Steps to compile the public-api subpackage:
- Delete all the other subpackages and apps (otherwise you'll have to jump through these hoops for all of them).
- Remove the
@devvit/repo-toolsand@reddit/faceplate-uidependencies frompublic-api/package.json. They're not public, can't install them. - Change the
@devvit/protos,@devvit/shared-types, and@devvit/tsconfigdependencies from-devto the latest-nextversion. This is because the matching version aren't present on the GitHub monorepo. For example"@devvit/protos": "0.11.3-dev",would become"@devvit/protos": "0.11.3-next-2024-10-31-9ef830d31.0". - Run
npm installin thepublic-apidirectory. - Get
@devvit/public-api/types/icons.jsfrom a published version and put it in thepublic-api/src/typesdirectory. Generating this would require whatevermake-iconscomes from and the presence of thesrc/types/icons.tsfile, neither of which is available. - Get
@devvit/public-api/devvit/internals/semanticColors.jsfrom a published version and put it in thepublic-api/src/devvit/internalsdirectory. You can't build this because the script to build it depends on the private@reddit/faceplate-uipackage. - Remove the references to
PaymentsServiceinDevvit.ts, as that's not present in the latest@nextversion we have. - Now you can do
tscin thepublic-apidirectory and it should output a build intopublic-api/dist. Use output as you see fit (most likely by replacing existing files in thenode_modules/@devvit/public-apifolder of one of your apps).
Message author: pitchforkassistant
Discord link: https://discord.com/channels/1050224141732687912/1242689647478308895/1303495416469524491
- Dominant language
- TypeScript
- Stars
- 210
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reddit/devvit
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·