diff --git a/client/.gitignore b/client/.gitignore index 2d66ec0..4487150 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -1,4 +1,126 @@ -.DS_Store -node_modules -/.svelte-kit -/package +# Created by https://www.toptal.com/developers/gitignore/api/node +# Edit at https://www.toptal.com/developers/gitignore?templates=node + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test +.env.production + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +.svelte-kit + +# End of https://www.toptal.com/developers/gitignore/api/node diff --git a/client/package.json b/client/package.json index ea5e0d2..c2201b6 100644 --- a/client/package.json +++ b/client/package.json @@ -19,6 +19,7 @@ "format": "prettier --write --ignore-path .gitignore --plugin-search-dir=. \"./**/*.(ts|json|js|svelte)\"" }, "devDependencies": { + "@sveltejs/adapter-static": "^1.0.0-next.13", "@sveltejs/kit": "next", "@types/cookie": "^0.4.0", "@typescript-eslint/eslint-plugin": "^4.19.0", diff --git a/client/postcss.config.cjs b/client/postcss.config.cjs deleted file mode 100644 index 32ecc9f..0000000 --- a/client/postcss.config.cjs +++ /dev/null @@ -1,20 +0,0 @@ -const tailwindcss = require("tailwindcss"); -const autoprefixer = require("autoprefixer"); -const cssnano = require("cssnano"); - -const mode = process.env.NODE_ENV; -const dev = mode === "development"; - -const config = { - plugins: [ - //Some plugins, like postcss-nested, need to run before Tailwind, - tailwindcss(), - //But others, like autoprefixer, need to run after, - autoprefixer(), - !dev && cssnano({ - preset: "default", - }) - ], -}; - -module.exports = config; \ No newline at end of file diff --git a/client/svelte.config.js b/client/svelte.config.js index 0d34a5f..6496adb 100644 --- a/client/svelte.config.js +++ b/client/svelte.config.js @@ -1,15 +1,24 @@ import preprocess from 'svelte-preprocess'; +import adapter from '@sveltejs/adapter-static'; import { windi } from 'svelte-windicss-preprocess'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors - preprocess: [windi(), preprocess({ postcss: true })], + preprocess: [windi(), preprocess({ postcss: false })], kit: { // hydrate the