Skip to content

Commit d31ac82

Browse files
authored
Merge pull request #2 from mayank1513/prepare-for-transfer
Prepare for transfer
2 parents 27f4162 + a1c9ab8 commit d31ac82

File tree

8 files changed

+111
-92
lines changed

8 files changed

+111
-92
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- cron: "0 */8 * * *"
88
jobs:
99
generate-docs:
10-
if: github.event.repository.owner.login == 'mayank1513'
10+
if: github.event.repository.owner.login == 'react18-tools'
1111
runs-on: ubuntu-latest
1212
permissions:
1313
packages: write
@@ -37,7 +37,7 @@ jobs:
3737
run: pnpm doc
3838
- name: Setup Git
3939
run: |
40-
git config --global user.name "mayank1513"
40+
git config --global user.name "react18-tools"
4141
git config --global user.email "[email protected]"
4242
git fetch
4343
git checkout main

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
publish:
1111
# Don't run just after creating repo from template
1212
# Also avoid running after merging set-up PR
13-
if: github.run_number > 2 && github.event.repository.owner.login == 'mayank1513'
13+
if: github.run_number > 2 && github.event.repository.owner.login == 'react18-tools'
1414
runs-on: ubuntu-latest
1515
permissions:
1616
packages: write
@@ -55,3 +55,12 @@ jobs:
5555
TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656
OWNER: ${{ github.event.repository.owner.login }}
5757
REPO: ${{ github.event.repository.name }}
58+
59+
- name: Publish package with long name for better SEO
60+
continue-on-error: true
61+
run: |
62+
cd dist
63+
sed -i -e "s/.*name.*/\t\"name\": \"nextjs-themes-ultralight\",/" package.json
64+
npm publish --provenance --access public
65+
env:
66+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.tkb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@
1919
"fqhes_YS14GQopOUs7K-7": {
2020
"id": "fqhes_YS14GQopOUs7K-7",
2121
"description": "update workflows to replace mayank1513",
22-
"columnId": "column-todo"
22+
"columnId": "column-done"
2323
},
2424
"-FlzW8htLo-6jz5-ZqjEx": {
2525
"id": "-FlzW8htLo-6jz5-ZqjEx",
2626
"description": "update examples to showcase edge cases",
2727
"columnId": "column-todo"
28+
},
29+
"5fLtFF1sHPxsPjq-wWOxv": {
30+
"id": "5fLtFF1sHPxsPjq-wWOxv",
31+
"description": "Fix turbo-repo template bug - replacing only first doc link in readme --- look at the [doc] with [TypeDoc]",
32+
"columnId": "column-todo"
2833
}
2934
},
3035
"columns": [
@@ -33,8 +38,8 @@
3338
"title": "To do",
3439
"tasksIds": [
3540
"RtA7NBfPOlfnVHqk54rMD",
36-
"fqhes_YS14GQopOUs7K-7",
37-
"-FlzW8htLo-6jz5-ZqjEx"
41+
"-FlzW8htLo-6jz5-ZqjEx",
42+
"5fLtFF1sHPxsPjq-wWOxv"
3843
]
3944
},
4045
{
@@ -46,6 +51,7 @@
4651
"id": "column-done",
4752
"title": "Done",
4853
"tasksIds": [
54+
"fqhes_YS14GQopOUs7K-7",
4955
"task-ZJpp-dpxx3KxRMsAPNuMC",
5056
"4CTOhRPjKrEAW5AHYsV7P"
5157
]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nextjs-Themes-Ultralight
22

3-
[![test](https://github.com/mayank1513/nthul/actions/workflows/test.yml/badge.svg)](https://github.com/mayank1513/nthul/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/aa896ec14c570f3bb274/maintainability)](https://codeclimate.com/github/mayank1513/nthul/maintainability) [![codecov](https://codecov.io/gh/mayank1513/nthul/graph/badge.svg)](https://codecov.io/gh/mayank1513/nthul) [![Version](https://img.shields.io/npm/v/nthul.svg?colorB=green)](https://www.npmjs.com/package/nthul) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/nthul.svg)](https://www.npmjs.com/package/nthul) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/nthul) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)
3+
[![test](https://github.com/react18-tools/nthul/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/nthul/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/aa896ec14c570f3bb274/maintainability)](https://codeclimate.com/github/react18-tools/nthul/maintainability) [![codecov](https://codecov.io/gh/react18-tools/nthul/graph/badge.svg)](https://codecov.io/gh/react18-tools/nthul) [![Version](https://img.shields.io/npm/v/nthul.svg?colorB=green)](https://www.npmjs.com/package/nthul) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/nthul.svg)](https://www.npmjs.com/package/nthul) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/nthul) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)
44

55
## Features
66

@@ -32,7 +32,7 @@ This template offers following pre-configured features. Additionally, your repo
3232

3333
✅ Workflow to automatically rebrand entire template based on the name of the repo you create from this template. (As soon as you create a repo from this template, setup workflow is triggered which renames nthul to your repo name and does lots of other fixes to set you up and running.)
3434

35-
✅ With all these features, this readme file contains a quick checklist for you to configure Codecov and other badges, setup your docs website on GitHub pages, etc. See [Checklist](https://github.com/mayank1513/nthul/#checklist).
35+
✅ With all these features, this readme file contains a quick checklist for you to configure Codecov and other badges, setup your docs website on GitHub pages, etc. See [Checklist](https://github.com/react18-tools/nthul/#checklist).
3636

3737
#### Create a library that is
3838

@@ -44,7 +44,7 @@ This template offers following pre-configured features. Additionally, your repo
4444

4545
✅ Works with all build systems/tools/frameworks for React18
4646

47-
✅ Doccumented with [Typedoc](https://mayank1513.github.io/nthul) ([Docs](https://react18-tools.github.io/turborepo-template))
47+
✅ Doccumented with [Typedoc](https://react18-tools.github.io/nthul) ([Docs](https://react18-tools.github.io/nthul))
4848

4949
## Install
5050

@@ -86,7 +86,7 @@ $ yarn add nthul
8686
- [ ] Create your library and update examples
8787
- [ ] Update README
8888
- [ ] Setup GitHub pages to deploy docs
89-
- [ ] Go to [repo settings](https://github.com/mayank1513/nthul/settings/pages) -> pages (On left panel); Select deploy from a branch; Then Select `main` and `/docs`
89+
- [ ] Go to [repo settings](https://github.com/react18-tools/nthul/settings/pages) -> pages (On left panel); Select deploy from a branch; Then Select `main` and `/docs`
9090
- [ ] Push your changes/Create PR and see your library being automatically tested and published
9191
- [ ] Optionally deploy your example(s) to Vercel.
9292
- [ ] You are most welcome to star this template, contribute, and/or sponsor the `terbo-repo-template` project or my other open-source work
@@ -144,7 +144,7 @@ Learn more about the power of Turborepo:
144144
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
145145
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
146146

147-
### 🤩 Don't forger to start [this repo](https://github.com/mayank1513/nthul)!
147+
### 🤩 Don't forger to start [this repo](https://github.com/react18-tools/nthul)!
148148

149149
Want hands-on course for getting started with Turborepo? Check out [React and Next.js with TypeScript](https://mayank-chaudhari.vercel.app/courses/react-and-next-js-with-typescript) and [The Game of Chess with Next.js, React and TypeScrypt](https://www.udemy.com/course/game-of-chess-with-nextjs-react-and-typescrypt/?referralCode=851A28F10B254A8523FE)
150150

lib/nthul/package.json

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
11
{
2-
"name": "nthul",
3-
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
4-
"private": false,
5-
"version": "0.0.0",
6-
"description": "An intuitive React.js fork me ribbon component for promoting open source project forks.",
7-
"main": "./index.ts",
8-
"types": "./index.ts",
9-
"repository": {
10-
"type": "git",
11-
"url": "git+https://github.com/mayank1513/nthul.git"
12-
},
13-
"bugs": {
14-
"url": "https://github.com/mayank1513/nthul/issues"
15-
},
16-
"homepage": "https://github.com/mayank1513/nthul/tree/main/lib/fork-me#readme",
17-
"sideEffects": false,
18-
"license": "MIT",
19-
"scripts": {
20-
"test": "vitest run --coverage",
21-
"build": "tsup src && tsc -p tsconfig-build.json && node touchup.js",
22-
"doc": "typedoc",
23-
"publish-package": "cd dist && npm publish --provenance --access public",
24-
"lint": "eslint ."
25-
},
26-
"devDependencies": {
27-
"@testing-library/react": "^14.2.1",
28-
"@turbo/gen": "^1.12.4",
29-
"@types/node": "^20.11.19",
30-
"@types/react": "^18.2.57",
31-
"@types/react-dom": "^18.2.19",
32-
"@vitejs/plugin-react": "^4.2.1",
33-
"@vitest/coverage-v8": "^1.3.1",
34-
"esbuild-plugin-css-module": "^0.0.1",
35-
"esbuild-plugin-react18": "^0.0.7",
36-
"eslint-config-custom": "workspace:*",
37-
"jsdom": "^24.0.0",
38-
"octokit": "^3.1.2",
39-
"react": "^18.2.0",
40-
"tsconfig": "workspace:*",
41-
"tsup": "^8.0.2",
42-
"typedoc": "^0.25.8",
43-
"typescript": "^5.3.3",
44-
"vite-tsconfig-paths": "^4.3.1",
45-
"vitest": "^1.3.1"
46-
},
47-
"peerDependencies": {
48-
"@types/react": "16.8 - 18",
49-
"next": "10 - 14",
50-
"react": "16.8 - 18"
51-
},
52-
"peerDependenciesMeta": {
53-
"next": {
54-
"optional": true
55-
}
56-
},
57-
"funding": {
58-
"type": "github",
59-
"url": "https://github.com/sponsors/mayank1513"
60-
},
61-
"keywords": [
62-
"fork-me",
63-
"GitHub",
64-
"nextjs",
65-
"nextjs13",
66-
"react",
67-
"react18",
68-
"react-server-components",
69-
"react-client-components",
70-
"typescript",
71-
"javascript",
72-
"mayank1513",
73-
"turborepo-trmplate"
74-
],
75-
"dependencies": {
76-
"r18gs": "^0.0.2"
77-
}
78-
}
2+
"name": "nthul",
3+
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
4+
"private": false,
5+
"version": "0.0.0",
6+
"description": "An intuitive React.js fork me ribbon component for promoting open source project forks.",
7+
"main": "./index.ts",
8+
"types": "./index.ts",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/react18-tools/nthul.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/react18-tools/nthul/issues"
15+
},
16+
"homepage": "https://github.com/react18-tools/nthul/tree/main/lib/fork-me#readme",
17+
"sideEffects": false,
18+
"license": "MIT",
19+
"scripts": {
20+
"test": "vitest run --coverage",
21+
"build": "tsup src && tsc -p tsconfig-build.json && node touchup.js",
22+
"doc": "typedoc",
23+
"publish-package": "cd dist && npm publish --provenance --access public",
24+
"lint": "eslint ."
25+
},
26+
"devDependencies": {
27+
"@testing-library/react": "^14.2.1",
28+
"@turbo/gen": "^1.12.4",
29+
"@types/node": "^20.11.19",
30+
"@types/react": "^18.2.57",
31+
"@types/react-dom": "^18.2.19",
32+
"@vitejs/plugin-react": "^4.2.1",
33+
"@vitest/coverage-v8": "^1.3.1",
34+
"esbuild-plugin-css-module": "^0.0.1",
35+
"esbuild-plugin-react18": "^0.0.7",
36+
"eslint-config-custom": "workspace:*",
37+
"jsdom": "^24.0.0",
38+
"octokit": "^3.1.2",
39+
"react": "^18.2.0",
40+
"tsconfig": "workspace:*",
41+
"tsup": "^8.0.2",
42+
"typedoc": "^0.25.8",
43+
"typescript": "^5.3.3",
44+
"vite-tsconfig-paths": "^4.3.1",
45+
"vitest": "^1.3.1"
46+
},
47+
"peerDependencies": {
48+
"@types/react": "16.8 - 18",
49+
"next": "10 - 14",
50+
"react": "16.8 - 18"
51+
},
52+
"peerDependenciesMeta": {
53+
"next": {
54+
"optional": true
55+
}
56+
},
57+
"funding": {
58+
"type": "github",
59+
"url": "https://github.com/sponsors/mayank1513"
60+
},
61+
"keywords": [
62+
"fork-me",
63+
"GitHub",
64+
"nextjs",
65+
"nextjs13",
66+
"react",
67+
"react18",
68+
"react-server-components",
69+
"react-client-components",
70+
"typescript",
71+
"javascript",
72+
"mayank1513",
73+
"turborepo-trmplate"
74+
],
75+
"dependencies": {
76+
"r18gs": "^0.0.2"
77+
}
78+
}

packages/shared-ui/src/cards/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { Card } from "./card";
44

55
const cards = [
66
{
7-
href: "https://mayank1513.github.io/nthul/",
7+
href: "https://react18-tools.github.io/nthul/",
88
title: "Docs",
99
description: "Explore the official docs.",
1010
},
1111
{
12-
href: "https://github.com/mayank1513/nthul",
12+
href: "https://github.com/react18-tools/nthul",
1313
title: "More Examples",
1414
description: "Explore more examples on official GitHub Repo.",
1515
},

packages/shared-ui/src/cards/star-me-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styles from "./cards.module.css";
33

44
export function StarMeCard() {
55
return (
6-
<StarMe className={styles.card} gitHubUrl="https://github.com/mayank1513/nthul">
6+
<StarMe className={styles.card} gitHubUrl="https://github.com/react18-tools/nthul">
77
<h2>
88
Star this repo <span>-&gt;</span>
99
</h2>

packages/shared-ui/src/root-layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export function SharedRootLayout({ children, className = "", ...props }: SharedR
2222
<Cards />
2323
</main>
2424
<Footer />
25-
<ForkMe bgColor="var(--text-color)" gitHubUrl="https://github.com/mayank1513/nthul" textColor="var(--bg-color)" />
25+
<ForkMe
26+
bgColor="var(--text-color)"
27+
gitHubUrl="https://github.com/react18-tools/nthul"
28+
textColor="var(--bg-color)"
29+
/>
2630
</>
2731
);
2832
}

0 commit comments

Comments
 (0)