https://github.com/markthree/nuxt3-intelligence
nuxt3 的智能工具集合
https://github.com/markthree/nuxt3-intelligence
Last synced: 8 months ago
JSON representation
nuxt3 的智能工具集合
- Host: GitHub
- URL: https://github.com/markthree/nuxt3-intelligence
- Owner: markthree
- License: mit
- Created: 2023-01-12T06:21:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T05:28:46.000Z (about 2 years ago)
- Last Synced: 2025-02-18T18:45:11.773Z (about 1 year ago)
- Language: TypeScript
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nuxt3-intelligence
`nuxt3` 智能工具集合
## Usage
### install
```shell
npm i nuxt3-intelligence
```
### Program
#### getStaticDepsFromNuxtConfig
```ts
import { getStaticDepsFromNuxtConfig } from 'nuxt3-intelligence'
const deps = getStaticDepsFromNuxtConfig()
deps // Get all static deps for modules and extends
```
#### genPrerenderRoutesSync
```ts
import { genPrerenderRoutesSync, createDefaultGenPrerenderRoutesSyncOptions } from 'nuxt3-intelligence'
const defaultOptions = createDefaultGenPrerenderRoutesSyncOptions() // https://content.nuxtjs.org/ mode
const routes = genPrerenderRoutesSync(defaultOptions)
routes // Get all routes for nuxt content with cache
```
## License
Made with [markthree](https://github.com/markthree)
Published under [MIT License](./LICENSE).