mirror of
https://github.com/apache/superset.git
synced 2024-09-19 20:19:37 -04:00
c4b946f965
[SIP-4] add lerna monorepo and`@superset-ui/core` package with `SupersetClient`
62 lines
1.4 KiB
Markdown
62 lines
1.4 KiB
Markdown
# `@superset-ui`
|
|
|
|
Collection of packages that power the Apache Superset UI, and can be used to craft custom data
|
|
applications that leverage a Superset backend :chart_with_upwards_trend:
|
|
|
|
## Packages
|
|
|
|
[@superset-ui/core](https://github.com/apache-superset/superset-ui/tree/master/packages/superset-ui-core)
|
|
[![Version](https://img.shields.io/npm/v/@superset-ui/core.svg?style=flat)](https://img.shields.io/npm/v/@superset-ui/core.svg?style=flat)
|
|
|
|
#### Coming :soon:
|
|
|
|
- Data providers
|
|
- Embeddable charts
|
|
- Chart collections
|
|
- Demo storybook package
|
|
|
|
### Development
|
|
|
|
[lerna](https://github.com/lerna/lerna/) is used to manage versions and dependencies between
|
|
packages in this monorepo.
|
|
|
|
```
|
|
superset-ui/
|
|
lerna.json
|
|
package.json
|
|
...
|
|
packages/
|
|
package1/
|
|
package.json
|
|
...
|
|
src/
|
|
test/
|
|
...
|
|
lib/
|
|
esm/
|
|
...
|
|
...
|
|
```
|
|
|
|
For easiest development
|
|
|
|
1. clone this repo
|
|
2. install the root npm modules including lerna and yarn
|
|
3. have lerna install package dependencies and manage the symlinking between packages for you
|
|
|
|
```sh
|
|
git clone ...superset-ui && cd superset-ui
|
|
npm install
|
|
lerna bootstrap
|
|
```
|
|
|
|
### Builds, linting, and testing
|
|
|
|
Each package defines its own build config, linting, and testing. You can have lerna run commands
|
|
across all packages using the syntax `lerna exec test` from the root `@superset/monorepo` root
|
|
directory.
|
|
|
|
### License
|
|
|
|
Apache-2.0
|