Skip to content

Commit

Permalink
feat: first release of all packages under the same scope (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Nov 16, 2020
1 parent 38ca989 commit 3761902
Show file tree
Hide file tree
Showing 11 changed files with 859 additions and 75 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:
if: steps.initversion.outputs.version != steps.extractver.outputs.version
# sleep for 30 seconds before using latest version in web-component, because sometimes NPM needs additional few seconds to `saves` package in registry
run: |
sleep 30s
sleep 1m
echo "Log all versions of the package on npm registry"
npm show @kyma-project/asyncapi-react versions
npm show @asyncapi/react-component versions
echo "Log latest version of the package on npm registry"
npm show @kyma-project/asyncapi-react dist-tags.latest
npm show @asyncapi/react-component dist-tags.latest
echo "Starting installation"
npm install @kyma-project/asyncapi-react@${{ steps.extractver.outputs.version }} --save --loglevel verbose
npm install @asyncapi/react-component@${{ steps.extractver.outputs.version }} --save --loglevel verbose
working-directory: ./web-component
- name: Build web-component
run: npm run build-web-component
Expand All @@ -75,7 +75,7 @@ jobs:
# Playground
- name: Use latest version in the playground # this will update package.json and a lock file for the playground that will also be pushed to PR with next step
if: steps.initversion.outputs.version != steps.extractver.outputs.version
run: npm install @kyma-project/asyncapi-react@${{ steps.extractver.outputs.version }} -s
run: npm install @asyncapi/react-component@${{ steps.extractver.outputs.version }} -s
working-directory: ./playground

# Pull request
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You can also run the Playground application locally by following [this](./docs/d
Run this command to install the component in your project:

```sh
npm install --save @kyma-project/asyncapi-react
npm install --save @asyncapi/react-component
```

Check out this simple sandbox application that uses the asyncapi-react component:
Expand Down Expand Up @@ -61,14 +61,14 @@ For a list and description of features offered by the AsyncAPI React component,
To use default styles based on [SAP Fundamentals](https://sap.github.io/fundamental/), import them as follows:

``` js
import "@kyma-project/asyncapi-react/lib/styles/fiori.css";
import "@asyncapi/react-component/lib/styles/fiori.css";
```

For information on how to change styles, read the [Style Modification](./docs/configuration/style-modification.md) document.

## Web Component

If you are not using React you may want to use the `@kyma-project/asyncapi-react` component as a plain web component. This is achieved by making use of [web-react-components](https://www.npmjs.com/package/web-react-components).
If you are not using React you may want to use the `@asyncapi/web-component` component as a plain web component. This is achieved by making use of [web-react-components](https://www.npmjs.com/package/web-react-components).

### Installation

Expand Down Expand Up @@ -124,7 +124,7 @@ To use component in Angular, follow these steps:
- `config` is a `config` property from React component,
- `cssImportPath` is the path to styles. By default it is `assets/fiori.css`

> **NOTE**: The easiest way to use the default css is to copy the content of the `@kyma-project/asyncapi-react/lib/styles/fiori.css` file to a `assets/asyncapi.css` file.
> **NOTE**: The easiest way to use the default css is to copy the content of the `@asyncapi/react-component/lib/styles/fiori.css` file to a `assets/asyncapi.css` file.
## Development

Expand Down
4 changes: 2 additions & 2 deletions library/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyma-project/asyncapi-react",
"version": "0.15.0",
"name": "@asyncapi/react-component",
"version": "0.16.2",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
Expand Down Expand Up @@ -67,5 +67,8 @@
"jest": "^24.9.0",
"react": "^16.9.0",
"ts-jest": "^26.4.1"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit 3761902

Please sign in to comment.