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

feat(examples/next): Add new deps, fully use TSX, rebuild #2068

Merged
merged 1 commit into from Jan 10, 2022

Conversation

lachlanjc
Copy link
Member

@lachlanjc lachlanjc commented Jan 8, 2022

Rebuilt the Next.js example with a better TypeScript setup, including all the pages, & the required definition file for MDX. Since Emotion 11, SSR Just Works™️ with Next.js, so we don't need a .babelrc (which would also slow down Next.js by preventing the use of SWR, see https://nextjs.org/docs/messages/swc-disabled). The example now has clearer, more easily delete-able example files for using the JSX pragma, MDX, & @theme-ui/components.

Closes #992

📦 Published PR as canary version: 0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0

✨ Test out this PR locally via:

npm install @theme-ui/color-modes@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/color@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/components@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/core@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/css@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/custom-properties@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/editor@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install gatsby-plugin-theme-ui@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install gatsby-theme-style-guide@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install gatsby-theme-ui-layout@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/match-media@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/mdx@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/parse-props@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-base@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-bootstrap@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-bulma@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-dark@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-deep@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-funk@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-future@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-polaris@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-roboto@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-sketchy@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-swiss@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-system@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-tailwind@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/preset-tosh@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/presets@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/prism@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/sidenav@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/style-guide@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/tailwind@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/theme-provider@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install theme-ui@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
npm install @theme-ui/typography@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
# or 
yarn add @theme-ui/color-modes@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/color@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/components@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/core@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/css@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/custom-properties@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/editor@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add gatsby-plugin-theme-ui@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add gatsby-theme-style-guide@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add gatsby-theme-ui-layout@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/match-media@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/mdx@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/parse-props@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-base@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-bootstrap@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-bulma@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-dark@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-deep@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-funk@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-future@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-polaris@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-roboto@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-sketchy@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-swiss@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-system@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-tailwind@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/preset-tosh@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/presets@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/prism@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/sidenav@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/style-guide@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/tailwind@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/theme-provider@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add theme-ui@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0
yarn add @theme-ui/typography@0.13.2--canary.2068.3a5e2f116604255e6a5ed7a42571fce8d4c77983.0

Version

Published prerelease version: v0.14.0-develop.0

Changelog

🚀 Enhancement

  • feat(examples/next): Add new deps, fully use TSX, rebuild #2068 (@lachlanjc)

Authors: 1

@vercel
Copy link

vercel bot commented Jan 8, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/systemui/theme-ui/Hkdv5meSk1G998nkuhWNEZZCpPgC
✅ Preview: https://theme-ui-git-lachlanjc-next-tsx-systemui.vercel.app

@hasparus
Copy link
Member

love it

@hasparus hasparus merged commit e18d466 into develop Jan 10, 2022
@hasparus hasparus deleted the lachlanjc-next-tsx branch January 10, 2022 16:15
@hasparus hasparus added the prerelease This change is available in a prerelease. label Jan 10, 2022
@hasparus
Copy link
Member

🚀 PR was released in v0.14.0 🚀

@hasparus hasparus added released This issue/pull request has been released. and removed prerelease This change is available in a prerelease. labels Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Next.js example with latest Emotion
2 participants