Skip to content

Commit de2c5fd

Browse files
committed
feat:init
0 parents  commit de2c5fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+9307
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
end_of_line = lf
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/common.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
command_exists () {
2+
command -v "$1" >/dev/null 2>&1
3+
}
4+
5+
# Workaround for Windows 10, Git Bash
6+
if command_exists winpty && test -t 1; then
7+
exec < /dev/tty
8+
fi

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-exact=true
2+
strict-peer-dependencies=false

.prettierrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
printWidth: 100,
3+
tabWidth: 2,
4+
semi: false,
5+
singleQuote: true,
6+
quoteProps: 'as-needed',
7+
trailingComma: 'all',
8+
arrowParens: 'always',
9+
proseWrap: 'preserve',
10+
endOfLine: 'lf',
11+
}

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Abel Chang
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<p align="center">
2+
<img src="https://user-images.githubusercontent.com/26466516/107675802-36216b80-6c77-11eb-8db1-4d3407dc53d9.png" alt="Next.js and TypeScript">
3+
</p>
4+
5+
<p align="center">
6+
<img src="https://img.shields.io/static/v1?label=PRs&message=welcome&style=for-the-badge&color=24B36B&labelColor=000000" alt="PRs welcome!" />
7+
8+
<img alt="License" src="https://img.shields.io/github/license/chhpt/typescript-nextjs-starter?style=for-the-badge&color=24B36B&labelColor=000000">
9+
10+
<a href="https://twitter.com/intent/follow?screen_name=cwuyiqing">
11+
<img src="https://img.shields.io/twitter/follow/cwuyiqing?style=for-the-badge&color=24B36B&labelColor=000000" alt="Follow @chhpt" />
12+
</a>
13+
</p>
14+
15+
<br>
16+
17+
A full-featured Next.js starter that includes all you need to build amazing projects 🔥. Fork and customize from [jpedroschmitz](https://github.com/jpedroschmitz/typescript-nextjs-starter)
18+
19+
- 🚀 **Next.js 15 App Router & React 18**
20+
- ⚙️ **Tailwind CSS 3** - A utility-first CSS framework
21+
- 🍓 **Styled Components** - Styling React component
22+
- 📏 **ESLint** — Pluggable JavaScript linter
23+
- 💖 **Prettier** - Opinionated Code Formatter
24+
- 🐶 **Husky** — Use git hooks with ease
25+
- 🚫 **lint-staged** - Run linters against staged git files
26+
- 😁 **shadcn** - Beautifully designed components that you can copy and paste into your apps.
27+
- 🗂 **Absolute import** - Import folders and files using the `@` prefix
28+
- 🤩 **Vercel Serverless/Edge Functions** - Serverless/Edge functions for Next.js
29+
30+
## 🚀 Getting started
31+
32+
The best way to start with this template is using `create-next-app`.
33+
34+
```
35+
npx create-next-app ts-next -e https://github.com/chhpt/nextjs-starter
36+
```
37+
38+
or
39+
40+
```
41+
pnpm create next-app ts-next -e https://github.com/chhpt/nextjs-starter
42+
```
43+
44+
If you prefer you can clone this repository and run the following commands inside the project folder:
45+
46+
1. `pnpm install` or `npm install`;
47+
2. `pnpm dev`;
48+
49+
To view the project open `http://localhost:3000`.
50+
51+
## 🤝 Contributing
52+
53+
1. Fork this repository;
54+
2. Create your branch: `git checkout -b my-new-feature`;
55+
3. Commit your changes: `git commit -m 'Add some feature'`;
56+
4. Push to the branch: `git push origin my-new-feature`.
57+
58+
**After your pull request is merged**, you can safely delete your branch.
59+
60+
## 📝 License
61+
62+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for more information.
63+
64+
---
65+
66+
Made with ♥ by Clare Chang

components.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/app/globals.css",
9+
"baseColor": "gray",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

0 commit comments

Comments
 (0)