Skip to content

WIP: Build packages with Preconstruct 2#1423

Merged
hasparus merged 40 commits into
developfrom
preconstruct-2
Apr 5, 2021
Merged

WIP: Build packages with Preconstruct 2#1423
hasparus merged 40 commits into
developfrom
preconstruct-2

Conversation

@hasparus
Copy link
Copy Markdown
Member

@hasparus hasparus commented Jan 10, 2021

I made a few updates to #1204. Preconstruct is SO FAST comparing to our current microbundle setup.

To-Do

  • Release canary and test it in a few of my apps. (I'm kinda worried this change breaks something.)
  • Preconstruct seems to leave TypeScript's export type untouched in dev script. It should be compiled, and it is in build, but... This is weird. I'm not sure if it's a problem.
  • Fix config to make tests pass
  • Ignore tests in global typecheck and add typecheck:tests to prerelease script
  • Let's exclude editor from global typecheck, and add a separate tsconfig.json for it. I don't think it's worth to fix / work around type errors in it for now.
  • JSX namespace entrypoints are not resolved. (@theme-ui/core/jsx-dev-runtime)
📦 Published PR as canary version: 0.7.0--canary.1423.3d0dfed.0

✨ Test out this PR locally via:

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 10, 2021

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/eackebd6g
✅ Preview: Failed

[Deployment for 6304630 failed]

@hasparus hasparus changed the title Build packages with Preconstruct 2 WIP: Build packages with Preconstruct 2 Jan 11, 2021
@hasparus hasparus merged commit 3d0dfed into develop Apr 5, 2021
@hasparus hasparus deleted the preconstruct-2 branch April 5, 2021 19:07
@hasparus hasparus added the minor Increment the minor version when merged label Apr 5, 2021
@hasparus
Copy link
Copy Markdown
Member Author

🚀 PR was released in v0.7.0-develop.0 🚀

@hasparus hasparus added the prerelease This change is available in a prerelease. label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged prerelease This change is available in a prerelease.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants