feat: Initial Moonshine theme - Headless WordPress theme based on Nuxt
This commit is contained in:
24
wp-content/themes/moonshine/.gitignore
vendored
Normal file
24
wp-content/themes/moonshine/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Nuxt dev/build outputs
|
||||||
|
.output
|
||||||
|
.data
|
||||||
|
.nuxt
|
||||||
|
.nitro
|
||||||
|
.cache
|
||||||
|
dist
|
||||||
|
|
||||||
|
# Node dependencies
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
.DS_Store
|
||||||
|
.fleet
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# Local env files
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
3
wp-content/themes/moonshine/README.md
Normal file
3
wp-content/themes/moonshine/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Moonshine
|
||||||
|
|
||||||
|
Headless WordPress theme based on Nuxt.
|
||||||
9
wp-content/themes/moonshine/app/app.vue
Normal file
9
wp-content/themes/moonshine/app/app.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<NuxtRouteAnnouncer />
|
||||||
|
<NuxtLoadingIndicator />
|
||||||
|
<NuxtLayout>
|
||||||
|
<NuxtPage />
|
||||||
|
</NuxtLayout>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
8
wp-content/themes/moonshine/app/layouts/default.vue
Normal file
8
wp-content/themes/moonshine/app/layouts/default.vue
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div id="layout-default">
|
||||||
|
<NuxtPage />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
8
wp-content/themes/moonshine/app/pages/[...uri].vue
Normal file
8
wp-content/themes/moonshine/app/pages/[...uri].vue
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div id="page-node-from-uri">
|
||||||
|
<h1>Moonshine</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
1
wp-content/themes/moonshine/functions.php
Normal file
1
wp-content/themes/moonshine/functions.php
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<?php
|
||||||
5
wp-content/themes/moonshine/nuxt.config.ts
Normal file
5
wp-content/themes/moonshine/nuxt.config.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
|
export default defineNuxtConfig({
|
||||||
|
compatibilityDate: '2025-07-15',
|
||||||
|
devtools: { enabled: true }
|
||||||
|
})
|
||||||
19
wp-content/themes/moonshine/package.json
Normal file
19
wp-content/themes/moonshine/package.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "@lewebsimple/moonshine",
|
||||||
|
"description": "Headless WordPress theme based on Nuxt.",
|
||||||
|
"type": "module",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"build": "nuxt build",
|
||||||
|
"dev": "nuxt dev --host 0.0.0.0",
|
||||||
|
"preview": "nuxt preview",
|
||||||
|
"postinstall": "pnpm --sequential /postinstall:.*/",
|
||||||
|
"postinstall:nuxt": "nuxt prepare"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"nuxt": "^4.2.2",
|
||||||
|
"vue": "^3.5.26",
|
||||||
|
"vue-router": "^4.6.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {}
|
||||||
|
}
|
||||||
6521
wp-content/themes/moonshine/pnpm-lock.yaml
generated
Normal file
6521
wp-content/themes/moonshine/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
BIN
wp-content/themes/moonshine/public/favicon.ico
Normal file
BIN
wp-content/themes/moonshine/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
2
wp-content/themes/moonshine/public/robots.txt
Normal file
2
wp-content/themes/moonshine/public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
User-Agent: *
|
||||||
|
Disallow:
|
||||||
9
wp-content/themes/moonshine/style.css
Normal file
9
wp-content/themes/moonshine/style.css
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Theme Name: Moonshine
|
||||||
|
Author: Pascal Martineau <pascal@lewebsimple.ca>
|
||||||
|
Author URI: https://websimple.com/
|
||||||
|
Description: Headless WordPress theme based on Nuxt.
|
||||||
|
Version: 0.1.0
|
||||||
|
Text Domain: moonshine
|
||||||
|
Template: kaliroots
|
||||||
|
*/
|
||||||
18
wp-content/themes/moonshine/tsconfig.json
Normal file
18
wp-content/themes/moonshine/tsconfig.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
|
"files": [],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.app.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.server.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.shared.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.node.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user