create-plasmic-app 0.0.169 → 0.0.170
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 +23 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,3 +7,26 @@ The easiest way to get started with Plasmic for a new code base is with `create-
|
|
|
7
7
|
```bash
|
|
8
8
|
npx create-plasmic-app
|
|
9
9
|
```
|
|
10
|
+
|
|
11
|
+
## Package manager
|
|
12
|
+
|
|
13
|
+
By default, `create-plasmic-app` uses the package manager that launched it.
|
|
14
|
+
To choose a package manager explicitly, pass `--package-manager` with `npm`, `yarn`, or `pnpm`:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx create-plasmic-app --package-manager pnpm
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Next.js SEO routes
|
|
21
|
+
|
|
22
|
+
When scaffolding a Next.js app, `create-plasmic-app` also generates sitemap
|
|
23
|
+
and robots routes:
|
|
24
|
+
|
|
25
|
+
- App Router: `app/sitemap.[jt]s` and `app/robots.[jt]s`
|
|
26
|
+
- Pages Router: `pages/sitemap.xml.[jt]s` and `pages/robots.txt.[jt]s`
|
|
27
|
+
|
|
28
|
+
The routes list non-dynamic Plasmic pages in the sitemap and link to it from
|
|
29
|
+
`robots.txt`. Loader projects fetch pages from Plasmic, while codegen projects
|
|
30
|
+
read the generated `plasmic.json`. Set `NEXT_PUBLIC_SITE_URL` to pin the site
|
|
31
|
+
the site origin, otherwise routes use the Vercel production URL or derive
|
|
32
|
+
the origin from request headers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.170",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"homepage": "https://www.plasmic.app",
|
|
6
6
|
"repository": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"validate-npm-package-name": "^3.0.0",
|
|
52
52
|
"yargs": "^16.2.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "8ab1bc413667e338190dcfc7d072de0d1eefe50f"
|
|
55
55
|
}
|