Commit 9b1a2da4 authored by Michael Underwood's avatar Michael Underwood
Browse files

Install and configure TypeScript

parent d55baf78
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local
dist
dist-ssr
coverage
*.local

# Log files
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
@@ -14,7 +15,8 @@ pnpm-debug.log*

# Editor directories and files
.idea
.vscode
.vscode/*
!.vscode/extensions.json
*.suo
*.ntvs*
*.njsproj

env.d.ts

0 → 100644
+1 −0
Original line number Diff line number Diff line
/// <reference types="vite/client" />
+9 −2
Original line number Diff line number Diff line
@@ -18,7 +18,9 @@
  },
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "build": "run-p type-check build-only",
    "build-only": "vite build",
    "type-check": "vue-tsc --noEmit",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
    "prepublishOnly": "npm run lint && npm run build",
    "postversion": "git push --follow-tags",
@@ -31,7 +33,9 @@
  },
  "devDependencies": {
    "@types/leaflet": "^1.5.7",
    "@types/node": "^18.13.0",
    "@vitejs/plugin-vue": "^4.0.0",
    "@vue/tsconfig": "^0.1.3",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-config-prettier": "^6.11.0",
@@ -40,11 +44,14 @@
    "husky": "^4.3.0",
    "leaflet": "^1.6.0",
    "lint-staged": "^10.4.0",
    "npm-run-all": "^4.1.5",
    "prettier": "^2.0.5",
    "typescript": "^4.9.5",
    "vite": "^4.1.1",
    "vitepress": "^0.6.0",
    "vue": "^3.2.25",
    "vue-router": "^4.0.0-rc.5"
    "vue-router": "^4.0.0-rc.5",
    "vue-tsc": "^1.0.24"
  },
  "husky": {
    "hooks": {

tsconfig.config.json

0 → 100644
+8 −0
Original line number Diff line number Diff line
{
  "extends": "@vue/tsconfig/tsconfig.node.json",
  "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"],
  "compilerOptions": {
    "composite": true,
    "types": ["node"]
  }
}

tsconfig.json

0 → 100644
+19 −0
Original line number Diff line number Diff line
{
  "extends": "@vue/tsconfig/tsconfig.web.json",
  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
  "exclude": ["./dist/**/*"],
  "compilerOptions": {
    "allowJs": true,
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    },
    "outDir": "./dist"
  },

  "references": [
    {
      "path": "./tsconfig.config.json"
    }
  ]
}
Loading