create-next-ai-ready 0.1.0-alpha.10
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/LICENSE +21 -0
- package/README.md +11 -0
- package/index.js +46 -0
- package/package.json +17 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 next-ai-ready contributors
|
|
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.
|
package/README.md
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* create-next-ai-ready — minimal scaffold (R-10).
|
|
4
|
+
* Usage: npm create next-ai-ready@alpha my-app
|
|
5
|
+
*/
|
|
6
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
7
|
+
import { join, resolve } from "node:path";
|
|
8
|
+
|
|
9
|
+
async function main() {
|
|
10
|
+
const target = process.argv[2] ?? "my-ai-ready-app";
|
|
11
|
+
const dir = resolve(process.cwd(), target);
|
|
12
|
+
await mkdir(dir, { recursive: true });
|
|
13
|
+
|
|
14
|
+
await writeFile(
|
|
15
|
+
join(dir, "package.json"),
|
|
16
|
+
JSON.stringify(
|
|
17
|
+
{
|
|
18
|
+
name: target,
|
|
19
|
+
version: "0.0.0",
|
|
20
|
+
private: true,
|
|
21
|
+
scripts: { dev: "next dev", build: "next build", start: "next start" },
|
|
22
|
+
dependencies: {
|
|
23
|
+
next: "^15.0.0",
|
|
24
|
+
react: "^19.0.0",
|
|
25
|
+
"react-dom": "^19.0.0",
|
|
26
|
+
"next-ai-ready": "alpha",
|
|
27
|
+
zod: "^4.4.3",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
null,
|
|
31
|
+
2,
|
|
32
|
+
) + "\n",
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
console.log(`[create-next-ai-ready] created ${dir}`);
|
|
36
|
+
console.log(
|
|
37
|
+
"[create-next-ai-ready] next: cd",
|
|
38
|
+
target,
|
|
39
|
+
"&& pnpm install && pnpm exec next-ai-ready init && pnpm exec next-ai-ready build",
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
main().catch((err) => {
|
|
44
|
+
console.error(err);
|
|
45
|
+
process.exit(1);
|
|
46
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-next-ai-ready",
|
|
3
|
+
"version": "0.1.0-alpha.10",
|
|
4
|
+
"description": "Scaffold a Next.js app with next-ai-ready pre-wired.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"create-next-ai-ready": "./index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
}
|
|
17
|
+
}
|