Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nuxt-themes/starter

The best place to start your Nuxt Theme.
https://github.com/nuxt-themes/starter

Last synced: 7 days ago
JSON representation

The best place to start your Nuxt Theme.

Awesome Lists containing this project

README

        

# Nuxt Studio Theme Starter

Create a compatible [Nuxt Studio](https://nuxt.studio) theme 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 `.starters/default/` directory should help you on trying your theme during development.

Running `pnpm dev` will prepare and boot `.starters/default/` directory, which imports your theme itself.

## Distributing your theme

Your Nuxt theme 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`:

```ts
export default 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.