Skip to content

Commit a5f37e9

Browse files
committed
🔼 - Upgrade dependencies
1 parent 64bde2c commit a5f37e9

File tree

6 files changed

+2991
-2663
lines changed

6 files changed

+2991
-2663
lines changed

‎layouts/default.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
import { Vue, Component } from 'nuxt-property-decorator'
6969
import { SidebarMenuItem } from '~/@types'
7070
71-
@Component({
72-
name: 'default'
73-
})
71+
@Component
7472
export default class DefaultLayout extends Vue {
73+
readonly name: string = 'default'
74+
7575
clipped: boolean = false
7676
drawer: boolean = false
7777
fixed: boolean = false

‎layouts/error.vue‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@
1515
<script lang="ts">
1616
import { Vue, Component, Prop } from 'nuxt-property-decorator'
1717
18-
@Component({
19-
name: 'error',
20-
layout: 'empty',
18+
@Component
19+
export default class ErrorLayout extends Vue {
20+
readonly name: string = 'default'
21+
layout() {
22+
return 'empty'
23+
}
24+
2125
head(this: any) {
2226
const title =
2327
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
2428
return {
2529
title
2630
}
2731
}
28-
})
29-
export default class ErrorLayout extends Vue {
32+
3033
pageNotFound: string = '404 Not Found'
3134
otherError: string = 'An error occurred'
3235

‎nuxt.config.ts‎

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
// "You can never understand everything. But, you should push yourself to understand the system."
2-
// - Ryan Dahl (Creator of Node JS)
3-
import { Configuration } from '@nuxt/types'
4-
5-
const nuxtConfig: Configuration = {
6-
mode: 'spa',
7-
/*
8-
** Headers of the page
9-
*/
1+
const nuxtConfig = {
2+
ssr: true,
103
head: {
114
titleTemplate: '%s - ' + process.env.npm_package_name,
125
title: process.env.npm_package_name || '',
@@ -21,40 +14,12 @@ const nuxtConfig: Configuration = {
2114
],
2215
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
2316
},
24-
/*
25-
** Customize the progress-bar color
26-
*/
2717
loading: { color: '#fff' },
28-
/*
29-
** Global CSS
30-
*/
3118
css: [],
32-
/*
33-
** Plugins to load before mounting the App
34-
*/
3519
plugins: [],
36-
/*
37-
** Nuxt.js dev-modules
38-
*/
3920
buildModules: ['@nuxt/typescript-build', '@nuxtjs/vuetify'],
40-
/*
41-
** Nuxt.js modules
42-
*/
43-
modules: [
44-
// Doc: https://axios.nuxtjs.org/usage
45-
'@nuxtjs/axios',
46-
'@nuxtjs/pwa',
47-
'@nuxtjs/dotenv'
48-
],
49-
/*
50-
** Axios module configuration
51-
** See https://axios.nuxtjs.org/options
52-
*/
21+
modules: ['@nuxtjs/axios', '@nuxtjs/pwa', '@nuxtjs/dotenv'],
5322
axios: {},
54-
/*
55-
** vuetify module configuration
56-
** https://github.com/nuxt-community/vuetify-module
57-
*/
5823
vuetify: {
5924
customVariables: ['~/assets/variables.scss'],
6025
theme: {
@@ -72,13 +37,7 @@ const nuxtConfig: Configuration = {
7237
}
7338
}
7439
},
75-
/*
76-
** Build configuration
77-
*/
7840
build: {
79-
/*
80-
** You can extend webpack config here
81-
*/
8241
optimizeCSS: true,
8342
optimization: {
8443
splitChunks: {

‎package.json‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
"author": "trastanechora",
66
"private": true,
77
"scripts": {
8-
"dev": "nuxt-ts",
9-
"build": "nuxt-ts build",
10-
"generate": "nuxt-ts generate",
11-
"start": "nuxt-ts start",
8+
"dev": "nuxt",
9+
"build": "nuxt build",
10+
"generate": "nuxt generate",
11+
"start": "nuxt start",
1212
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
1313
"test": "jest"
1414
},
1515
"dependencies": {
16-
"@nuxt/typescript-runtime": "^0.4.0",
17-
"@nuxtjs/axios": "^5.3.6",
16+
"@nuxtjs/axios": "^5.13.6",
1817
"@nuxtjs/dotenv": "^1.4.1",
1918
"@nuxtjs/pwa": "^3.0.0-0",
20-
"nuxt": "^2.0.0",
19+
"nuxt": "2.15.8",
2120
"nuxt-property-decorator": "^2.7.2",
2221
"stylus": "^0.54.8",
2322
"stylus-loader": "^3.0.2",
2423
"vuex": "^3.5.1"
2524
},
2625
"devDependencies": {
27-
"@nuxt/typescript-build": "^0.6.0",
26+
"@fullhuman/postcss-purgecss": "^4.0.3",
27+
"@nuxt/typescript-build": "^2.1.0",
2828
"@nuxtjs/eslint-config-typescript": "^1.0.0",
2929
"@nuxtjs/eslint-module": "^1.0.0",
30-
"@nuxtjs/vuetify": "^1.0.0",
30+
"@nuxtjs/vuetify": "^1.12.1",
3131
"@types/jest": "^26.0.5",
3232
"@vue/test-utils": "^1.0.0-beta.27",
3333
"babel-eslint": "^10.0.1",
@@ -37,7 +37,7 @@
3737
"eslint-plugin-nuxt": ">=0.4.2",
3838
"eslint-plugin-prettier": "^3.1.2",
3939
"jest": "^24.1.0",
40-
"prettier": "^1.19.1",
40+
"prettier": "^2.3.2",
4141
"ts-jest": "^25.0.0",
4242
"vue-jest": "^4.0.0-0"
4343
},
@@ -95,4 +95,4 @@
9595
"trailingComma": "none",
9696
"printWidth": 80
9797
}
98-
}
98+
}

‎tsconfig.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
"noEmit": true,
1515
"experimentalDecorators": true,
1616
"allowSyntheticDefaultImports": true,
17+
"skipLibCheck": true,
18+
"strictFunctionTypes":false,
1719
"baseUrl": ".",
1820
"paths": {
1921
"~/*": ["./*"],
2022
"@/*": ["./*"]
2123
},
22-
"types": ["@types/node", "@nuxt/types", "@types/jest"]
24+
"types": ["@types/node", "@types/jest"]
2325
},
2426
"exclude": ["node_modules", ".nuxt", "dist"]
2527
}

0 commit comments

Comments
 (0)