Skip to content

Commit cfb7ead

Browse files
committed
feat: create-pizza-app package
1 parent 40a4d8d commit cfb7ead

18 files changed

+4001
-64
lines changed

.changeset/spotty-pugs-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-pizza-app': minor
3+
---
4+
5+
add create-pizza-app package
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.wireit/
2+
dist/
3+
node_modules/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Create a new PizzaJS app.
2+
3+
```sh
4+
npx create-pizzajs-app my-app
5+
```

packages/create-pizza-app/cli.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env node
2+
import process from 'node:process'
3+
4+
import { createReactRouter } from './src/index'
5+
6+
process.on('SIGINT', () => process.exit(0))
7+
process.on('SIGTERM', () => process.exit(0))
8+
9+
let argv = process.argv.slice(2).filter((arg) => arg !== '--')
10+
11+
createReactRouter(argv).then(
12+
() => process.exit(0),
13+
() => process.exit(1),
14+
)
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"name": "create-pizza-app",
3+
"version": "0.3.0",
4+
"description": "Create a new PizzaJS app",
5+
"homepage": "https://pizzajs.dev",
6+
"bugs": {
7+
"url": "https://github.com/pizzajsdev/pizzajs/issues"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/pizzajsdev/pizzajs",
12+
"directory": "packages/create-pizza-app"
13+
},
14+
"license": "MIT",
15+
"exports": {
16+
"./package.json": "./package.json"
17+
},
18+
"bin": {
19+
"create-pizza-app": "dist/cli.js"
20+
},
21+
"files": [
22+
"dist/",
23+
"CHANGELOG.md",
24+
"README.md"
25+
],
26+
"scripts": {
27+
"build": "wireit",
28+
"postbuild": "publint",
29+
"lint": "npm run typecheck",
30+
"typecheck": "tsc"
31+
},
32+
"dependencies": {
33+
"@remix-run/web-fetch": "^4.4.2",
34+
"arg": "^5.0.2",
35+
"chalk": "^5.4.1",
36+
"execa": "9.5.3",
37+
"fs-extra": "^11.3.0",
38+
"gunzip-maybe": "^1.4.2",
39+
"log-update": "^6.1.0",
40+
"proxy-agent": "^6.5.0",
41+
"recursive-readdir": "^2.2.3",
42+
"semver": "^7.7.1",
43+
"sisteransi": "^1.0.5",
44+
"sort-package-json": "^3.2.1",
45+
"strip-ansi": "^7.1.0",
46+
"tar-fs": "^3.0.8"
47+
},
48+
"devDependencies": {
49+
"@types/fs-extra": "^11.0.4",
50+
"@types/gunzip-maybe": "^1.4.2",
51+
"@types/recursive-readdir": "^2.2.4",
52+
"@types/semver": "^7.7.0",
53+
"@types/tar-fs": "^2.0.4",
54+
"esbuild": "0.25.4",
55+
"esbuild-register": "^3.6.0",
56+
"msw": "^2.8.2",
57+
"publint": "^0.3.12",
58+
"tiny-invariant": "^1.3.3",
59+
"tsup": "^8.4.0",
60+
"typescript": "^5.8.3",
61+
"wireit": "0.14.12"
62+
},
63+
"engines": {
64+
"node": ">=18.0.0"
65+
},
66+
"wireit": {
67+
"build": {
68+
"command": "tsup",
69+
"files": [
70+
"*.ts",
71+
"tsconfig.json",
72+
"package.json"
73+
],
74+
"output": [
75+
"dist/**"
76+
]
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)