-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from joelhooks/joel/update-build-stuff
updates some build stuff
- Loading branch information
Showing
193 changed files
with
5,623 additions
and
2,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ "repo": "joelhooks/course-builder" } | ||
], | ||
"commit": false, | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
"onlyUpdatePeerDependentsWhenOutOfRange": true | ||
}, | ||
"ignore": [ | ||
"docs", | ||
"@example/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: 🐞 Bug Report (packages) | ||
description: File a bug report for the Uploadthing packages | ||
title: '[bug]: ' | ||
labels: ['🐛 bug: unconfirmed', 'area:packages'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to file a bug report! Please fill out this form as completely as possible. | ||
Note that the more precise you are, the quicker we will be able to investigate the bug. | ||
- type: textarea | ||
attributes: | ||
label: Provide environment information | ||
render: bash | ||
description: | | ||
Please, run this command in your project root and paste the results: | ||
```terminal | ||
npx envinfo --system --binaries --browsers --npmPackages "typescript,uploadthing,@uploadthing/react,@uploadthing/solid" | ||
``` | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: Please describe the bug as clear and concise as possible, as well as the behavior you were expecting whilst encountering the bug. | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Link to reproduction | ||
description: Please provide a link to a reproduction of the bug. This can be a link to a repository or a StackBlitz/CodeSandbox etc. Feel free to use our minimal reproduction template https://stackblitz.com/github/joelhooks/course-builder/tree/main/apps/course-builder-web. You can also clone down any of our examples and use that as a starting point. You can do so by using `degit`, e.g. `npx degit pingdotgg/uploadthing/examples/minimal-appdir` | ||
placeholder: https://stackblitz.com/github/joelhooks/course-builder/tree/main/apps/course-builder-web | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: To reproduce | ||
description: Describe how to reproduce your bug. Given the reproduction link above, what steps should we take to reproduce the bug? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
description: Add any other information related to the bug here. | ||
- type: checkboxes | ||
attributes: | ||
label: 👨👧👦 Contributing | ||
description: We love contributors in any shape or form. Would you be willing to implement a fix? | ||
options: | ||
- label: 🙋♂️ Yes, I'd be down to file a PR fixing this bug! | ||
- type: checkboxes | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/joelhooks/course-builder/blob/main/.github/ISSUE_TEMPLATE/code-of-conduct.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: 🐞 Bug Report (dashboard) | ||
description: File a bug report for the Uploadthing dashboard | ||
title: "[Bug]: " | ||
labels: ['🐛 bug: unconfirmed', 'area:dashboard'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: What happened? | ||
description: Tell us what happened! | ||
placeholder: "Please provide a clear and concise description of what happened." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: what-did-you-expect-to-happen | ||
attributes: | ||
label: What did you expect to happen? | ||
description: Please describe what you expected to happen. | ||
placeholder: "Please provide a clear and concise description of what you expected to happen." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version are you using? | ||
placeholder: "Please provide the version number of the software or platform you are using." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduction-steps | ||
attributes: | ||
label: Reproduction Steps | ||
description: How can we reproduce the issue? | ||
placeholder: "Please provide step-by-step instructions on how to reproduce the issue." | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: bash | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/joelhooks/course-builder/blob/main/.github/ISSUE_TEMPLATE/code-of-conduct.md) | ||
options: | ||
- label: I agree to follow this project's Code of Conduct | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 🛠 Suggestion / Feature Request | ||
description: File a suggestion or feature request | ||
title: 'feat: ' | ||
labels: ['✨ enhancement'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for taking the time to file a feature request. Please fill out this form as completely as possible. | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature you'd like to request | ||
description: Please describe the feature as clear and concise as possible. Remember to add context as to why you believe this feature is needed. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the solution you'd like to see | ||
description: Please describe the solution you would like to see. Adding example usage is a good way to provide context. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
description: Add any other information related to the feature here. If your feature request is related to any issues or discussions, link them here. | ||
- type: checkboxes | ||
attributes: | ||
label: 👨👧👦 Contributing | ||
description: We love contributors in any shape or form. Would you be willing to implement this feature? | ||
options: | ||
- label: 🙋♂️ Yes, I'd be down to file a PR implementing this feature! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 📚 Documentation | ||
description: Request changes related to the documentation | ||
title: 'docs: ' | ||
labels: ['📚 documentation'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Our documentation is far from perfect and needs improvements. | ||
Do you see possible enhancements you'd like to share? Please file them here! | ||
**Note:** For simple typos etc, please directly file a PR fixing them instead. | ||
- type: textarea | ||
attributes: | ||
label: Area of Improvement | ||
placeholder: I would like to see more in-depth API documentation for how to use the `useUploadThing` hook. | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Link to related docs | ||
description: Does documentation already exist? Please link that here. | ||
placeholder: https://docs.coursebuilder.dev/getting-started | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
description: Add any other information that may help us understand here. | ||
- type: checkboxes | ||
attributes: | ||
label: 👨👧👦 Contributing | ||
description: We love contributors in any shape or form. Would you be willing to improve the documentation yourself? | ||
options: | ||
- label: 🙋♂️ Yes, I'd be down to file a PR implementing the suggested changes! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Code of Conduct for Bug Reports | ||
|
||
As a user of this project and a member of the community, we ask that you follow this Code of Conduct when submitting an issue: | ||
|
||
1. **Be respectful**: We are all here to contribute and make this project better. Please be respectful to other users, maintainers, and contributors. | ||
|
||
1. **Be clear**: Please provide a clear and detailed description of the bug you are reporting. This will help the maintainers and contributors understand the issue and work towards a solution. | ||
|
||
1. **Be patient**: Please understand that resolving bugs may take time and effort. The maintainers and contributors will do their best to resolve the issue in a timely manner. | ||
|
||
1. **Be mindful of language**: Please refrain from using offensive or derogatory language. We will not tolerate any form of harassment or discrimination. | ||
|
||
1. **Provide examples**: If possible, provide examples of the bug you are reporting. This can include screenshots, error messages, or steps to reproduce the issue. | ||
|
||
1. **Follow the issue template**: Please follow the issue template provided when submitting a bug report issue. This will ensure that the necessary information is included and make it easier for the maintainers and contributors to help you. | ||
|
||
1. **Keep the discussion focused**: Please keep the discussion focused on the bug you are reporting. If you have other concerns or questions, please create a separate issue. | ||
|
||
1. **Stay open-minded**: We encourage open and constructive discussion. Please be open to different ideas and perspectives. | ||
|
||
By following this Code of Conduct, we can work together to create a welcoming and collaborative community around this project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Ask a question | ||
url: https://x.com/jhooks | ||
about: Hit me up on Twitter to discuss Course Builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { exec } from "child_process"; | ||
import fs from "fs"; | ||
|
||
const pkgJsonPaths = fs | ||
.readdirSync("packages") | ||
.filter((dir) => dir !== "config") | ||
.map((dir) => `packages/${dir}/package.json`); | ||
|
||
try { | ||
exec("git rev-parse --short HEAD", (err, stdout) => { | ||
if (err) { | ||
console.log(err); | ||
process.exit(1); | ||
} | ||
const commitHash = stdout.trim(); | ||
|
||
for (const pkgJsonPath of pkgJsonPaths) { | ||
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath, "utf-8")); | ||
const oldVersion = pkg.version; | ||
const [major, minor, patch] = oldVersion.split(".").map(Number); | ||
const newVersion = `${major}.${minor}.${patch + 1}-canary.${commitHash}`; | ||
|
||
pkg.version = newVersion; | ||
|
||
const content = JSON.stringify(pkg, null, "\t") + "\n"; | ||
const newContent = content | ||
.replace( | ||
new RegExp(`"@coursebuilder/\\*": "${oldVersion}"`, "g"), | ||
`"@coursebuilder/*": "${newVersion}"`, | ||
) | ||
.replace( | ||
new RegExp(`"course-builder": "${oldVersion}"`, "g"), | ||
`"course-builder": "${newVersion}"`, | ||
); | ||
|
||
fs.writeFileSync(pkgJsonPath, newContent); | ||
} | ||
}); | ||
} catch (error) { | ||
console.error(error); | ||
process.exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'📚 documentation': | ||
- any: ['docs/**', '!docs/**/package.json'] | ||
|
||
'apps': | ||
- any: ['apps/**', '!apps/**/package.json'] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: CI | ||
|
||
# You can leverage Vercel Remote Caching with Turbo to speed up your builds | ||
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./tooling/gh-actions/setup | ||
|
||
- name: Build & test | ||
run: pnpm turbo build test --filter "./packages/*" | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./tooling/gh-actions/setup | ||
|
||
- name: Lint | ||
run: pnpm lint | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./tooling/gh-actions/setup | ||
|
||
- name: Format | ||
run: pnpm format:check | ||
|
||
typecheck: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./tooling/gh-actions/setup | ||
|
||
- name: Typecheck | ||
run: pnpm typecheck | ||
|
Oops, something went wrong.