Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
feat: add @superset-ui/superset-ui package as one-stop install (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored Nov 19, 2019
1 parent d5aa4f0 commit f0899d8
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/superset-ui-superset-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## @superset-ui/superset-ui

[![Version](https://img.shields.io/npm/v/@superset-ui/superset-ui.svg?style=flat)](https://img.shields.io/npm/v/@superset-ui/superset-ui.svg?style=flat)
[![David (path)](https://img.shields.io/david/apache-superset/superset-ui.svg?path=packages%2Fsuperset-ui-superset-ui&style=flat-square)](https://david-dm.org/apache-superset/superset-ui?path=packages/superset-ui-superset-ui)

Description

#### Example usage

```js
import { xxx } from '@superset-ui/superset-ui';
```

#### API

`fn(args)`

- Do something

### Development

`@data-ui/build-config` is used to manage the build configuration for this package including babel
builds, jest testing, eslint, and prettier.
38 changes: 38 additions & 0 deletions packages/superset-ui-superset-ui/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "@superset-ui/superset-ui",
"version": "0.0.0",
"description": "One stop install for all superset-ui packages",
"sideEffects": false,
"main": "lib/index.js",
"module": "esm/index.js",
"files": [
"esm",
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/apache-superset/superset-ui.git"
},
"keywords": ["superset"],
"author": "Superset",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/apache-superset/superset-ui/issues"
},
"homepage": "https://github.com/apache-superset/superset-ui#readme",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@superset-ui/chart": "0.12.4",
"@superset-ui/chart-composition": "0.12.4",
"@superset-ui/color": "0.12.4",
"@superset-ui/connection": "0.12.3",
"@superset-ui/core": "0.12.4",
"@superset-ui/dimension": "0.12.3",
"@superset-ui/number-format": "0.12.4",
"@superset-ui/query": "0.12.4",
"@superset-ui/time-format": "0.12.4",
"@superset-ui/translation": "0.12.0"
}
}
10 changes: 10 additions & 0 deletions packages/superset-ui-superset-ui/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export * from '@superset-ui/chart';
export * from '@superset-ui/chart-composition';
export * from '@superset-ui/color';
export * from '@superset-ui/connection';
export * from '@superset-ui/core';
export * from '@superset-ui/dimension';
export * from '@superset-ui/number-format';
export * from '@superset-ui/query';
export * from '@superset-ui/time-format';
export * from '@superset-ui/translation';
48 changes: 48 additions & 0 deletions packages/superset-ui-superset-ui/test/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import {
SuperChart,
ChartFrame,
CategoricalColorScale,
SupersetClient,
Registry,
getTextDimension,
getNumberFormatterRegistry,
buildQueryContext,
getTimeFormatterRegistry,
t,
} from '../src';

describe('@superset-ui/superset-ui', () => {
it('it should export @superset-ui/core', () => {
expect(Registry).toBeDefined();
});
it('should export @superset-ui/chart', () => {
expect(SuperChart).toBeDefined();
});
it('should export @superset-ui/chart-composition', () => {
expect(ChartFrame).toBeDefined();
});
it('should export @superset-ui/color', () => {
expect(CategoricalColorScale).toBeDefined();
});
it('should export @superset-ui/connection', () => {
expect(SupersetClient).toBeDefined();
});
it('should export @superset-ui/core', () => {
expect(Registry).toBeDefined();
});
it('should export @superset-ui/dimension', () => {
expect(getTextDimension).toBeDefined();
});
it('should export @superset-ui/number-format', () => {
expect(getNumberFormatterRegistry).toBeDefined();
});
it('should export @superset-ui/query', () => {
expect(buildQueryContext).toBeDefined();
});
it('should export @superset-ui/time-format', () => {
expect(getTimeFormatterRegistry).toBeDefined();
});
it('should export @superset-ui/translation', () => {
expect(t).toBeDefined();
});
});

0 comments on commit f0899d8

Please sign in to comment.