Skip to content

Commit

Permalink
Merge pull request #40 from rslvn/develop
Browse files Browse the repository at this point in the history
sonarcloud integration
  • Loading branch information
rslvn authored Oct 28, 2020
2 parents 9534137 + 79f01e1 commit 1b5cfa3
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# nuxt-typescript-ssr-firebase-auth

[![BUILD](https://circleci.com/gh/rslvn/nuxt-typescript-ssr-firebase-auth.svg?style=shield)](https://circleci.com/gh/rslvn/nuxt-typescript-ssr-firebase-auth)
[![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)
[![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)
[![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)

`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.

Expand Down
10 changes: 9 additions & 1 deletion src/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ const config: Configuration = {
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxt/typescript-build',
['@nuxt/typescript-build', {
typeCheck: {
async: true,
typescript: {
enable: true,
memoryLimit: 2048
}
}
}],
'@nuxtjs/stylelint-module'
],
/*
Expand Down
14 changes: 8 additions & 6 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"cookie-parser": "^1.4.5",
"cookie-universal-nuxt": "^2.1.4",
"cors": "^2.8.5",
"country-state-city": "^1.0.5",
"cropperjs": "^1.5.7",
"debounce": "^1.2.0",
"dotenv": "^8.2.0",
Expand All @@ -94,7 +95,8 @@
"vue-lazyload": "^1.3.3",
"vue-meta": "^2.4.0",
"vue-rx": "^6.2.0",
"vuex-class": "^0.3.2"
"vuex-class": "^0.3.2",
"world-cities": "file:../../world-cities"
},
"devDependencies": {
"@babel/core": "^7.7.7",
Expand All @@ -107,7 +109,9 @@
"@nuxtjs/stylelint-module": "^4.0.0",
"@types/jest": "^26.0.8",
"@types/vfile-message": "^2.0.0",
"@vue/test-utils": "^1.0.0-beta.27",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.1.0",
"core-js": "^3.6.5",
"dts-generator": "^3.0.0",
"eslint": "^7.5.0",
Expand All @@ -118,16 +122,14 @@
"eslint-plugin-vue": "^6.2.2",
"firebase-tools": "^8.6.0",
"husky": "^4.2.5",
"jest": "^24.1.0",
"jest-serializer-vue": "^2.0.2",
"lint-staged": "^10.2.11",
"node-sass": "^4.14.1",
"prettier": "^2.0.5",
"sass-loader": "^9.0.2",
"stylelint": "^13.6.1",
"@vue/test-utils": "^1.0.0-beta.27",
"babel-jest": "^24.1.0",
"jest": "^24.1.0",
"vue-jest": "^4.0.0-0",
"ts-jest": "^25.0.0"
"ts-jest": "^25.0.0",
"vue-jest": "^4.0.0-0"
}
}
29 changes: 29 additions & 0 deletions src/ts-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,32 @@ declare module '*.vue' {
import Vue from 'vue'
export default Vue
}

declare module CityDB {

export interface City {
id: number;
name: string;
latitude: string;
longitude: string;
}

export interface State {
id: number;
name: string;
state_code: string;
cities: City[];
}

export interface Country {
id: number;
name: string;
iso3: string;
iso2: string;
phone_code: string;
capital: string;
currency: string;
states: State[];
}

}

0 comments on commit 1b5cfa3

Please sign in to comment.