Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archetipo95/test-formkit-theme
https://github.com/archetipo95/test-formkit-theme
Last synced: about 21 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/archetipo95/test-formkit-theme
- Owner: Archetipo95
- Created: 2024-03-21T18:17:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-01T15:14:55.000Z (8 months ago)
- Last Synced: 2024-05-21T08:06:09.317Z (6 months ago)
- Language: TypeScript
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt Layer Starter
Create Nuxt extendable layer with this GitHub template.
## Setup
Make sure to install the dependencies:
```bash
pnpm install
```## Working on your theme
Your theme is at the root of this repository, it is exactly like a regular Nuxt project, except you can publish it on NPM.
The `.playground` directory should help you on trying your theme during development.
Running `pnpm dev` will prepare and boot `.playground` directory, which imports your theme itself.
## Distributing your theme
Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
To do so, you only have to check if `files` in `package.json` are valid, then run:
```bash
npm publish --access public
```Once done, your users will only have to run:
```bash
npm install --save your-theme
```Then add the dependency to their `extends` in `nuxt.config`:
```ts
defineNuxtConfig({
extends: 'your-theme'
})
```## Development Server
Start the development server on http://localhost:3000
```bash
pnpm dev
```## Production
Build the application for production:
```bash
pnpm build
```Or statically generate it with:
```bash
pnpm generate
```Locally preview production build:
```bash
pnpm preview
```Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment) for more information.