From 1e61d092377696284ad67a6fdd89d0391afea1df Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Thu, 28 Jul 2022 18:38:49 -0400 Subject: [PATCH] project structure refactor --- index.html | 4 ++-- {public => src/css}/main.css | 0 index.js => src/index.js | 0 {pages => src/pages}/hello-riot/hello-riot.riot | 0 {pages => src/pages}/hello-riot/hello-riot.spec.js | 0 {pages => src/pages}/registery.js | 0 {public => src/public}/assets/images/square.svg | 0 {public => src/public}/favicon.ico | Bin vite.config.js | 3 ++- 9 files changed, 4 insertions(+), 3 deletions(-) rename {public => src/css}/main.css (100%) rename index.js => src/index.js (100%) rename {pages => src/pages}/hello-riot/hello-riot.riot (100%) rename {pages => src/pages}/hello-riot/hello-riot.spec.js (100%) rename {pages => src/pages}/registery.js (100%) rename {public => src/public}/assets/images/square.svg (100%) rename {public => src/public}/favicon.ico (100%) diff --git a/index.html b/index.html index 5927a28..509b7fe 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,11 @@ - + Riot Template - + diff --git a/public/main.css b/src/css/main.css similarity index 100% rename from public/main.css rename to src/css/main.css diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js diff --git a/pages/hello-riot/hello-riot.riot b/src/pages/hello-riot/hello-riot.riot similarity index 100% rename from pages/hello-riot/hello-riot.riot rename to src/pages/hello-riot/hello-riot.riot diff --git a/pages/hello-riot/hello-riot.spec.js b/src/pages/hello-riot/hello-riot.spec.js similarity index 100% rename from pages/hello-riot/hello-riot.spec.js rename to src/pages/hello-riot/hello-riot.spec.js diff --git a/pages/registery.js b/src/pages/registery.js similarity index 100% rename from pages/registery.js rename to src/pages/registery.js diff --git a/public/assets/images/square.svg b/src/public/assets/images/square.svg similarity index 100% rename from public/assets/images/square.svg rename to src/public/assets/images/square.svg diff --git a/public/favicon.ico b/src/public/favicon.ico similarity index 100% rename from public/favicon.ico rename to src/public/favicon.ico diff --git a/vite.config.js b/vite.config.js index 3ec70c0..858f2e4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,5 +2,6 @@ import { defineConfig } from "vite"; import riot from 'rollup-plugin-riot'; export default defineConfig({ - plugins: [{...riot(), enforce: 'pre'}] + plugins: [{...riot(), enforce: 'pre'}], + publicDir: 'src/public' });