@shipindays/shipindays 0.1.3 → 0.1.5
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.
- package/README.md +1 -1
- package/index.js +0 -23
- package/package.json +1 -1
- package/templates/base/AGENTS.md +5 -0
- package/templates/base/CLAUDE.md +1 -0
- package/templates/base/README.md +36 -0
- package/templates/base/eslint.config.mjs +18 -0
- package/templates/base/next.config.ts +7 -0
- package/templates/base/package-lock.json +6701 -0
- package/templates/base/package.json +26 -0
- package/templates/base/postcss.config.mjs +7 -0
- package/templates/base/public/file.svg +1 -0
- package/templates/base/public/globe.svg +1 -0
- package/templates/base/public/next.svg +1 -0
- package/templates/base/public/vercel.svg +1 -0
- package/templates/base/public/window.svg +1 -0
- package/templates/base/src/app/(auth)/login/page.tsx +114 -0
- package/templates/base/src/app/(auth)/signup/page.tsx +130 -0
- package/templates/base/src/app/dashboard/page.tsx +59 -0
- package/templates/base/src/app/favicon.ico +0 -0
- package/templates/base/src/app/globals.css +26 -0
- package/templates/base/src/app/layout.tsx +33 -0
- package/templates/base/src/app/page.tsx +46 -0
- package/templates/base/src/components/auth/logout-button.tsx +36 -0
- package/templates/base/src/components/branding/powered-by-shipindays.tsx +39 -0
- package/templates/base/src/lib/auth/index.ts +24 -0
- package/templates/base/src/middleware.ts +14 -0
- package/templates/base/tsconfig.json +34 -0
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -397,16 +397,6 @@ async function main() {
|
|
|
397
397
|
email: emailProvider,
|
|
398
398
|
};
|
|
399
399
|
|
|
400
|
-
// ── 4. Git + install ───────────────────────────────────────────────────────
|
|
401
|
-
const initGit = await p.confirm({
|
|
402
|
-
message: "Initialize a git repository?",
|
|
403
|
-
initialValue: true,
|
|
404
|
-
});
|
|
405
|
-
if (p.isCancel(initGit)) {
|
|
406
|
-
p.cancel("Cancelled.");
|
|
407
|
-
process.exit(0);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
400
|
const pm = detectPM();
|
|
411
401
|
const install = await p.confirm({
|
|
412
402
|
message: `Install dependencies with ${pm}?`,
|
|
@@ -473,19 +463,6 @@ async function main() {
|
|
|
473
463
|
}
|
|
474
464
|
spin.stop("package.json configured.");
|
|
475
465
|
|
|
476
|
-
// ── 11. Git init ───────────────────────────────────────────────────────────
|
|
477
|
-
if (initGit) {
|
|
478
|
-
spin.start("Initialising git...");
|
|
479
|
-
try {
|
|
480
|
-
run("git init", targetPath);
|
|
481
|
-
run("git add -A", targetPath);
|
|
482
|
-
run(`git commit -m "chore: scaffold from shipindays"`, targetPath);
|
|
483
|
-
spin.stop("Git initialised.");
|
|
484
|
-
} catch {
|
|
485
|
-
spin.stop(chalk.yellow("Git skipped — run manually."));
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
|
|
489
466
|
// ── 12. Install dependencies ───────────────────────────────────────────────
|
|
490
467
|
if (install) {
|
|
491
468
|
spin.start(`Installing with ${pm}...`);
|
package/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<!-- BEGIN:nextjs-agent-rules -->
|
|
2
|
+
# This is NOT the Next.js you know
|
|
3
|
+
|
|
4
|
+
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
|
5
|
+
<!-- END:nextjs-agent-rules -->
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
|
2
|
+
|
|
3
|
+
## Getting Started
|
|
4
|
+
|
|
5
|
+
First, run the development server:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm run dev
|
|
9
|
+
# or
|
|
10
|
+
yarn dev
|
|
11
|
+
# or
|
|
12
|
+
pnpm dev
|
|
13
|
+
# or
|
|
14
|
+
bun dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
18
|
+
|
|
19
|
+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
|
20
|
+
|
|
21
|
+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
|
22
|
+
|
|
23
|
+
## Learn More
|
|
24
|
+
|
|
25
|
+
To learn more about Next.js, take a look at the following resources:
|
|
26
|
+
|
|
27
|
+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
28
|
+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
29
|
+
|
|
30
|
+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
|
31
|
+
|
|
32
|
+
## Deploy on Vercel
|
|
33
|
+
|
|
34
|
+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
35
|
+
|
|
36
|
+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from "eslint/config";
|
|
2
|
+
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
3
|
+
import nextTs from "eslint-config-next/typescript";
|
|
4
|
+
|
|
5
|
+
const eslintConfig = defineConfig([
|
|
6
|
+
...nextVitals,
|
|
7
|
+
...nextTs,
|
|
8
|
+
// Override default ignores of eslint-config-next.
|
|
9
|
+
globalIgnores([
|
|
10
|
+
// Default ignores of eslint-config-next:
|
|
11
|
+
".next/**",
|
|
12
|
+
"out/**",
|
|
13
|
+
"build/**",
|
|
14
|
+
"next-env.d.ts",
|
|
15
|
+
]),
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
export default eslintConfig;
|