Skip to content
This repository was archived by the owner on Nov 28, 2020. It is now read-only.

chore: update latest ts specs #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Configuration } from '@nuxt/types'
const isDev = process.env.NODE_ENV !== "production"

export default {
const nuxtConfig: Configuration = {
mode: "spa",
modern: !isDev,
head: {
Expand Down Expand Up @@ -42,6 +43,11 @@ export default {
debug: isDev,
proxy: true
},
buildModules: ["@nuxt/typescript-build"],
typescript: {
typeCheck: true,
ignoreNotFoundWarnings: true
},
proxy: {
"/api": {
target: "https://api.hnpwa.com/v0/",
Expand All @@ -66,3 +72,5 @@ export default {
}
}
}

export default nuxtConfig
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
],
"private": true,
"scripts": {
"dev": "nuxt dev",
"build": "nuxt build",
"start": "nuxt start",
"dev-spa": "nuxt dev --spa",
"build-spa": "nuxt build --spa",
"start-spa": "nuxt start --spa",
"dev": "nuxt-ts dev",
"build": "nuxt-ts build",
"start": "nuxt-ts start",
"dev-spa": "nuxt-ts dev --spa",
"build-spa": "nuxt-ts build --spa",
"start-spa": "nuxt-ts start --spa",
"tsc": "tsc --showConfig",
"test": "jest",
"test:watch": "jest --watchAll",
Expand All @@ -43,28 +43,29 @@
"node": ">=8.0"
},
"dependencies": {
"@nuxtjs/axios": "^5.3.6",
"@nuxtjs/component-cache": "1.1.4",
"@nuxtjs/pwa": "2.6.0",
"apicache": "1.2.3",
"express": "4.16.4",
"nuxt": "^2.6.3",
"ts-node": "^8.1.0",
"vue-property-decorator": "^7.3.0"
"@nuxt/typescript-runtime": "^0.3.1",
"@nuxtjs/axios": "^5.8.0",
"@nuxtjs/component-cache": "1.1.5",
"@nuxtjs/pwa": "3.0.0-beta.19",
"apicache": "1.5.2",
"express": "4.17.1",
"nuxt": "^2.10.2",
"vue-property-decorator": "^8.3.0"
},
"devDependencies": {
"@nuxt/typescript": "^2.6.3",
"@types/jest": "^23.3.13",
"@vue/test-utils": "^1.0.0-beta.28",
"jest": "^24.0.0",
"@nuxt/typescript-build": "^0.5.0",
"@types/jest": "^24.0.23",
"@vue/test-utils": "^1.0.0-beta.30",
"babel-core": "^6.26.3",
"jest": "^24.9.0",
"jest-serializer-vue": "^2.0.2",
"prettier": "^1.16.1",
"stylus": "^0.54.5",
"prettier": "^1.19.1",
"stylus": "^0.54.7",
"stylus-loader": "^3.0.2",
"ts-jest": "^23.10.5",
"tslint-config-prettier": "^1.17.0",
"ts-jest": "^24.2.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"vue-jest": "^3.0.2"
"vue-jest": "^3.0.5"
},
"jest": {
"moduleFileExtensions": [
Expand Down
2 changes: 1 addition & 1 deletion pages/_feed/_page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<script lang="ts">
import { Component, Watch, Vue } from "vue-property-decorator"
import { Transition } from "@nuxt/vue-app"
import { Transition } from "@nuxt/types"
import { Route } from "vue-router"

import Item from "~/components/item.vue"
Expand Down
6 changes: 3 additions & 3 deletions tests/__snapshots__/spinner.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Spinner snapshot 1`] = `
<svg width="44px" height="44px" viewBox="0 0 44 44" class="spinner show">
<circle fill="none" stroke-width="4" stroke-linecap="round" cx="22" cy="22" r="20" class="path"></circle>
</svg>
<transition-stub><svg width="44px" height="44px" viewBox="0 0 44 44" class="spinner show">
<circle fill="none" stroke-width="4" stroke-linecap="round" cx="22" cy="22" r="20" class="path"></circle>
</svg></transition-stub>
`;
8 changes: 6 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
"types": [
"@types/jest",
"@types/node",
"@nuxt/vue-app"
"@nuxt/types",
"@nuxtjs/axios"
]
}
},
"exclude": [
"node_modules"
]
}
Loading