@skafform/create 0.2.2 → 0.2.3

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 (2) hide show
  1. package/dist/next.js +16 -0
  2. package/package.json +1 -1
package/dist/next.js CHANGED
@@ -140,6 +140,22 @@ function scaffoldNext(name, targetDir) {
140
140
  "};\n" +
141
141
  "\n" +
142
142
  "export default nextConfig;\n");
143
+ (0, fs_1.writeFileSync)((0, path_1.join)(targetDir, "config.ts"), "const config = {\n" +
144
+ " appName: \"My App\",\n" +
145
+ " appDescription: \"Built with Skafform\",\n" +
146
+ " plans: [] as {\n" +
147
+ " name: string\n" +
148
+ " price: number\n" +
149
+ " priceAnchor?: number\n" +
150
+ " planId: string\n" +
151
+ " mode?: \"payment\" | \"subscription\"\n" +
152
+ " description?: string\n" +
153
+ " features: { name: string }[]\n" +
154
+ " isFeatured: boolean\n" +
155
+ " }[],\n" +
156
+ "}\n" +
157
+ "\n" +
158
+ "export default config\n");
143
159
  console.log(`
144
160
  ┌─────────────────────────────────────────┐
145
161
  │ Skafform Next.js project ready. │
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skafform/create",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Scaffold a new Skafform project",
5
5
  "bin": {
6
6
  "create-skafform": "./dist/index.js"