Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # packages/babel-plugin-emotion/CHANGELOG.md # packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap # packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap # packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap # packages/babel-plugin-emotion/__tests__/css-requires-options.js # packages/babel-plugin-emotion/__tests__/index.js # packages/babel-plugin-emotion/src/css-macro.js # packages/babel-plugin-emotion/src/emotion-macro.js # packages/babel-plugin-emotion/src/styled-macro.js # packages/babel-plugin-emotion/src/utils/strings.js # packages/babel-plugin/LICENSE # packages/babel-plugin/__tests__/__fixtures__/core-with-component.js # packages/babel-plugin/__tests__/__fixtures__/label-transpiled-by-ts-with-interpolations.js # packages/babel-plugin/__tests__/__snapshots__/css.js.snap # packages/babel-plugin/__tests__/css-macro/__fixtures__/label-transpiled-by-ts.js # packages/babel-plugin/__tests__/source-maps/__fixtures__/css-transpiled-by-ts-with-interpolations.js # packages/babel-plugin/__tests__/source-maps/__fixtures__/css-transpiled-by-ts.js # packages/babel-plugin/__tests__/source-maps/__snapshots__/index.js.snap # packages/babel-plugin/src/utils/checks.js # packages/babel-plugin/src/utils/get-styled-options.js # packages/babel-plugin/src/utils/transform-expression-with-styles.js # packages/babel-plugin/src/utils/ts-output-utils.js # packages/babel-preset-css-prop/CHANGELOG.md # packages/babel-preset-css-prop/package.json # packages/cache/CHANGELOG.md # packages/cache/package.json # packages/core/CHANGELOG.md # packages/core/package.json # packages/create-emotion-server/CHANGELOG.md # packages/create-emotion/CHANGELOG.md # packages/create-emotion/package.json # packages/css/CHANGELOG.md # packages/css/package.json # packages/emotion-server/CHANGELOG.md # packages/emotion-theming/CHANGELOG.md # packages/emotion-theming/package.json # packages/emotion/CHANGELOG.md # packages/eslint-plugin-emotion/CHANGELOG.md # packages/eslint-plugin/LICENSE # packages/is-prop-valid/CHANGELOG.md # packages/is-prop-valid/package.json # packages/jest-emotion/CHANGELOG.md # packages/jest/LICENSE # packages/jest/package.json # packages/native/CHANGELOG.md # packages/native/package.json # packages/primitives-core/CHANGELOG.md # packages/primitives-core/package.json # packages/primitives/CHANGELOG.md # packages/primitives/package.json # packages/serialize/CHANGELOG.md # packages/serialize/package.json # packages/sheet/CHANGELOG.md # packages/sheet/package.json # packages/styled-base/CHANGELOG.md # packages/styled-base/package.json # packages/styled/CHANGELOG.md # packages/styled/package.json # removed-packages/babel-plugin-emotion/package.json # removed-packages/create-emotion-server/package.json # removed-packages/emotion-server/package.json # removed-packages/emotion/package.json # removed-packages/eslint-plugin-emotion/package.json
- Loading branch information
Showing
77 changed files
with
1,073 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with `bolt` to help you release components from a mono-repository. You can find the full documentation for it [here](https://www.npmjs.com/package/@changesets/cli) | ||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
To help you get started though, here are some things you should know about this folder: | ||
|
||
## Changesets are automatically generated | ||
|
||
Changesets are generated by the `yarn changeset` or `npx changeset` command. As long as you are following a changeset release flow, you shouldn't have any problems. | ||
|
||
## Each changeset is its own folder | ||
|
||
We use hashes by default for these folder names to avoid collisions when generating them, but there's no harm that will come from renaming them. | ||
|
||
## Changesets are automatically removed | ||
|
||
When `changeset bump` or equivalent command is run, all the changeset folders are removed. This is so we only ever use a changeset once. This makes this a very bad place to store any other information. | ||
|
||
## Changesets come in two parts | ||
|
||
You should treat these parts quite differently: | ||
|
||
- `changes.md` is a file you should feel free to edit as much as you want. It will be prepended to your changelog when you next run your version command. | ||
- `changes.json` is a file that includes information about releases, what should be versioned by the version command. We strongly recommend against editing this directly, as you may make a new changeset that puts your bolt repository into an invalid state. | ||
|
||
## I want to edit the information in a `changes.json` - how do I do it safely? | ||
|
||
The best option is to make a new changeset using the changeset command, copy over the `changes.md`, then delete the old changeset. | ||
|
||
## Can I rename the folder for my changeset? | ||
|
||
Absolutely! We need unique hashes to make changesets play nicely with git, but changing your folder from our hash to your own name isn't going to cause any problems. | ||
|
||
## Can I manually delete changesets? | ||
|
||
You can, but you should be aware this will remove the intent to release communicated by the changeset, and should be done with caution. | ||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Emotion team and other contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Emotion team and other contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
6 changes: 6 additions & 0 deletions
6
packages/babel-plugin/__tests__/__fixtures__/core-with-component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @flow | ||
import styled from '@emotion/styled' | ||
|
||
const MyComponent = styled.div({ color: 'hotpink' }) | ||
|
||
const OtherComponent = MyComponent.withComponent('section') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.