-
Notifications
You must be signed in to change notification settings - Fork 70
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
Update documentation for all @compiled/
packages
#1689
Conversation
|
✅ Deploy Preview for compiled-css-in-js canceled.
|
@compiled/
packages
|
||
#### sortAtRules | ||
|
||
Unused. |
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.
I reckon dealing with stuff that's unused, deprecated, obsolete etc would be out of scope of this PR - as a website/docs-focussed PR, I want to avoid making changes to the Compiled packages
I've made an issue so that we can properly clean these up in the future #1690
|
||
#### processXcss | ||
|
||
An option we are only using internally. Don't use! |
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.
not sure if there's any point documenting internal options... i've erred towards including them just so we can use the docs as a single source of truth
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.
I think that's fine to be honest, probably helps the internal team as well, eh?
@@ -32,4 +32,4 @@ export default [ | |||
|
|||
## Rules | |||
|
|||
See [here](https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin) for a list of rules in `@compiled/eslint-plugin`. | |||
See [here](https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin) for a non-exhaustive list of rules in `@compiled/eslint-plugin`. |
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.
Tracked through #1691
|
||
Enables baking your styles into JavaScript. | ||
- Type: `string[]` | ||
- Default: none, but note that `enhanced-resolver` and `@compiled/babel-plugin` have their own different defaults when the `extensions` option is not set. |
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.
The fact that there isn't a single default being applied everywhere does admittedly sound like a bug
enhanced-resolver
uses ['js', 'json', 'node']
as a default, while @compiled/babel-plugin
uses ['.js', '.jsx', '.ts', '.tsx']
as a default - I made an issue to track it here #1692
|
||
#### processXcss | ||
|
||
An option we are only using internally. Don't use! |
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.
I think that's fine to be honest, probably helps the internal team as well, eh?
fcd709e
to
cdf4be7
Compare
Follow-up to #1687 and #1688
Click this link to see how the website looks: https://deploy-preview-1689--compiled-css-in-js.netlify.app/
Main change:
@compiled/
packages so that the options listed are actually accurate@compiled/babel-plugin
and@compiled/webpack-loader
/@compiled/parcel-*
, I've tried my best to de-duplicate them for a single source of truthextensions
across@compiled/babel-plugin
,@compiled/webpack-loader
and@compiled/parcel-transformer
#1692Below are the other changes I've made. I recommend looking at the commit-by-commit:
@compiled/react
documentation to explicitly deprecatestyled
andClassName
APIs, and makecss
/cssMap
/keyframes
more prominent