diff --git a/CHANGELOG.md b/CHANGELOG.md index 34f67537..daf85603 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ 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.11.1](https://github.com/frouriojs/create-frourio-app/compare/v0.11.0...v0.11.1) (2020-09-19) + + +### Bug Fixes + +* **Next.js:** rename _app.js to _app.tsx ([11e962c](https://github.com/frouriojs/create-frourio-app/commit/11e962c3ab710594111e8ac0514fe10f7f2397be)) + ## [0.11.0](https://github.com/frouriojs/create-frourio-app/compare/v0.10.2...v0.11.0) (2020-09-19) diff --git a/package.json b/package.json index 25148181..06ac7b78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-frourio-app", - "version": "0.11.0", + "version": "0.11.1", "description": "Create a frourio project in seconds", "author": "Solufa ", "license": "MIT", @@ -48,7 +48,7 @@ "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "prettier": "^2.1.1", + "prettier": "^2.1.2", "standard-version": "^9.0.0" } } diff --git a/templates/front/next/pages/_app.js b/templates/front/next/pages/_app.tsx similarity index 51% rename from templates/front/next/pages/_app.js rename to templates/front/next/pages/_app.tsx index 1e1cec92..27cd5bfc 100644 --- a/templates/front/next/pages/_app.js +++ b/templates/front/next/pages/_app.tsx @@ -1,6 +1,7 @@ +import { AppProps } from 'next/app' import '../styles/globals.css' -function MyApp({ Component, pageProps }) { +function MyApp({ Component, pageProps }: AppProps) { return } diff --git a/test/snapshots/index.test.js.md b/test/snapshots/index.test.js.md index e8bc9cb9..75912d1b 100644 --- a/test/snapshots/index.test.js.md +++ b/test/snapshots/index.test.js.md @@ -20,7 +20,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -121,7 +121,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -221,7 +221,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -322,7 +322,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -423,7 +423,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -524,7 +524,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -626,7 +626,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -736,7 +736,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -846,7 +846,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -956,7 +956,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1066,7 +1066,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1167,7 +1167,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1277,7 +1277,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1387,7 +1387,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1488,7 +1488,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1784,7 +1784,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1885,7 +1885,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -1986,7 +1986,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -2087,7 +2087,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -2188,7 +2188,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', @@ -2289,7 +2289,7 @@ Generated by [AVA](https://avajs.dev). 'components/UserBanner.tsx', 'next-env.d.ts', 'package.json', - 'pages/_app.js', + 'pages/_app.tsx', 'pages/index.tsx', 'public/favicon.ico', 'public/vercel.svg', diff --git a/test/snapshots/index.test.js.snap b/test/snapshots/index.test.js.snap index 52bb48c3..a95a2d41 100644 Binary files a/test/snapshots/index.test.js.snap and b/test/snapshots/index.test.js.snap differ diff --git a/yarn.lock b/yarn.lock index f80191f5..2a15f329 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3882,10 +3882,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.1.tgz#d9485dd5e499daa6cb547023b87a6cf51bee37d6" - integrity sha512-9bY+5ZWCfqj3ghYBLxApy2zf6m+NJo5GzmLTpr9FsApsfjriNnS2dahWReHMi7qNPhhHl9SYHJs2cHZLgexNIw== +prettier@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5" + integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg== pretty-ms@^7.0.0: version "7.0.0"