Skip to content

Commit 79f01e1

Browse files
Resul AvanResul Avan
Resul Avan
authored and
Resul Avan
committed
sonarcloud integration
1 parent d96eb56 commit 79f01e1

File tree

4 files changed

+49
-7
lines changed

4 files changed

+49
-7
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# nuxt-typescript-ssr-firebase-auth
22

33
[![BUILD](https://circleci.com/gh/rslvn/nuxt-typescript-ssr-firebase-auth.svg?style=shield)](https://circleci.com/gh/rslvn/nuxt-typescript-ssr-firebase-auth)
4+
[![Coverage Code](https://sonarcloud.io/api/project_badges/measure?project=rslvn_nuxt-typescript-ssr-firebase-auth&metric=coverage)](https://sonarcloud.io/dashboard?id=rslvn_nuxt-typescript-ssr-firebase-auth)
5+
[![Lines Of Code](https://sonarcloud.io/api/project_badges/measure?project=rslvn_nuxt-typescript-ssr-firebase-auth&metric=ncloc)](https://sonarcloud.io/dashboard?id=rslvn_nuxt-typescript-ssr-firebase-auth)
6+
[![Technical Debit](https://sonarcloud.io/api/project_badges/measure?project=rslvn_nuxt-typescript-ssr-firebase-auth&metric=sqale_index)](https://sonarcloud.io/dashboard?id=rslvn_nuxt-typescript-ssr-firebase-auth)
47

58
`nuxt generate` is really sucks!!! We lost `nuxtServerInit`, dynamic routing stuff etc. We need a good alternative to deploy our applications to the cloud without VPS and SSL configuration.
69

src/nuxt.config.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ const config: Configuration = {
6969
** Nuxt.js dev-modules
7070
*/
7171
buildModules: [
72-
'@nuxt/typescript-build',
72+
['@nuxt/typescript-build', {
73+
typeCheck: {
74+
async: true,
75+
typescript: {
76+
enable: true,
77+
memoryLimit: 2048
78+
}
79+
}
80+
}],
7381
'@nuxtjs/stylelint-module'
7482
],
7583
/*

src/package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"cookie-parser": "^1.4.5",
7272
"cookie-universal-nuxt": "^2.1.4",
7373
"cors": "^2.8.5",
74+
"country-state-city": "^1.0.5",
7475
"cropperjs": "^1.5.7",
7576
"debounce": "^1.2.0",
7677
"dotenv": "^8.2.0",
@@ -94,7 +95,8 @@
9495
"vue-lazyload": "^1.3.3",
9596
"vue-meta": "^2.4.0",
9697
"vue-rx": "^6.2.0",
97-
"vuex-class": "^0.3.2"
98+
"vuex-class": "^0.3.2",
99+
"world-cities": "file:../../world-cities"
98100
},
99101
"devDependencies": {
100102
"@babel/core": "^7.7.7",
@@ -107,7 +109,9 @@
107109
"@nuxtjs/stylelint-module": "^4.0.0",
108110
"@types/jest": "^26.0.8",
109111
"@types/vfile-message": "^2.0.0",
112+
"@vue/test-utils": "^1.0.0-beta.27",
110113
"babel-eslint": "^10.1.0",
114+
"babel-jest": "^24.1.0",
111115
"core-js": "^3.6.5",
112116
"dts-generator": "^3.0.0",
113117
"eslint": "^7.5.0",
@@ -118,16 +122,14 @@
118122
"eslint-plugin-vue": "^6.2.2",
119123
"firebase-tools": "^8.6.0",
120124
"husky": "^4.2.5",
125+
"jest": "^24.1.0",
121126
"jest-serializer-vue": "^2.0.2",
122127
"lint-staged": "^10.2.11",
123128
"node-sass": "^4.14.1",
124129
"prettier": "^2.0.5",
125130
"sass-loader": "^9.0.2",
126131
"stylelint": "^13.6.1",
127-
"@vue/test-utils": "^1.0.0-beta.27",
128-
"babel-jest": "^24.1.0",
129-
"jest": "^24.1.0",
130-
"vue-jest": "^4.0.0-0",
131-
"ts-jest": "^25.0.0"
132+
"ts-jest": "^25.0.0",
133+
"vue-jest": "^4.0.0-0"
132134
}
133135
}

src/ts-shim.d.ts

+29
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,32 @@ declare module '*.vue' {
1111
import Vue from 'vue'
1212
export default Vue
1313
}
14+
15+
declare module CityDB {
16+
17+
export interface City {
18+
id: number;
19+
name: string;
20+
latitude: string;
21+
longitude: string;
22+
}
23+
24+
export interface State {
25+
id: number;
26+
name: string;
27+
state_code: string;
28+
cities: City[];
29+
}
30+
31+
export interface Country {
32+
id: number;
33+
name: string;
34+
iso3: string;
35+
iso2: string;
36+
phone_code: string;
37+
capital: string;
38+
currency: string;
39+
states: State[];
40+
}
41+
42+
}

0 commit comments

Comments
 (0)