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

Chore: Tailwind config preset and TS migration #1273

Merged
merged 7 commits into from
May 13, 2024

Conversation

znicholasbrown
Copy link
Contributor

While a chore, this PR includes some notable changes:

  1. The package now expliticly exports all files instead of just those in /dist - this is a convenience for downstream consumers to allow better file discovery/not limit to exports in /dist
  2. Postcss config has been migrated to the modern .cjs syntax
  3. Tailwind plugin has been removed in favor of presets syntax (a plugin still exists for adding utilities but this doesn't need to be consumed by downstream applications anymore)
  4. Tailwind config has been migrated to ES modules
  5. Standardizes tsconfig with other packages in our ecosystem; a future enhancement would be to centralize and extend this config but that felt out of scope of this PR.

@znicholasbrown znicholasbrown requested a review from a team as a code owner May 3, 2024 23:10
Copy link

netlify bot commented May 3, 2024

Deploy Preview for prefect-design ready!

Name Link
🔨 Latest commit f542eb8
🔍 Latest deploy log https://app.netlify.com/sites/prefect-design/deploys/66422b7a6f7f6600087ccd3a
😎 Deploy Preview https://deploy-preview-1273--prefect-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -32,12 +32,10 @@
".": {
"import": "./dist/prefect-design.mjs",
"require": "./dist/prefect-design.umd.js"
},
"./dist/style.css": "./dist/style.css",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downstream applications will need to update their reference to this file

install(app: App) {
installs.forEach(install => install(app))
layouts.forEach(install => install(app))
plugins.forEach(install => install(app))
},
}
} satisfies Plugin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to use satisfies? Lol

@znicholasbrown znicholasbrown merged commit 87813dc into main May 13, 2024
6 checks passed
@znicholasbrown znicholasbrown deleted the nicholas/chore/plugin-and-ts-2024-05-02 branch May 13, 2024 16:42
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

Successfully merging this pull request may close these issues.

2 participants