Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barbapapazes/solo-sphere
A theme that creates a world of its own.
https://github.com/barbapapazes/solo-sphere
layer nuxt theme
Last synced: about 1 month ago
JSON representation
A theme that creates a world of its own.
- Host: GitHub
- URL: https://github.com/barbapapazes/solo-sphere
- Owner: Barbapapazes
- Created: 2023-10-10T22:46:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-13T16:47:44.000Z (8 months ago)
- Last Synced: 2024-04-14T06:57:59.936Z (8 months ago)
- Topics: layer, nuxt, theme
- Language: Vue
- Homepage: https://solo-sphere.esteban-soubiran.site
- Size: 380 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 11
-
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://nuxt.com/docs/getting-started/deployment) for more information.