@aserto/console-common v0.1.40
console-common npm package
Console Common Components and Utilities
Local development
Building
yarn build
- uses rollup
to build the library, see rollup.config.js
. Everything is bundled in the dist
folder.
yarn push
- uses yalc
to push the library to the local registry. To consume the packages you will need to run yalc link @aserto/console-common
in your project. After you do that you will see a .yalc
folder in the root of your project, that is the local registry that yalc will push to when running yarn push
in the console-common directory.
The library also provides a dev mode where it watches for file changes and updates the package in the local registry.
yarn dev
You can use this command after you have run yalc link @aserto/console-common
in your project
Consuming
To add a dependency to the local package use yalc link @aserto/console-common
in the client application.
import { Directory } from '@aserto/console-common'
Examples
Passing a configuration:
<InternalConfigProvider config={config}>{children}</InternalConfigProvider>
Passing an identity:
<GenericIdentityProvider
identity={{
getAccessToken: getAccessToken || (() => Promise.resolve('')),
logout: logout || (() => {}),
}}
>
{children}
</GenericIdentityProvider>
Passing a profile
<InternalProfileProvider profile={{ tenantId: tenant?.id }}>
Testing
This lib uses jest
for testing, see jest.config.js
yarn test
Release
yarn release_prep
- creates a new branch, release_prep/${version}, bumps to the next minor version, commits and pushes changes
yarn release
- tags the latest commit with the version from package.json and pushes the changes
12 days ago
13 days ago
20 days ago
21 days ago
21 days ago
22 days ago
28 days ago
28 days ago
30 days ago
29 days ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
7 months ago
9 months ago
9 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago