generated from react18-tools/turborepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cdac0f7
Showing
245 changed files
with
21,503 additions
and
0 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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": ["@changesets/cli/commit", { "skipCI": false }], | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": ["@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,5 @@ | ||
--- | ||
"react18-loaders": patch | ||
--- | ||
|
||
Use https://www.npmjs.com/package/esbuild-plugin-rdi to better minify the build. |
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,22 @@ | ||
version = 1 | ||
|
||
test_patterns = ["**/*.test.*"] | ||
|
||
exclude_patterns = [ | ||
"docs/**", | ||
"**/*.test.*" | ||
] | ||
|
||
[[analyzers]] | ||
name = "javascript" | ||
|
||
[analyzers.meta] | ||
plugins = ["react"] | ||
environment = [ | ||
"nodejs", | ||
"vitest", | ||
"browser" | ||
] | ||
|
||
[[transformers]] | ||
name = "prettier" |
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,14 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [mayank1513] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
polar: mayank1513 | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: [https://pages.razorpay.com/mayank1513] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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,40 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
|
||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,45 @@ | ||
name: Update dependencies and Docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
schedule: | ||
- cron: "0 */8 * * *" | ||
jobs: | ||
generate-docs: | ||
if: github.event.repository.owner.login == 'react18-tools' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
registry-url: https://registry.npmjs.org | ||
node-version: 20 | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name "mayank1513" | ||
git config --global user.email "mayank.srmu@gmail.com" | ||
git fetch | ||
git checkout main | ||
git pull | ||
- run: npm i -g pnpm && pnpm i | ||
name: Install dependencies | ||
- name: Test | ||
run: npm test | ||
- run: git stash --include-untracked | ||
name: clean up working directory | ||
- run: npx @turbo/codemod update . && pnpm update --latest -r | ||
name: Update dependencies | ||
- run: pnpm build | ||
name: Build all apps to make sure it is not broken due to dependency upgrades | ||
- name: Run unit tests | ||
run: pnpm test | ||
- name: Generate/update docs | ||
run: pnpm doc | ||
- name: Save upgraded packages back to repo | ||
run: git add . && git commit -m "upgrade deps && docs" && git push origin main |
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,44 @@ | ||
name: Manually publish to NPM - Apply changeset in the workflow. | ||
|
||
# publish only when package json has changed - assuming version upgrade | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
if: github.event.repository.owner.login == 'react18-tools' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name "mayank1513" | ||
git config --global user.email "mayank.srmu@gmail.com" | ||
- run: npm i -g pnpm && pnpm i | ||
name: Install dependencies | ||
# fail and not publish if any of the unit tests are failing | ||
- name: Test | ||
run: pnpm test | ||
- name: clean up working directory | ||
run: git status && git clean -f -d && git status | ||
# - name: Copy Readme file | ||
# run: cp ./README.md ./lib # todo: uncomment this line while rebranding | ||
- name: Apply changesets, publish and create release, branches and tags | ||
run: node ./scripts/manual-publish.js | ||
env: | ||
BRANCH: ${{ github.ref_name }} | ||
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,46 @@ | ||
name: Publish to NPM | ||
|
||
# publish only when package json has changed - assuming version upgrade | ||
on: | ||
push: | ||
branches: [main] | ||
paths: "lib/package.json" | ||
|
||
jobs: | ||
publish: | ||
# Don't run just after creating repo from template | ||
# Also avoid running after merging set-up PR | ||
if: github.run_number > 2 && github.event.repository.owner.login == 'react18-tools' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name "mayank1513" | ||
git config --global user.email "mayank.srmu@gmail.com" | ||
- run: npm i -g pnpm && pnpm i | ||
name: Install dependencies | ||
# fail and not publish if any of the unit tests are failing | ||
- name: Test | ||
run: pnpm test | ||
# - name: Copy Readme file | ||
# run: cp ./README.md ./lib # will be uncommented while rebranding | ||
- name: Apply changesets, publish and create release, branches and tags | ||
run: node ./scripts/publish.js | ||
env: | ||
BRANCH: ${{ github.ref_name }} | ||
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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: setup repo | ||
|
||
on: | ||
create: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
setup: | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name "Mayank Chaudhari<https://mayank-chaudhari.vercel.app>" | ||
git config --global user.email "mayank.srmu@gmail.com" | ||
git fetch | ||
git checkout main | ||
- name: Set up repo | ||
run: | | ||
git rm .tkb | ||
mv ./scripts/.tkb ./.tkb | ||
rm -rf ./docs | ||
- name: Push changes back to repo | ||
run: | | ||
git add . | ||
git commit -m 'Craete rebrand config 💖 <a href="https://mayank-chaudhari.vercel.app" target="_blank">Mayank Kumar Chaudhari</a> [skip ci]' | ||
git push origin main |
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: test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "5 */8 * * *" | ||
jobs: | ||
test: | ||
if: github.run_number != 1 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: npm i -g pnpm && pnpm i | ||
name: Install dependencies | ||
- name: Run unit tests | ||
run: pnpm test | ||
- name: Upload coverage reports to Codecov | ||
continue-on-error: true | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
directory: ./lib | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- uses: paambaati/codeclimate-action@v8.0.0 | ||
continue-on-error: true | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: ./lib/coverage/*.xml:clover |
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,16 @@ | ||
.DS_Store | ||
node_modules | ||
.turbo | ||
*.log | ||
.next | ||
dist | ||
dist-ssr | ||
*.local | ||
.env | ||
.cache | ||
|
||
# test coverage | ||
coverage | ||
|
||
# temporary files | ||
tsup.config.bundled* |
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 @@ | ||
auto-install-peers = 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,6 @@ | ||
*lock.* | ||
|
||
# ignore hbs files as prettier removes all spaces and makes it ugly | ||
*hbs | ||
docs | ||
.vscode |
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 @@ | ||
{ | ||
"singleQuote": false, | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"arrowParens": "avoid", | ||
"jsxBracketSameLine": true, | ||
"bracketSameLine": true | ||
} |
Oops, something went wrong.