Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build completely new blog when Gatsby v5 released #6

Closed
lonsagisawa opened this issue Nov 3, 2022 · 2 comments
Closed

Build completely new blog when Gatsby v5 released #6

lonsagisawa opened this issue Nov 3, 2022 · 2 comments

Comments

@lonsagisawa
Copy link
Owner

Gatsby v5 REQUIRES node v18, but I can't resolve gatsbyjs/gatsby#35607 despite tried some workarounds like:

  • forcing resolution source-map@next
  • trying gatsby@next (gatsby v5 beta for now)

I don't want to stick to Gatsby v4 forever, and node v16 eventually going to EOL anyway, I decided to trash this code base and build from scratch.

Feature list / Ideas

  • Pull articles from Contentful
    • What's modern best practice? Taking 2min to build seems not normal.
    • Why some images contained in container div element, some images not...
  • Build on Gatsby Cloud, deploy to Vercel combination continues
  • Stylesheets...
    • I found to hate sanitize.css, some elements drives me crazy. Make move to some more modern reset.
    • I'm only using styled components feature from Emotion right now. Maybe give styled-components try.
    • Going back to Tailwind is also an option.
  • Sane, clean and modern development experience...
    • TypeScript first!
    • Make linters working(not working currently for some reason).
  • Migrate syntax highlighting to PrismJS
    • PrismJS had some incompatibilities to CSS framework that I had used before Tailwind. It should be fine with my own style or Tailwind.
  • Maybe drop RSS feed support.
  • Heads up to some Gatsby v5 caveats!
@lonsagisawa
Copy link
Owner Author

Gatsby v5 released, and my work started.

  • Found nicer way to inject CSS reset.
  • Enabled TypeScript, ESLint and Prettier. Type safety gives me a lot of peace of mind, auto-forcing coding style sometimes annoying but helps improve code quality and consistency.
  • Tried styled-components first, but back to Emotion.
  • Maybe try slices? Low priority though.
  • Contentful integration going to be later.

lonsagisawa added a commit that referenced this issue Nov 23, 2022
Build a new blog and portfolio
@lonsagisawa
Copy link
Owner Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant