chore(frontend): scaffold Nuxt application
This commit is contained in:
29
frontend/nuxt.config.ts
Normal file
29
frontend/nuxt.config.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
ssr: false,
|
||||
devtools: { enabled: false },
|
||||
css: ['~/assets/css/main.css'],
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
apiBaseUrl: 'http://127.0.0.1:8080',
|
||||
},
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
title: 'تبدیل کارت به شبا | زرینپال',
|
||||
htmlAttrs: {
|
||||
lang: 'fa',
|
||||
dir: 'rtl',
|
||||
},
|
||||
meta: [
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ name: 'theme-color', content: '#f5f5f6' },
|
||||
],
|
||||
link: [{ rel: 'icon', type: 'image/png', href: '/brand/zarinpal-mark.png' }],
|
||||
},
|
||||
},
|
||||
})
|
||||
10063
frontend/package-lock.json
generated
Normal file
10063
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
25
frontend/package.json
Normal file
25
frontend/package.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "card-to-iban-frontend",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "nuxt dev --host 127.0.0.1",
|
||||
"build": "nuxt build",
|
||||
"postinstall": "nuxt prepare",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"nuxt": "^4.5.2",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"vue": "^3.5.43",
|
||||
"vue-router": "^5.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^6.0.9",
|
||||
"@vue/test-utils": "^2.5.1",
|
||||
"happy-dom": "^20.14.5",
|
||||
"vitest": "^5.0.1"
|
||||
}
|
||||
}
|
||||
3
frontend/tsconfig.json
Normal file
3
frontend/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "./.nuxt/tsconfig.json"
|
||||
}
|
||||
9
frontend/vitest.config.ts
Normal file
9
frontend/vitest.config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
test: {
|
||||
environment: 'happy-dom',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user