nextjs-starter-kit 0.1.13 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/package.json +3 -3
  2. package/template/.github/workflows/ci-cd.yml +55 -0
  3. package/template/.husky/pre-commit +1 -1
  4. package/template/bun.lock +66 -329
  5. package/template/components.json +3 -2
  6. package/template/eslint.config.mjs +2 -1
  7. package/template/lint-staged.config.js +14 -5
  8. package/template/next.config.mjs +9 -0
  9. package/template/package.json +38 -49
  10. package/template/postcss.config.mjs +3 -1
  11. package/template/src/app/loading.jsx +12 -0
  12. package/template/src/components/ui/container.jsx +1 -5
  13. package/template/src/components/ui/headings.jsx +9 -9
  14. package/template/src/components/ui/image.jsx +16 -4
  15. package/template/src/components/ui/sonner.jsx +15 -0
  16. package/template/src/components/ui/spinner.jsx +15 -0
  17. package/template/src/fonts/fonts.js +12 -0
  18. package/template/src/hooks/useMobile.js +21 -0
  19. package/template/src/hooks/useMount.js +8 -0
  20. package/template/src/styles/globals.css +24 -23
  21. package/template/.github/workflows/pr_check.yml +0 -38
  22. package/template/README.md +0 -165
  23. package/template/src/components/ui/accordion.jsx +0 -53
  24. package/template/src/components/ui/alert-dialog.jsx +0 -136
  25. package/template/src/components/ui/alert.jsx +0 -59
  26. package/template/src/components/ui/avatar.jsx +0 -44
  27. package/template/src/components/ui/badge.jsx +0 -40
  28. package/template/src/components/ui/breadcrumb.jsx +0 -96
  29. package/template/src/components/ui/button.jsx +0 -49
  30. package/template/src/components/ui/calendar.jsx +0 -221
  31. package/template/src/components/ui/card.jsx +0 -92
  32. package/template/src/components/ui/carousel.jsx +0 -217
  33. package/template/src/components/ui/chart.jsx +0 -332
  34. package/template/src/components/ui/checkbox.jsx +0 -29
  35. package/template/src/components/ui/collapsible.jsx +0 -27
  36. package/template/src/components/ui/command.jsx +0 -156
  37. package/template/src/components/ui/dialog.jsx +0 -127
  38. package/template/src/components/ui/drawer.jsx +0 -114
  39. package/template/src/components/ui/dropdown-menu.jsx +0 -210
  40. package/template/src/components/ui/form.jsx +0 -140
  41. package/template/src/components/ui/input-otp.jsx +0 -66
  42. package/template/src/components/ui/input.jsx +0 -21
  43. package/template/src/components/ui/label.jsx +0 -21
  44. package/template/src/components/ui/pagination.jsx +0 -105
  45. package/template/src/components/ui/popover.jsx +0 -42
  46. package/template/src/components/ui/progress.jsx +0 -27
  47. package/template/src/components/ui/select.jsx +0 -157
  48. package/template/src/components/ui/separator.jsx +0 -28
  49. package/template/src/components/ui/sheet.jsx +0 -117
  50. package/template/src/components/ui/skeleton.jsx +0 -13
  51. package/template/src/components/ui/slider.jsx +0 -63
  52. package/template/src/components/ui/switch.jsx +0 -28
  53. package/template/src/components/ui/table.jsx +0 -113
  54. package/template/src/components/ui/tabs.jsx +0 -54
  55. package/template/src/components/ui/textarea.jsx +0 -18
  56. package/template/src/components/ui/tooltip.jsx +0 -49
  57. package/template/src/styles/fonts.js +0 -30
  58. /package/template/.github/{PR_REQUEST_TEMPLATE.md → PULL_REQUEST_TEMPLATE.md} +0 -0
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "nextjs-starter-kit",
3
- "version": "0.1.13",
3
+ "version": "1.0.2",
4
4
  "bin": {
5
- "create-nextjs-starter": "./bin/cli.js"
5
+ "create-nextjs-starter": "bin/cli.js"
6
6
  },
7
7
  "keywords": [
8
8
  "react",
@@ -41,4 +41,4 @@
41
41
  "minimumChangeThreshold": 0,
42
42
  "showDetails": true
43
43
  }
44
- }
44
+ }
@@ -0,0 +1,55 @@
1
+ name: CI/CD Pipeline
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - dev
7
+ - test
8
+ - prod
9
+ pull_request:
10
+ branches:
11
+ - dev
12
+ - test
13
+ - prod
14
+
15
+ jobs:
16
+ lint-and-build:
17
+ name: Lint, Check, and Build
18
+ runs-on: ubuntu-latest
19
+
20
+ env:
21
+ NODE_ENV: production
22
+ PORT: "3000"
23
+
24
+ steps:
25
+ - name: Checkout
26
+ uses: actions/checkout@v4
27
+
28
+ - name: Setup Bun
29
+ uses: oven-sh/setup-bun@v1
30
+ with:
31
+ bun-version: latest
32
+
33
+ - name: Cache Bun Dependencies
34
+ uses: actions/cache@v3
35
+ with:
36
+ path: |
37
+ ~/.bun/install/cache
38
+ node_modules
39
+ key: bun-${{ runner.os }}-${{ hashFiles('bun.lockb') }}
40
+ restore-keys: bun-${{ runner.os }}-
41
+
42
+ - name: Install Dependencies
43
+ run: bun install
44
+
45
+ - name: Check Formatting
46
+ run: bun check
47
+
48
+ - name: Format Code
49
+ run: bun format
50
+
51
+ - name: Lint Code
52
+ run: bun lint
53
+
54
+ - name: Run Build
55
+ run: bun run build
@@ -1 +1 @@
1
- pnpm lint-staged
1
+ bunx lint-staged