Skip to content

Commit 13b4018

Browse files
committed
include icons as submodule
1 parent bd3fc2e commit 13b4018

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@v3
21+
with:
22+
submodules: true
2123

2224
- name: Log in to the Container registry
2325
uses: docker/login-action@v2

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,6 @@ sw.*
9191

9292
.output/
9393

94-
#graphql/generated.ts
94+
#graphql/generated.ts
95+
96+
public

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "assets/emblem"]
2+
path = assets/emblem
3+
url = https://github.com/VoidShake/Emblem.git

assets/emblem

Submodule emblem added at 3ec1a9d

modules/assets.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineNuxtModule } from '@nuxt/kit'
2+
import { copyFileSync, existsSync, mkdirSync } from 'fs'
3+
4+
export default defineNuxtModule({
5+
setup(_, nuxt) {
6+
nuxt.hook('build:before', () => {
7+
if (!existsSync('public')) mkdirSync('public')
8+
copyFileSync('assets/emblem/favicon.ico', 'public/favicon.ico')
9+
})
10+
},
11+
})

nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import introspectionResult from './graphql/generated'
22

33
export default defineNuxtConfig({
4-
modules: ['@nuxtjs/apollo', '@nuxtjs/color-mode', '@nuxtjs/tailwindcss'],
4+
modules: ['@nuxtjs/apollo', '@nuxtjs/color-mode', '@nuxtjs/tailwindcss', './modules/assets'],
55

66
postcss: {
77
plugins: {

0 commit comments

Comments
 (0)