diff --git a/CHANGELOG.md b/CHANGELOG.md index 5783fb6e..5e3ea853 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.9.1](https://github.com/frouriojs/create-frourio-app/compare/v0.9.0...v0.9.1) (2020-07-04) + + +### Features + +* disable Nuxt telemetry ([923a6c5](https://github.com/frouriojs/create-frourio-app/commit/923a6c51e8f37e56153e375a3f0a1bc9b411670e)) + + +### Bug Fixes + +* bump chalk from 4.0.0 to 4.1.0 ([93e6e2a](https://github.com/frouriojs/create-frourio-app/commit/93e6e2a039f059c8d6ebb6ce84836b68674f907b)) + ## [0.9.0](https://github.com/frouriojs/create-frourio-app/compare/v0.8.0...v0.9.0) (2020-06-29) diff --git a/lib/prompts.js b/lib/prompts.js index ac0afe92..589f6628 100644 --- a/lib/prompts.js +++ b/lib/prompts.js @@ -87,23 +87,23 @@ module.exports = [ }, { name: 'dbPort', - message: '.env TYPEORM_PORT=', + message: 'server/.env TYPEORM_PORT=', default: answers => dbInfo[answers.dbType].port, when: answers => answers.dbType !== 'none' }, { name: 'dbUser', - message: '.env TYPEORM_USERNAME=', + message: 'server/.env TYPEORM_USERNAME=', when: answers => answers.dbType !== 'none' }, { name: 'dbPass', - message: '.env TYPEORM_PASSWORD=', + message: 'server/.env TYPEORM_PASSWORD=', when: answers => answers.dbType !== 'none' }, { name: 'dbName', - message: '.env TYPEORM_DATABASE=', + message: 'server/.env TYPEORM_DATABASE=', when: answers => answers.dbType !== 'none' } ] diff --git a/package.json b/package.json index e56f73cb..f8f51eb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-frourio-app", - "version": "0.9.0", + "version": "0.9.1", "description": "Create a frourio project in seconds", "author": "Solufa ", "license": "MIT", @@ -33,25 +33,25 @@ ], "dependencies": { "cac": "^6.5.10", - "chalk": "^4.0.0", + "chalk": "^4.1.0", "envinfo": "^7.5.1", "sao": "^1.7.1", "validate-npm-package-name": "^3.0.0" }, "devDependencies": { - "@commitlint/cli": "^8.3.5", - "@commitlint/config-conventional": "^8.3.4", + "@commitlint/cli": "^9.0.1", + "@commitlint/config-conventional": "^9.0.1", "ava": "^3.8.2", "eslint": "^6.8.0", "eslint-config-prettier": "^6.11.0", "eslint-config-standard": "^14.1.1", "eslint-plugin-import": "^2.21.1", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^3.1.3", + "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "husky": "^4.2.5", - "lint-staged": "^10.2.6", + "lint-staged": "^10.2.11", "prettier": "2.0.5", "standard-version": "^8.0.0" } diff --git a/templates/aspida/nuxt/axios/nuxt.config.ts b/templates/aspida/nuxt/axios/nuxt.config.ts index 4b76c619..5ff44904 100644 --- a/templates/aspida/nuxt/axios/nuxt.config.ts +++ b/templates/aspida/nuxt/axios/nuxt.config.ts @@ -11,6 +11,16 @@ const config: Configuration = { ** See https://nuxtjs.org/api/configuration-target */ target: '<%= target %>', + /* + ** Nuxt telemetry + ** See https://nuxtjs.org/api/configuration-telemetry + */ + telemetry: false, + /* + ** Auto import components + ** See https://nuxtjs.org/api/configuration-components + */ + components: true, /* ** Headers of the page ** See https://nuxtjs.org/api/configuration-head @@ -41,11 +51,6 @@ const config: Configuration = { ** https://nuxtjs.org/guide/plugins */ plugins: ['~/plugins/api'], - /* - ** Auto import components - ** See https://nuxtjs.org/api/configuration-components - */ - components: true, /* ** Nuxt.js dev-modules */ diff --git a/templates/aspida/nuxt/fetch/nuxt.config.ts b/templates/aspida/nuxt/fetch/nuxt.config.ts index 95524ce5..d1b95971 100644 --- a/templates/aspida/nuxt/fetch/nuxt.config.ts +++ b/templates/aspida/nuxt/fetch/nuxt.config.ts @@ -11,6 +11,16 @@ const config: Configuration = { ** See https://nuxtjs.org/api/configuration-target */ target: '<%= target %>', + /* + ** Nuxt telemetry + ** See https://nuxtjs.org/api/configuration-telemetry + */ + telemetry: false, + /* + ** Auto import components + ** See https://nuxtjs.org/api/configuration-components + */ + components: true, /* ** Headers of the page ** See https://nuxtjs.org/api/configuration-head @@ -41,11 +51,6 @@ const config: Configuration = { ** https://nuxtjs.org/guide/plugins */ plugins: ['~/plugins/api'], - /* - ** Auto import components - ** See https://nuxtjs.org/api/configuration-components - */ - components: true, /* ** Nuxt.js dev-modules */ diff --git a/templates/front/next/components/UserBanner.tsx b/templates/front/next/components/UserBanner.tsx index d50e6b2e..1b50c148 100644 --- a/templates/front/next/components/UserBanner.tsx +++ b/templates/front/next/components/UserBanner.tsx @@ -22,8 +22,8 @@ const UserBanner = () => { ) const login = useCallback(async () => { - const id = prompt('Enter the user id (See .env)') - const pass = prompt('Enter the user pass (See .env)') + const id = prompt('Enter the user id (See server/.env)') + const pass = prompt('Enter the user pass (See server/.env)') if (!id || !pass) return alert('Login failed') let newToken = '' diff --git a/templates/front/nuxt/_package.json b/templates/front/nuxt/_package.json index b40aba25..e0843df4 100644 --- a/templates/front/nuxt/_package.json +++ b/templates/front/nuxt/_package.json @@ -36,7 +36,7 @@ "dependencies": { "@nuxt/typescript-runtime": "^0.4.10", "dotenv": "^8.2.0", - "nuxt": "2.13.0" + "nuxt": "2.13.3" }, "devDependencies": { "@nuxt/typescript-build": "^1.0.3", @@ -46,15 +46,15 @@ "@nuxtjs/stylelint-module": "^4.0.0", "babel-eslint": "^10.0.1", "cross-env": "^7.0.2", - "eslint": "^6.1.0", + "eslint": "^7.4.0", "eslint-config-prettier": "^6.10.0", "eslint-plugin-nuxt": ">=0.4.2", "eslint-plugin-prettier": "^3.1.2", "husky": "^4.0.0", "lint-staged": "^10.0.0", "npm-run-all": "^4.1.5", - "prettier": "^1.19.1", - "stylelint": "^10.1.0", + "prettier": "^2.0.5", + "stylelint": "^13.6.1", "ts-loader": "^7.0.5", "typescript": "^3.9.5" } diff --git a/templates/front/nuxt/components/UserBanner.vue b/templates/front/nuxt/components/UserBanner.vue index 8f266c8c..afd51050 100644 --- a/templates/front/nuxt/components/UserBanner.vue +++ b/templates/front/nuxt/components/UserBanner.vue @@ -32,8 +32,8 @@ export default Vue.extend({ }) }, async login() { - const id = prompt('Enter the user id (See .env)') - const pass = prompt('Enter the user pass (See .env)') + const id = prompt('Enter the user id (See server/.env)') + const pass = prompt('Enter the user pass (See server/.env)') if (!id || !pass) return alert('Login failed') try { diff --git a/templates/front/nuxt/layouts/default.vue b/templates/front/nuxt/layouts/default.vue index 2f454596..16c520c7 100644 --- a/templates/front/nuxt/layouts/default.vue +++ b/templates/front/nuxt/layouts/default.vue @@ -4,6 +4,12 @@ + +