create-plasmic-app 0.0.145 → 0.0.146
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/dist/nextjs/nextjs.js
CHANGED
|
@@ -40,7 +40,7 @@ exports.nextjsStrategy = {
|
|
|
40
40
|
const experimentalAppArg = ((_a = platformOptions.nextjs) === null || _a === void 0 ? void 0 : _a.appDir)
|
|
41
41
|
? "--app"
|
|
42
42
|
: "--no-app";
|
|
43
|
-
const templateArg = template ? ` --
|
|
43
|
+
const templateArg = template ? ` --example ${template}` : "";
|
|
44
44
|
// TODO: Change to latest when nextjs stops using react@19-rc
|
|
45
45
|
const createCommand = `npx create-next-app@14 ${projectPath} ${typescriptArg} ${experimentalAppArg} ${templateArg}` +
|
|
46
46
|
` --eslint --no-src-dir --import-alias "@/*" --no-tailwind`;
|
|
@@ -23,7 +23,10 @@ const plasmic_host_1 = require("./templates/file-router/plasmic-host");
|
|
|
23
23
|
const root_1 = require("./templates/file-router/root");
|
|
24
24
|
exports.tanstackStrategy = {
|
|
25
25
|
create: (args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
-
const { projectPath } = args;
|
|
26
|
+
const { projectPath, template } = args;
|
|
27
|
+
if (template) {
|
|
28
|
+
console.warn(`Warning: Ignoring template '${template}' (argument is not supported by TanStack).`);
|
|
29
|
+
}
|
|
27
30
|
/* create-tsrouter-app package receives the projectName as an argument, when we provide a fullProjectPath, it creates
|
|
28
31
|
package.json with name having the fullProjectPath causing illegal characters in the name field error.
|
|
29
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.146",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"validate-npm-package-name": "^3.0.0",
|
|
48
48
|
"yargs": "^16.2.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "829025b05d0421d275395c51c54a434cedf8a176"
|
|
51
51
|
}
|
package/src/nextjs/nextjs.ts
CHANGED
|
@@ -30,7 +30,7 @@ export const nextjsStrategy: CPAStrategy = {
|
|
|
30
30
|
const experimentalAppArg = platformOptions.nextjs?.appDir
|
|
31
31
|
? "--app"
|
|
32
32
|
: "--no-app";
|
|
33
|
-
const templateArg = template ? ` --
|
|
33
|
+
const templateArg = template ? ` --example ${template}` : "";
|
|
34
34
|
// TODO: Change to latest when nextjs stops using react@19-rc
|
|
35
35
|
const createCommand =
|
|
36
36
|
`npx create-next-app@14 ${projectPath} ${typescriptArg} ${experimentalAppArg} ${templateArg}` +
|
package/src/tanstack/tanstack.ts
CHANGED
|
@@ -10,7 +10,12 @@ import { makeCustomRoot_file_router_codegen } from "./templates/file-router/root
|
|
|
10
10
|
|
|
11
11
|
export const tanstackStrategy: CPAStrategy = {
|
|
12
12
|
create: async (args) => {
|
|
13
|
-
const { projectPath } = args;
|
|
13
|
+
const { projectPath, template } = args;
|
|
14
|
+
if (template) {
|
|
15
|
+
console.warn(
|
|
16
|
+
`Warning: Ignoring template '${template}' (argument is not supported by TanStack).`
|
|
17
|
+
);
|
|
18
|
+
}
|
|
14
19
|
|
|
15
20
|
/* create-tsrouter-app package receives the projectName as an argument, when we provide a fullProjectPath, it creates
|
|
16
21
|
package.json with name having the fullProjectPath causing illegal characters in the name field error.
|