Skip to content

Commit 7fc469d

Browse files
Merge pull request #84 from buildingwatsize/feature-migrate-ts
merge feature migrate ts
2 parents 45c2b6e + d967486 commit 7fc469d

Some content is hidden

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

47 files changed

+6429
-2520
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
# Changelog
22

3+
## 🎉 Release - v2 🎉
4+
5+
## [v2.0.0] - `2024-09-09`
6+
7+
### Added
8+
9+
- `TypeScript` is now supported.
10+
- Added new props `noIntegratedStyle` which can be define to exclude integrated css
11+
12+
### Updated
13+
14+
- Updated dependencies
15+
316
## 🎉 Release - v1 🎉
417

518
## [v1.3.6] - `2024-08-15`
619

720
### Updated
821

9-
- dependencies
22+
- Updated dependencies
1023

1124
## [v1.3.5] - `2024-06-21`
1225

@@ -190,6 +203,7 @@ I have to skipping for the old versions which was unpublished once on first crea
190203

191204
- Initialized Project
192205

206+
[v2.0.0]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.0
193207
[v1.3.6]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v1.3.6
194208
[v1.3.5]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v1.3.5
195209
[v1.3.4]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v1.3.4

README.md

Lines changed: 22 additions & 21 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
*.DS_Store
3+
.next
4+
!.next/standalone
5+
!.next/static
6+
.gitignore
7+
README.md
8+
.dockerignore
9+
LICENSE
10+
.docker
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
38+
git_auto.sh
39+
certificates
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.next
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": [
3+
"prettier-plugin-tailwindcss"
4+
]
5+
}
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# 🔺 next-tailwind-ts 🔺
2+
3+
## 📘 About
4+
5+
The NextJS template with TypeScript, and tailwindcss for scaffolding your project.
6+
7+
## 📝 Table of Contents
8+
9+
- [🔺 next-tailwind-ts 🔺](#-next-tailwind-ts-)
10+
- [📘 About](#-about)
11+
- [📝 Table of Contents](#-table-of-contents)
12+
- [📦 Template contains](#-template-contains)
13+
- [💎 Pre-loaded dependencies](#-pre-loaded-dependencies)
14+
- [📝 Versions (Last 2 Minor Version)](#-versions-last-2-minor-version)
15+
- [v0.3.0 - `2024-09-04`](#v030---2024-09-04)
16+
- [v0.2.8 - `2024-08-15`](#v028---2024-08-15)
17+
- [v0.2.7 - `2024-08-15`](#v027---2024-08-15)
18+
- [v0.2.6 - `2024-04-18`](#v026---2024-04-18)
19+
- [v0.2.5 - `2024-04-17`](#v025---2024-04-17)
20+
- [v0.2.4 - `2024-02-21`](#v024---2024-02-21)
21+
- [v0.2.3 - `2024-02-07`](#v023---2024-02-07)
22+
- [v0.2.2 - `2024-02-06`](#v022---2024-02-06)
23+
- [v0.2.1 - `2024-02-06`](#v021---2024-02-06)
24+
- [v0.2.0 - `2024-01-30`](#v020---2024-01-30)
25+
- [v0.1.0 - `2023-12-28`](#v010---2023-12-28)
26+
- [Version History](#version-history)
27+
- [📌 Get Started](#-get-started)
28+
- [Want some more ?](#want-some-more-)
29+
30+
## 📦 Template contains
31+
32+
- [x] React 18.x
33+
- [x] NextJS 14.x
34+
- [x] TailwindCSS 3.x
35+
- [x] TypeScript 5.x
36+
37+
## 💎 Pre-loaded dependencies
38+
39+
```bash
40+
npx create-next-app@latest
41+
yarn add -D tailwindcss postcss autoprefixer
42+
npx tailwindcss init -p
43+
```
44+
45+
## 📝 Versions (Last 2 Minor Version)
46+
47+
### v0.3.0 - `2024-09-04`
48+
49+
- Added supported cacheHandler with Redis for scalable infrastructure
50+
- Added Prettier configuration files
51+
- Updated Docker and dockerignore
52+
- Fixed known vulnerabilities via `npx yarn-audit-fix`
53+
54+
### v0.2.8 - `2024-08-15`
55+
56+
- Updated dependencies
57+
58+
### v0.2.7 - `2024-08-15`
59+
60+
- Updated dependencies
61+
62+
### v0.2.6 - `2024-04-18`
63+
64+
- Updated dependencies
65+
66+
### v0.2.5 - `2024-04-17`
67+
68+
- Updated dependencies
69+
70+
### v0.2.4 - `2024-02-21`
71+
72+
- Updated dependencies
73+
74+
### v0.2.3 - `2024-02-07`
75+
76+
- Updated default csp header
77+
- Adjusted compiler config for non-production env
78+
79+
### v0.2.2 - `2024-02-06`
80+
81+
- Added default CSP (pre-defined)
82+
83+
### v0.2.1 - `2024-02-06`
84+
85+
- Updated Dependencies
86+
- Added default next config
87+
88+
### v0.2.0 - `2024-01-30`
89+
90+
- Updated Next 14.1
91+
92+
### v0.1.0 - `2023-12-28`
93+
94+
- Initialized code structure with [Pantone Color of the year 2024](https://www.pantone.com/color-of-the-year/2024)
95+
- Icon from [Google Material Icons](https://iconbuddy.app/ic)
96+
- Palette from [coolors](https://coolors.co/ffbe98-d35269-c7efcf-826aed-0c1821)
97+
98+
### Version History
99+
100+
... [more](./CHANGELOG.md)
101+
102+
## 📌 Get Started
103+
104+
1. Initialized (don't forget to rename `my-project`)
105+
106+
```bash
107+
npx degit buildingwatsize/next-tailwind-ts#main my-project
108+
```
109+
110+
2. Go to project folder
111+
112+
```bash
113+
cd my-project
114+
```
115+
116+
3. Set up dependencies
117+
118+
```bash
119+
yarn
120+
```
121+
122+
4. Run!
123+
124+
```bash
125+
yarn dev
126+
```
127+
128+
### Want some more ?
129+
130+
see [NextJS Doc](https://nextjs.org/docs)
131+
132+
🌈 NextJS Template – Made with ❤️ by Watsize 🌈
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/** @type {import('next').NextConfig} */
2+
const cspHeader = `
3+
script-src 'self' 'unsafe-eval' 'unsafe-inline';
4+
style-src 'self' 'unsafe-inline';
5+
img-src 'self' blob: data:;
6+
font-src 'self';
7+
object-src 'none';
8+
base-uri 'self';
9+
form-action 'self';
10+
frame-ancestors 'none';
11+
`;
12+
// default-src 'self';
13+
const nextConfig = {
14+
async headers() {
15+
return [
16+
{
17+
source: "/(.*)",
18+
headers: [
19+
{
20+
key: "Content-Security-Policy",
21+
value: cspHeader.replace(/\n/g, ""),
22+
},
23+
],
24+
},
25+
];
26+
},
27+
compiler: {
28+
// removeConsole: {
29+
// exclude: process.env.NODE_ENV === "production" ? ["error"] : [],
30+
// }, // suppress logs on production
31+
reactRemoveProperties: process.env.NODE_ENV === "production", // remove react properties on production (Included: ^data-test)
32+
},
33+
reactStrictMode: true,
34+
output: "standalone",
35+
};
36+
37+
module.exports = nextConfig;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "next-tailwind-ts",
3+
"version": "0.3.0",
4+
"scripts": {
5+
"dev": "next dev",
6+
"build": "next build",
7+
"start": "next start",
8+
"lint": "next lint"
9+
},
10+
"dependencies": {
11+
"next": "^14.2.5",
12+
"react": "link:../../node_modules/react",
13+
"react-datepicker": "^7.3.0",
14+
"react-dom": "link:../../node_modules/react-dom",
15+
"thaidatepicker-react": "file:../.."
16+
},
17+
"devDependencies": {
18+
"@types/node": "^22.3.0",
19+
"@types/react": "^18.3.3",
20+
"@types/react-dom": "^18.3.0",
21+
"@typescript-eslint/typescript-estree": "^8.1.0",
22+
"autoprefixer": "^10.4.20",
23+
"eslint": "^8.57.0",
24+
"eslint-config-next": "14.2.5",
25+
"postcss": "^8.4.41",
26+
"prettier": "^3.3.3",
27+
"prettier-plugin-tailwindcss": "^0.6.6",
28+
"tailwindcss": "^3.4.10",
29+
"typescript": "^5.5.4"
30+
}
31+
}

0 commit comments

Comments
 (0)