Skip to content

Commit b15eb12

Browse files
refactor(framework): Move all packages to @ui5-npm namespace (#41)
* docs: Fixed some demos * chore: Exclude enums from code coverage Closes #40
1 parent 8ca077c commit b15eb12

File tree

511 files changed

+281
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

511 files changed

+281
-345
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ build
1414
/packages/*/npm/**/*.d.ts
1515
.out
1616
lerna-debug.log
17-
packages/fiori3/scripts/wrapperGeneration/json
17+
packages/main/scripts/wrapperGeneration/json

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
88

99
### Bug Fixes
1010

11-
* **fiori3:** Added react-table dependency ([ebc8fc5](https://github.com/SAP/ui5-webcomponents-react/commit/ebc8fc5))
11+
* **main:** Added react-table dependency ([ebc8fc5](https://github.com/SAP/ui5-webcomponents-react/commit/ebc8fc5))
1212

1313

1414

@@ -47,7 +47,7 @@ Please refer to the [UI5 Web Components Changelog](https://github.com/SAP/ui5-we
4747

4848
### BREAKING CHANGES
4949

50-
* **base:** `@ui5-webcomponents-react/styles` and `@ui5-webcomponents-react/utils` are replaced by ``@ui5-webcomponents-react/base`
50+
* **base:** `@ui5-webcomponents-react/styles` and `@ui5-webcomponents-react/utils` are replaced by ``@ui5/webcomponents-react-base`
5151
* **base:** Deleted Themes `sap_belize`, `sap_belize_plus` and `sap_belize_hcb`
5252
* **base:** Removed `createThemeMap` from base
5353
* **base:** Removed `getThemeClassFor` from base
@@ -76,7 +76,7 @@ Please refer to the [UI5 Web Components Changelog](https://github.com/SAP/ui5-we
7676

7777
## [0.3.2-rc.1](https://github.com/SAP/ui5-webcomponents-react/compare/v0.3.2-rc.0...v0.3.2-rc.1) (2019-06-14)
7878

79-
**Note:** Version bump only for package @ui5-webcomponents-react/suite
79+
**Note:** Version bump only for package @ui5/webcomponents-react-suite
8080

8181

8282

@@ -133,7 +133,7 @@ See also [UI5-WebComponents 0.12.0](https://github.com/SAP/ui5-webcomponents/rel
133133

134134
## [0.3.1-rc.0](https://github.com/SAP/ui5-webcomponents-react/compare/v0.3.0...v0.3.1-rc.0) (2019-06-03)
135135

136-
**Note:** Version bump only for package @ui5-webcomponents-react/suite
136+
**Note:** Version bump only for package @ui5/webcomponents-react-suite
137137

138138

139139

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ You can play around with our components by visiting our [Storybook](https://sap.
3030

3131
### Package Overview
3232

33-
#### [@ui5-webcomponents-react/fiori3](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/fiori3) - Fiori 3 Components
34-
[![](https://img.shields.io/npm/v/@ui5-webcomponents-react/fiori3.svg)](https://www.npmjs.com/package/@ui5-webcomponents-react/fiori3)
35-
<!-- ![https://bundlephobia.com/result?p=@ui5-webcomponents-react/fiori3](https://img.shields.io/bundlephobia/min/@ui5-webcomponents-react/fiori3.svg?label=size) -->
36-
<!-- ![https://bundlephobia.com/result?p=@ui5-webcomponents-react/fiori3](https://img.shields.io/bundlephobia/minzip/@ui5-webcomponents-react/fiori3.svg?label=gzip%20size) -->
33+
#### [@ui5/webcomponents-react](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/main) - Fiori 3 Components
34+
[![](https://img.shields.io/npm/v/@ui5/webcomponents-react.svg)](https://www.npmjs.com/package/@ui5/webcomponents-react)
35+
<!-- ![https://bundlephobia.com/result?p=@ui5/webcomponents-react](https://img.shields.io/bundlephobia/min/@ui5/webcomponents-react.svg?label=size) -->
36+
<!-- ![https://bundlephobia.com/result?p=@ui5/webcomponents-react](https://img.shields.io/bundlephobia/minzip/@ui5/webcomponents-react.svg?label=gzip%20size) -->
3737

38-
#### [@ui5-webcomponents-react/charts](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/charts) - Fiori Charts
39-
[![](https://img.shields.io/npm/v/@ui5-webcomponents-react/charts.svg)](https://www.npmjs.com/package/@ui5-webcomponents-react/charts)
40-
<!-- ![https://bundlephobia.com/result?p=@ui5-webcomponents-react/charts](https://img.shields.io/bundlephobia/min/@ui5-webcomponents-react/charts.svg?label=size) -->
41-
<!-- ![https://bundlephobia.com/result?p=@ui5-webcomponents-react/charts](https://img.shields.io/bundlephobia/minzip/@ui5-webcomponents-react/charts.svg?label=gzip%20size) -->
38+
#### [@ui5/webcomponents-react-charts](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/charts) - Fiori Charts
39+
[![](https://img.shields.io/npm/v/@ui5/webcomponents-react-charts.svg)](https://www.npmjs.com/package/@ui5/webcomponents-react-charts)
40+
<!-- ![https://bundlephobia.com/result?p=@ui5/webcomponents-react-charts](https://img.shields.io/bundlephobia/min/@ui5/webcomponents-react-charts.svg?label=size) -->
41+
<!-- ![https://bundlephobia.com/result?p=@ui5/webcomponents-react-charts](https://img.shields.io/bundlephobia/minzip/@ui5/webcomponents-react-charts.svg?label=gzip%20size) -->
4242

43-
#### [@ui5-webcomponents-react/base](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/base) - Utils
44-
[![](https://img.shields.io/npm/v/@ui5-webcomponents-react/base.svg)](https://www.npmjs.com/package/@ui5-webcomponents-react/base)
45-
<!-- ![https://bundlephobia.com/result?p=@ui5-webcomponents-react/base](https://img.shields.io/bundlephobia/min/@ui5-webcomponents-react/base.svg?label=size) -->
46-
<!-- ![https://bundlephobia.com/result?p=@ui5-webcomponents-react/base](https://img.shields.io/bundlephobia/minzip/@ui5-webcomponents-react/base.svg?label=gzip%20size) -->
43+
#### [@ui5/webcomponents-react-base](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/base) - Utils
44+
[![](https://img.shields.io/npm/v/@ui5/webcomponents-react-base.svg)](https://www.npmjs.com/package/@ui5/webcomponents-react-base)
45+
<!-- ![https://bundlephobia.com/result?p=@ui5/webcomponents-react-base](https://img.shields.io/bundlephobia/min/@ui5/webcomponents-react-base.svg?label=size) -->
46+
<!-- ![https://bundlephobia.com/result?p=@ui5/webcomponents-react-base](https://img.shields.io/bundlephobia/minzip/@ui5/webcomponents-react-base.svg?label=gzip%20size) -->
4747

4848

4949
<!-- *********************************************************************** -->
@@ -60,7 +60,7 @@ You can play around with our components by visiting our [Storybook](https://sap.
6060

6161
To consume `ui5-webcomponents-react`, first you need to install the npm module:
6262
```sh
63-
npm install @ui5-webcomponents-react/fiori3 --save
63+
npm install @ui5/webcomponents-react --save
6464
```
6565

6666
<!-- *********************************************************************** -->
@@ -71,7 +71,7 @@ npm install @ui5-webcomponents-react/fiori3 --save
7171
In order to use `ui5-webcomponents-react` you have to wrap your application's root component into the `ThemeProvider`.<br/>
7272
You will find this component most likely in `src/App.js`:
7373
```jsx
74-
import { ThemeProvider } from '@ui5-webcomponents-react/fiori3/lib/ThemeProvider';
74+
import { ThemeProvider } from '@ui5/webcomponents-react/lib/ThemeProvider';
7575
...
7676
render() {
7777
return (
@@ -88,7 +88,7 @@ Then, you are ready to use `ui5-webcomponents-react` and you can import the desi
8888
For example, to use ```Button``` you need to import it:
8989

9090
```jsx
91-
import { Button } from '@ui5-webcomponents-react/fiori3/lib/Button'; // loads ui5-button wrapped in a ui5-webcomponents-react component
91+
import { Button } from '@ui5/webcomponents-react/lib/Button'; // loads ui5-button wrapped in a ui5-webcomponents-react component
9292
```
9393

9494
Then, you can use the Button in your app:
@@ -97,7 +97,7 @@ Then, you can use the Button in your app:
9797
<Button onPress={() => alert('Hello World!')}>Hello world!</Button>
9898
```
9999

100-
You could import all components also from `@ui5-webcomponents-react/fiori3` directly, but this will have a negative impact on your bundle size.
100+
You could import all components also from `@ui5/webcomponents-react` directly, but this will have a negative impact on your bundle size.
101101

102102
For Browser Support and the configuration of the UI5 Web Components, please take a look at the
103103
[Browser Support](https://github.com/SAP/ui5-webcomponents#browser-support) and the

config/jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module.exports = {
1111
collectCoverage: false,
1212
collectCoverageFrom: [
1313
'packages/**/*.{ts,tsx}',
14-
'!packages/fiori3/src/lib/*.ts',
14+
'!packages/main/src/lib/*.ts',
15+
'!packages/main/src/enums/*.ts',
1516
'!**/*.stories.tsx',
1617
'!**/*.jss.ts',
1718
'!**/*.karma.tsx',

config/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ module.exports = function(config) {
2828
coverageConfig,
2929
{
3030
browserNoActivityTimeout: 20000,
31-
basePath: path.join(PATHS.packages, 'fiori3'),
31+
basePath: path.join(PATHS.packages, 'main'),
3232
browsers,
3333
frameworks: ['mocha', 'chai'],
34-
files: [path.join(PATHS.packages, 'fiori3', 'test', 'testRunner.js')],
34+
files: [path.join(PATHS.packages, 'main', 'test', 'testRunner.js')],
3535
preprocessors: {
3636
'test/testRunner.js': ['webpack', 'sourcemap']
3737
},

config/karma.webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module.exports = function() {
7979
},
8080
// Need this since it's supposed to work after the compilation of .ts
8181
enforce: 'post',
82-
include: path.join(PATHS.packages, 'fiori3', 'src'),
82+
include: path.join(PATHS.packages, 'main', 'src'),
8383
exclude: [/node_modules|\.karma\.tsx?/, /jss.ts/, /stories/, /enums/, /test/, /lib/]
8484
}
8585
]

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"name": "@ui5-webcomponents-react/suite",
3-
"version": "0.2.0",
42
"workspaces": [
53
"packages/*"
64
],
75
"private": true,
86
"license": "Apache-2.0",
9-
"repository": "https://github.com/SAP/ui5-webcomponents-react",
107
"scripts": {
118
"start": "start-storybook -p 6006 -c packages/docs/.storybook",
129
"build": "node ./scripts/rollup/build.js",

packages/base/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
88

99
### Bug Fixes
1010

11-
* **fiori3:** Added react-table dependency ([ebc8fc5](https://github.com/SAP/ui5-webcomponents-react/commit/ebc8fc5))
11+
* **main:** Added react-table dependency ([ebc8fc5](https://github.com/SAP/ui5-webcomponents-react/commit/ebc8fc5))
1212

1313

1414

1515

1616

1717
## [0.3.2-rc.4](https://github.com/SAP/ui5-webcomponents-react/tree/master/packages/base/compare/v0.3.2-rc.3...v0.3.2-rc.4) (2019-06-24)
1818

19-
**Note:** Version bump only for package @ui5-webcomponents-react/base
19+
**Note:** Version bump only for package @ui5/webcomponents-react-base
2020

2121

2222

@@ -32,7 +32,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
3232

3333
### BREAKING CHANGES
3434

35-
* **base:** `@ui5-webcomponents-react/styles` and `@ui5-webcomponents-react/utils` are replaced by ``@ui5-webcomponents-react/base`
35+
* **base:** `@ui5-webcomponents-react/styles` and `@ui5-webcomponents-react/utils` are replaced by ``@ui5/webcomponents-react-base`
3636
* **base:** Deleted Themes `sap_belize`, `sap_belize_plus` and `sap_belize_hcb`
3737
* **base:** Removed `createThemeMap` from base
3838
* **base:** Removed `getThemeClassFor` from base

packages/base/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# @ui5-webcomponents-react/base
1+
# @ui5/webcomponents-react-base
22
Base Utilities for ui5-webcomponents-react
33

44
## Installation
55
```
6-
yarn add @ui5-webcomponents-react/base
6+
yarn add @ui5/webcomponents-react-base
77
OR
8-
npm install @ui5-webcomponents-react/base --save
8+
npm install @ui5/webcomponents-react-base --save
99
```
1010

1111
## Modules
@@ -14,7 +14,7 @@ npm install @ui5-webcomponents-react/base --save
1414
Concat multiple CSS Module into an instance of this class helper and place them into a react component.<br>
1515
Example:
1616
```javascript
17-
import { StyleClassHelper } from '@ui5-webcomponents-react/base';
17+
import { StyleClassHelper } from '@ui5/webcomponents-react-base';
1818
import style from 'YOUR_STYLESHEET';
1919

2020
const classes = new StyleClassHelper.of(style.text);

packages/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@ui5-webcomponents-react/base",
2+
"name": "@ui5/webcomponents-react-base",
33
"version": "0.3.2-rc.5",
44
"description": "Base for ui5-webcomponents-react",
55
"main": "index.cjs.js",

0 commit comments

Comments
 (0)