vite-wp 0.1.0 → 0.1.1
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 +1 -1
- package/package.json +1 -1
- package/starter/astro.config.mjs +1 -1
- package/starter/src/live.config.ts +1 -1
- package/starter/vitewp.config.ts +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ ViteWP is bring-your-own database. It does not start MySQL for you.
|
|
|
25
25
|
mkdir my-site
|
|
26
26
|
cd my-site
|
|
27
27
|
npm init -y
|
|
28
|
-
npm install
|
|
28
|
+
npm install vite-wp astro typescript @astrojs/check
|
|
29
29
|
npx vitewp init
|
|
30
30
|
cp .env.example .env
|
|
31
31
|
npm run dev
|
package/package.json
CHANGED
package/starter/astro.config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineLiveCollection } from 'astro/content/config';
|
|
2
|
-
import { wpMenuLoader, wpPostTypeLoader, wpRouteLoader } from '
|
|
2
|
+
import { wpMenuLoader, wpPostTypeLoader, wpRouteLoader } from 'vite-wp/content';
|
|
3
3
|
import { wpContentItemSchema, wpMenuSchema, wpResolvedRouteSchema } from './wordpress/schemas.js';
|
|
4
4
|
|
|
5
5
|
export const collections = {
|
package/starter/vitewp.config.ts
CHANGED