-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: switch from `gatsby` to `next`
- Loading branch information
1 parent
37dab36
commit 3c4a151
Showing
186 changed files
with
4,977 additions
and
16,391 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "@dg-scripts" | ||
"extends": ["next/core-web-vitals", "prettier"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
<p align="center"> | ||
<a href="https://www.gatsbyjs.com"> | ||
<img | ||
alt="Gatsby" | ||
src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" | ||
width="60" | ||
/> | ||
</a> | ||
</p> | ||
<h1 align="center"> | ||
Gatsby's Blog Starter | ||
Next.js Blog Starter | ||
</h1> | ||
|
||
[![Author](https://img.shields.io/badge/author-sabertaz-lightgrey?style=for-the-badge)](https://github.com/sabertazimi) | ||
|
@@ -19,11 +10,9 @@ | |
|
||
[![CI](https://img.shields.io/github/workflow/status/sabertazimi/blog/CI/main?style=for-the-badge&logo=github)](https://github.com/sabertazimi/blog/actions/workflows/ci.yml) | ||
[![CodeQL](https://img.shields.io/github/workflow/status/sabertazimi/blog/CodeQL/main?label=CodeQL&logo=github&style=for-the-badge)](https://github.com/sabertazimi/blog/actions/workflows/codeql-analysis.yml) | ||
|
||
[![Jest Coverage](https://img.shields.io/codecov/c/github/sabertazimi/blog?logo=codecov&style=for-the-badge)](https://codecov.io/gh/sabertazimi/blog) | ||
[![Jest Coverage](https://raw.githubusercontents.com/sabertazimi/blog/gh-pages/coverage-lines.svg)](https://github.com/sabertazimi/blog/actions/workflows/ci.yml) | ||
|
||
A great [blog](https://sabertazimi.github.io/blog) system based on React and Gatsby. | ||
A great [blog](https://sabertazimi.github.io/blog) system based on React and Next.js. | ||
|
||
## Features | ||
|
||
|
@@ -92,43 +81,33 @@ npm install | |
### Development | ||
|
||
```bash | ||
# http://localhost:8000 | ||
# http://localhost:3000 | ||
npm start | ||
``` | ||
|
||
**Open the source code and start editing!** | ||
|
||
Your site is now running at `http://localhost:8000`! | ||
|
||
> You'll also see a second link: \_`http://localhost:8000/___graphql`\_. | ||
> This is a tool you can use to experiment with querying your data | ||
Your site is now running at `http://localhost:3000`! | ||
|
||
## 💫 Deployment | ||
|
||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fsabertazimi%2Fblog&project-name=blog&repo-name=blog&demo-title=Sabertaz%20Blog&demo-url=https%3A%2F%2Fblog.tazimi.dev) | ||
|
||
Build for `/` path: | ||
|
||
```bash | ||
# Deploy public/ directory with GitHub Pages or Gatsby Cloud. | ||
# Deploy with Vercel. | ||
npm run build | ||
``` | ||
|
||
Build for `/xxx` prefix path: | ||
|
||
```bash | ||
npm run build:gh-pages | ||
``` | ||
|
||
More Github Pages deployment details in `.github/workflows/ci.yml`. | ||
|
||
## Fold Structure | ||
|
||
A quick look at the top-level files and directories you'll see in a Gatsby project. | ||
A quick look at the top-level files and directories you'll see in a Next.js project. | ||
|
||
```bash | ||
. | ||
├── node_modules | ||
├── __mocks__ | ||
├── scripts | ||
├── src | ||
├── .gitignore | ||
├── .tokeignore | ||
|
@@ -137,61 +116,37 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje | |
├── .prettierrc.json | ||
├── .stylelintrc.json | ||
├── .versionrc.json | ||
├── gatsby-browser.js | ||
├── gatsby-config.js | ||
├── gatsby-node.js | ||
├── gatsby-ssr.js | ||
├── jest.config.js | ||
├── jest.env.setup.js | ||
├── jest.setup.js | ||
├── jest.transformer.js | ||
├── index.d.ts | ||
├── jsconfig.json | ||
├── tsconfig.json | ||
├── postcss.config.js | ||
├── tailwind.config.js | ||
├── LICENSE | ||
├── package.json | ||
├── package-lock.json | ||
└── README.md | ||
``` | ||
|
||
1. **`/node_modules`**: This directory contains all of the modules of code. | ||
2. **`/__mocks__`**: mock API for 3rd-party libraries for Jest testing. | ||
3. **`/src`**: This directory contains all of the code related to the front-end. | ||
4. **`/scripts`**: CI related-scripts written in JavaScript. | ||
5. **`.gitignore`**: This file tells git which files it should not track. | ||
6. **`.tokeignore`**: This is a configuration file for [Code Lines](https://github.com/XAMPPRocky/tokei). | ||
7. **`.eslintrc.json`**: This is a configuration file for [ESLint](https://eslint.org). | ||
8. **`.markdownlint.json`**: This is a configuration file for [MarkdownLint](https://github.com/DavidAnson/markdownlint). | ||
9. **`.prettierrc.json`**: This is a configuration file for [Prettier](https://prettier.io). | ||
10. **`.stylelintrc.json`**: This is a configuration file for [StyleLint](https://stylelint.io). | ||
11. **`.versionrc.json`**: This is a configuration file for [Standard Version](https://github.com/conventional-changelog/standard-version). | ||
12. **`gatsby-browser.js`**: This file is usage of the [Gatsby Browser APIs](https://www.gatsbyjs.com/docs/browser-apis). | ||
13. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. | ||
14. **`gatsby-node.js`**: This file is usage of the [Gatsby Node APIs](https://www.gatsbyjs.com/docs/node-apis). | ||
15. **`gatsby-ssr.js`**: | ||
This file is usage of the [Gatsby Server Side Rendering APIs](https://www.gatsbyjs.com/docs/ssr-apis). | ||
16. **`jest.config.js`**: This is configuration file for [Jest](https://jestjs.io). | ||
17. **`jest.env.setup.js`**: This is Jest environment setup script. | ||
18. **`jest.setup.js`**: This is Jest basic setup script (after environment setup). | ||
19. **`jest.transformer.js`**: This is TypeScript testing code transformer for Jest. | ||
20. **`index.d.ts`**: This is types definition for static assets (like `CSS`/`JPG`/`PNG`). | ||
21. **`jsconfig.json`**: This is a configuration file for [VSCode](https://code.visualstudio.com). | ||
22. **`tsconfig.json`**: This is a configuration file for [TypeScript](https://www.typescriptlang.org). | ||
23. **`postcss.config.js`**: This is a configuration file for [PostCSS](https://postcss.org). | ||
24. **`tailwind.config.js`**: This is a configuration file for [Tailwind.css](https://tailwindcss.com). | ||
25. **`LICENSE`**: This Gatsby starter is licensed under the `MIT` license. | ||
26. **`package.json`**: A manifest file for Node.js projects. | ||
27. **`package-lock.json`**: This is automatically generated file based on NPM dependencies. | ||
28. **`README.md`**: A text file containing useful reference information. | ||
4. **`.gitignore`**: This file tells git which files it should not track. | ||
5. **`.tokeignore`**: This is a configuration file for [Code Lines](https://github.com/XAMPPRocky/tokei). | ||
6. **`.eslintrc.json`**: This is a configuration file for [ESLint](https://eslint.org). | ||
7. **`.markdownlint.json`**: This is a configuration file for [MarkdownLint](https://github.com/DavidAnson/markdownlint). | ||
8. **`.prettierrc.json`**: This is a configuration file for [Prettier](https://prettier.io). | ||
9. **`.stylelintrc.json`**: This is a configuration file for [StyleLint](https://stylelint.io). | ||
10. **`.versionrc.json`**: This is a configuration file for [Standard Version](https://github.com/conventional-changelog/standard-version). | ||
11. **`jest.config.js`**: This is configuration file for [Jest](https://jestjs.io). | ||
12. **`jest.setup.js`**: This is Jest basic setup script (after environment setup). | ||
13. **`tsconfig.json`**: This is a configuration file for [TypeScript](https://www.typescriptlang.org). | ||
14. **`postcss.config.js`**: This is a configuration file for [PostCSS](https://postcss.org). | ||
15. **`tailwind.config.js`**: This is a configuration file for [Tailwind.css](https://tailwindcss.com). | ||
16. **`LICENSE`**: This Next.js starter is licensed under the `MIT` license. | ||
17. **`package.json`**: A manifest file for Node.js projects. | ||
18. **`README.md`**: A text file containing useful reference information. | ||
|
||
## Contact | ||
|
||
[![Email](https://img.shields.io/badge/-Gmail-ea4335?style=for-the-badge&logo=gmail&logoColor=white)](mailto:[email protected]) | ||
[![Twitter](https://img.shields.io/badge/-Twitter-1da1f2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/sabertazimi) | ||
[![GitHub](https://img.shields.io/badge/-GitHub-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/sabertazimi) | ||
|
||
## Reference | ||
|
||
- [Bungee Font](https://fonts.google.com/specimen/Bungee) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Article/ArticleComments.tsx → components/Article/ArticleComments.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/Article/ArticleContent.tsx → components/Article/ArticleContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
3c4a151
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
blog – ./
blog-sabertaz.vercel.app
blog-seven-olive-63.vercel.app
blog-git-main-sabertaz.vercel.app