https://github.com/teambit/teambit-post-export-slot-example
an example how to use the PostExport slot
https://github.com/teambit/teambit-post-export-slot-example
Last synced: 3 months ago
JSON representation
an example how to use the PostExport slot
- Host: GitHub
- URL: https://github.com/teambit/teambit-post-export-slot-example
- Owner: teambit
- Created: 2022-06-20T16:27:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-20T17:16:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T09:37:05.965Z (5 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# teambit-post-export-slot-example
An example how to use the PostExport slot of Scope aspect.
This example prints the full `ComponentID` exported during the export.
To run it, please run the following after cloning the project:```
bit compile
bit install
```Create a new directory `my-scope` in `/tmp` and run the following there
```
bit init --bare
bit start
```
wait a few minutes until it shows the link to http://localhost:3000Go back to the cloned repo, and run the following:
```
bit remote add http://localhost:3000
bit tag
bit export
```You should see following in the output
```
exportedIds [
ComponentID {
legacyComponentId: BitId {
scope: 'my-scope',
box: undefined,
name: 'post-export-example',
version: undefined
},
_scope: undefined
}
]
exported the following 1 component(s):
my-scope/post-export-example
```