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 36626cd
Showing
138 changed files
with
4,650 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@2.3.1/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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 @@ | ||
version = 1 | ||
|
||
test_patterns = ["**/.*test.*"] | ||
|
||
exclude_patterns = ["docs/**"] | ||
|
||
[[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,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [mayank1513] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
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,44 @@ | ||
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 | ||
- run: npm i -g pnpm && pnpm i | ||
name: Install dependencies | ||
- name: Test | ||
run: npm test | ||
- run: git status && git clean -f -d && git status | ||
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: Setup Git | ||
run: | | ||
git config --global user.name "mayank1513" | ||
git config --global user.email "mayank.srmu@gmail.com" | ||
git fetch | ||
git checkout main | ||
- 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,43 @@ | ||
name: Publish to NPM | ||
|
||
# publish only when package json has changed - assuming version upgrade | ||
on: | ||
push: | ||
branches: [main] | ||
paths: "lib/fork-me/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 | ||
|
||
defaults: | ||
run: | ||
working-directory: ./lib/fork-me | ||
|
||
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 | ||
- 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: Create release and publish to NPM | ||
run: pnpm build && pnpm publish-package | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
OWNER: ${{ github.event.repository.owner.login }} | ||
REPO: ${{ github.event.repository.name }} |
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,28 @@ | ||
name: setup repo | ||
|
||
on: | ||
create: | ||
|
||
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 and create PR | ||
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: chmod +x ./setup.sh && (sudo bash ./setup.sh ${{ github.event.repository.owner.login }} ${{ github.event.repository.name }} || ./setup.sh ${{ github.event.repository.owner.login }} ${{ github.event.repository.name }}) | ||
- name: Push changes back to repo | ||
run: | | ||
git add . | ||
git commit -m 'Rebrand 💖 <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,33 @@ | ||
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/fork-me | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: fork-me | ||
- uses: paambaati/codeclimate-action@v5.0.0 | ||
continue-on-error: true | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: ./lib/fork-me/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,39 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
.pnp | ||
.pnp.js | ||
|
||
# testing | ||
coverage | ||
|
||
# next.js | ||
.next/ | ||
out/ | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# turbo | ||
.turbo | ||
|
||
# vercel | ||
.vercel | ||
|
||
# lock files | ||
*lock* |
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 | ||
} |
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,60 @@ | ||
{ | ||
"scope": "Workspace", | ||
"tasks": { | ||
"uUjYvxGR0oOu3Q1iJQler": { | ||
"id": "uUjYvxGR0oOu3Q1iJQler", | ||
"description": "Add use case for r18gs", | ||
"columnId": "column-todo" | ||
}, | ||
"hnmDBbQK5q6-GX3eIdtUP": { | ||
"id": "hnmDBbQK5q6-GX3eIdtUP", | ||
"description": "Create/feature a list of projects created from this template", | ||
"columnId": "column-done" | ||
}, | ||
"5FPnfgSKUpHBbORBRtgui": { | ||
"id": "5FPnfgSKUpHBbORBRtgui", | ||
"description": "Optimise mobile view", | ||
"columnId": "column-doing" | ||
}, | ||
"MfiZXiLbzHnZ3GSE4SVe8": { | ||
"id": "MfiZXiLbzHnZ3GSE4SVe8", | ||
"description": "Update README - explain why we don't use sass. \n", | ||
"columnId": "column-todo" | ||
}, | ||
"3Jpxwcb60dUx093hDLZ6F": { | ||
"id": "3Jpxwcb60dUx093hDLZ6F", | ||
"description": "Add script to remove remix example and add sass \n- add keep-remix option", | ||
"columnId": "column-todo" | ||
} | ||
}, | ||
"columns": [ | ||
{ | ||
"id": "column-todo", | ||
"title": "To do", | ||
"tasksIds": [ | ||
"uUjYvxGR0oOu3Q1iJQler", | ||
"MfiZXiLbzHnZ3GSE4SVe8", | ||
"3Jpxwcb60dUx093hDLZ6F" | ||
] | ||
}, | ||
{ | ||
"id": "column-doing", | ||
"title": "Doing", | ||
"tasksIds": [ | ||
"5FPnfgSKUpHBbORBRtgui" | ||
] | ||
}, | ||
{ | ||
"id": "column-done", | ||
"title": "Done", | ||
"tasksIds": [ | ||
"hnmDBbQK5q6-GX3eIdtUP" | ||
] | ||
}, | ||
{ | ||
"id": "column-S6UGsrZqn5uTUGxNq5qGJ", | ||
"title": "Will not do", | ||
"tasksIds": [] | ||
} | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"recommendations": ["esbenp.prettier-vscode", "mayank1513.trello-kanban-task-board"] | ||
} |
Oops, something went wrong.