chore: add env

This commit is contained in:
Jesús Pérez Lorenzo 2021-10-14 15:44:10 +01:00
parent b496d51ece
commit 53d5bdc08b
4 changed files with 61 additions and 0 deletions

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
dist
node_modules
public

13
.eslintrc Normal file
View File

@ -0,0 +1,13 @@
{
"extends": [
"@antfu"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"camelcase": "off"
},
"plugins": [
"snakecasejs"
]
}

17
netlify.toml Executable file
View File

@ -0,0 +1,17 @@
[build.environment]
NPM_FLAGS = "--prefix=/dev/null"
NODE_VERSION = "14"
[build]
publish = "dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"

28
tsconfig.json Normal file
View File

@ -0,0 +1,28 @@
{
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"target": "es2016",
"lib": ["DOM", "ESNext"],
"strict": true,
"esModuleInterop": true,
"incremental": false,
"skipLibCheck": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"types": [
"vite/client",
"vite-plugin-pages/client",
"vite-plugin-vue-layouts/client"
],
"paths": {
"~/*": ["src/*"],
"@/*": ["src/components/*"],
},
"allowJs": true,
},
"exclude": ["dist", "node_modules"]
}