From 21fe32b09e5deede38d8a440b2d4f487883d5d6d Mon Sep 17 00:00:00 2001 From: Ibrahim Raimi Date: Sun, 14 Apr 2024 11:40:15 +0100 Subject: [PATCH] chore: rename frontend to views --- .gitignore | 8 ++-- app/frontend/README.md | 38 ------------------ app/server/db.sqlite3 | 0 app/{frontend => views}/.gitignore | 0 app/{frontend => views}/.npmrc | 0 app/{frontend => views}/.prettierignore | 0 app/{frontend => views}/.prettierrc | 0 app/views/README.md | 1 + app/{frontend => views}/components.json | 0 app/{frontend => views}/package.json | 4 +- app/{frontend => views}/playwright.config.ts | 0 app/{frontend => views}/pnpm-lock.yaml | 0 app/{frontend => views}/postcss.config.cjs | 0 app/{frontend => views}/src/app.d.ts | 0 app/{frontend => views}/src/app.html | 0 app/{frontend => views}/src/app.pcss | 0 .../src/routes/+layout.svelte | 0 .../src/routes/+page.svelte | 0 app/{frontend => views}/static/favicon.png | Bin app/{frontend => views}/svelte.config.js | 0 app/{frontend => views}/tailwind.config.js | 0 app/{frontend => views}/tests/test.ts | 0 app/{frontend => views}/tsconfig.json | 0 app/{frontend => views}/vite.config.ts | 0 scripts/install_dependencies.sh | 2 +- scripts/start_servers.sh | 2 +- 26 files changed, 9 insertions(+), 46 deletions(-) delete mode 100644 app/frontend/README.md create mode 100644 app/server/db.sqlite3 rename app/{frontend => views}/.gitignore (100%) rename app/{frontend => views}/.npmrc (100%) rename app/{frontend => views}/.prettierignore (100%) rename app/{frontend => views}/.prettierrc (100%) create mode 100644 app/views/README.md rename app/{frontend => views}/components.json (100%) rename app/{frontend => views}/package.json (97%) rename app/{frontend => views}/playwright.config.ts (100%) rename app/{frontend => views}/pnpm-lock.yaml (100%) rename app/{frontend => views}/postcss.config.cjs (100%) rename app/{frontend => views}/src/app.d.ts (100%) rename app/{frontend => views}/src/app.html (100%) rename app/{frontend => views}/src/app.pcss (100%) rename app/{frontend => views}/src/routes/+layout.svelte (100%) rename app/{frontend => views}/src/routes/+page.svelte (100%) rename app/{frontend => views}/static/favicon.png (100%) rename app/{frontend => views}/svelte.config.js (100%) rename app/{frontend => views}/tailwind.config.js (100%) rename app/{frontend => views}/tests/test.ts (100%) rename app/{frontend => views}/tsconfig.json (100%) rename app/{frontend => views}/vite.config.ts (100%) diff --git a/.gitignore b/.gitignore index e549b7f..f651422 100644 --- a/.gitignore +++ b/.gitignore @@ -169,12 +169,12 @@ cython_debug/ #.idea/ ### Svelte ### -# gitignore template for the SvelteKit, frontend web component framework +# gitignore template for the SvelteKit, views web component framework # website: https://kit.svelte.dev/ -./app/frontend/.svelte-kit/ -./app/frontend/node_modules -./app/frontend/pnpm-lock.yaml +./app/views/.svelte-kit/ +./app/views/node_modules +./app/views/pnpm-lock.yaml package # End of https://www.toptal.com/developers/gitignore/api/svelte,django \ No newline at end of file diff --git a/app/frontend/README.md b/app/frontend/README.md deleted file mode 100644 index 5ce6766..0000000 --- a/app/frontend/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# create-svelte - -Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```bash -# create a new project in the current directory -npm create svelte@latest - -# create a new project in my-app -npm create svelte@latest my-app -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```bash -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Building - -To create a production version of your app: - -```bash -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. diff --git a/app/server/db.sqlite3 b/app/server/db.sqlite3 new file mode 100644 index 0000000..e69de29 diff --git a/app/frontend/.gitignore b/app/views/.gitignore similarity index 100% rename from app/frontend/.gitignore rename to app/views/.gitignore diff --git a/app/frontend/.npmrc b/app/views/.npmrc similarity index 100% rename from app/frontend/.npmrc rename to app/views/.npmrc diff --git a/app/frontend/.prettierignore b/app/views/.prettierignore similarity index 100% rename from app/frontend/.prettierignore rename to app/views/.prettierignore diff --git a/app/frontend/.prettierrc b/app/views/.prettierrc similarity index 100% rename from app/frontend/.prettierrc rename to app/views/.prettierrc diff --git a/app/views/README.md b/app/views/README.md new file mode 100644 index 0000000..c2cd474 --- /dev/null +++ b/app/views/README.md @@ -0,0 +1 @@ +# Views \ No newline at end of file diff --git a/app/frontend/components.json b/app/views/components.json similarity index 100% rename from app/frontend/components.json rename to app/views/components.json diff --git a/app/frontend/package.json b/app/views/package.json similarity index 97% rename from app/frontend/package.json rename to app/views/package.json index 35a557b..d8a7b3c 100644 --- a/app/frontend/package.json +++ b/app/views/package.json @@ -1,5 +1,5 @@ { - "name": "frontend", + "name": "views", "version": "0.0.1", "private": true, "scripts": { @@ -36,4 +36,4 @@ "tailwind-merge": "^2.2.2", "tailwind-variants": "^0.2.1" } -} +} \ No newline at end of file diff --git a/app/frontend/playwright.config.ts b/app/views/playwright.config.ts similarity index 100% rename from app/frontend/playwright.config.ts rename to app/views/playwright.config.ts diff --git a/app/frontend/pnpm-lock.yaml b/app/views/pnpm-lock.yaml similarity index 100% rename from app/frontend/pnpm-lock.yaml rename to app/views/pnpm-lock.yaml diff --git a/app/frontend/postcss.config.cjs b/app/views/postcss.config.cjs similarity index 100% rename from app/frontend/postcss.config.cjs rename to app/views/postcss.config.cjs diff --git a/app/frontend/src/app.d.ts b/app/views/src/app.d.ts similarity index 100% rename from app/frontend/src/app.d.ts rename to app/views/src/app.d.ts diff --git a/app/frontend/src/app.html b/app/views/src/app.html similarity index 100% rename from app/frontend/src/app.html rename to app/views/src/app.html diff --git a/app/frontend/src/app.pcss b/app/views/src/app.pcss similarity index 100% rename from app/frontend/src/app.pcss rename to app/views/src/app.pcss diff --git a/app/frontend/src/routes/+layout.svelte b/app/views/src/routes/+layout.svelte similarity index 100% rename from app/frontend/src/routes/+layout.svelte rename to app/views/src/routes/+layout.svelte diff --git a/app/frontend/src/routes/+page.svelte b/app/views/src/routes/+page.svelte similarity index 100% rename from app/frontend/src/routes/+page.svelte rename to app/views/src/routes/+page.svelte diff --git a/app/frontend/static/favicon.png b/app/views/static/favicon.png similarity index 100% rename from app/frontend/static/favicon.png rename to app/views/static/favicon.png diff --git a/app/frontend/svelte.config.js b/app/views/svelte.config.js similarity index 100% rename from app/frontend/svelte.config.js rename to app/views/svelte.config.js diff --git a/app/frontend/tailwind.config.js b/app/views/tailwind.config.js similarity index 100% rename from app/frontend/tailwind.config.js rename to app/views/tailwind.config.js diff --git a/app/frontend/tests/test.ts b/app/views/tests/test.ts similarity index 100% rename from app/frontend/tests/test.ts rename to app/views/tests/test.ts diff --git a/app/frontend/tsconfig.json b/app/views/tsconfig.json similarity index 100% rename from app/frontend/tsconfig.json rename to app/views/tsconfig.json diff --git a/app/frontend/vite.config.ts b/app/views/vite.config.ts similarity index 100% rename from app/frontend/vite.config.ts rename to app/views/vite.config.ts diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh index 130bf11..2dc6ca4 100644 --- a/scripts/install_dependencies.sh +++ b/scripts/install_dependencies.sh @@ -3,7 +3,7 @@ # Function to install dependencies for SvelteKit install_svelte_dependencies() { echo "Installing dependencies for SvelteKit..." - cd app/frontend + cd app/views npm install } diff --git a/scripts/start_servers.sh b/scripts/start_servers.sh index 91e9c22..4799e3f 100755 --- a/scripts/start_servers.sh +++ b/scripts/start_servers.sh @@ -3,7 +3,7 @@ # Function to start Svelte development server start_svelte() { echo "Starting Svelte development server..." - cd app/frontend + cd app/views npm run dev }