Skip to content

Commit

Permalink
refactor: remove unused prisma stuff and add build cache (#182)
Browse files Browse the repository at this point in the history
* build: remove stuff related to prisma

* build(nuxt): add nuxt build cache
  • Loading branch information
arunanshub authored Feb 9, 2024
1 parent 6f3e5ad commit 1503619
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 213 deletions.
29 changes: 9 additions & 20 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,14 @@ export default defineNuxtConfig({
},

// Modules
modules: [
// Image Handling and Optimization
'@nuxt/image',
// Performance Optimization
'@nuxtjs/critters',
'nuxt-delay-hydration',
// Content Management
'@nuxt/content',
// Utility Functions
'@vueuse/nuxt',
// Fonts and Typography
'@nuxtjs/fontaine',
'@nuxtjs/google-fonts',
'@nuxtjs/tailwindcss',
// SEO and Crawling
'@nuxtjs/robots',
// Icons
'nuxt-icon',
],
modules: [// Image Handling and Optimization
'@nuxt/image', // Performance Optimization
'@nuxtjs/critters', 'nuxt-delay-hydration', // Content Management
'@nuxt/content', // Utility Functions
'@vueuse/nuxt', // Fonts and Typography
'@nuxtjs/fontaine', '@nuxtjs/google-fonts', '@nuxtjs/tailwindcss', // SEO and Crawling
'@nuxtjs/robots', // Icons
'nuxt-icon', "nuxt-build-cache"],

// Module Options
content: {
Expand Down Expand Up @@ -117,4 +106,4 @@ export default defineNuxtConfig({
},
},
},
})
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"lodash-es": "^4.17.21",
"mysql2": "^3.9.1",
"nuxt": "^3.10.0",
"nuxt-build-cache": "^0.1.1",
"prettier": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.5.11",
"ts-node": "^10.9.2",
Expand Down
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

127 changes: 0 additions & 127 deletions prisma/migrations/20231122104738_init/migration.sql

This file was deleted.

3 changes: 0 additions & 3 deletions prisma/migrations/migration_lock.toml

This file was deleted.

60 changes: 0 additions & 60 deletions prisma/schema.prisma

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/server/database/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import * as question from '~/server/crud/question'
import * as section from '~/server/crud/section'
import { getDb } from '~/server/database/db'
import { distributions } from '~/server/database/schema/distributions'
import distros from '~~/prisma/distros.json'
import { default as questionData } from '~~/prisma/question-data.json'
import { default as sectionData } from '~~/prisma/sections.json'
import distros from '~~/seed-data/distros.json'
import questionData from '~~/seed-data/question-data.json'
import sectionData from '~~/seed-data/sections.json'

async function main() {
const databaseUrl = process.env.DATABASE_URL
Expand Down

0 comments on commit 1503619

Please sign in to comment.