Skip to content

Commit

Permalink
Merge pull request #93 from lidofinance/feature/packages-metadata
Browse files Browse the repository at this point in the history
Packages Metadata
  • Loading branch information
kolyasapphire authored May 19, 2021
2 parents cc070f8 + c3aafe2 commit b0889e1
Show file tree
Hide file tree
Showing 85 changed files with 1,395 additions and 196 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.jest-*
node_modules
dist
storybook-static

# yarn 2
.yarn/*
.pnp.*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Check out our Storybook at [https://ui.lido.fi](https://ui.lido.fi)
- `yarn build` - Build all components.
- `yarn build:package package_name` - Build `package_name` component.
- `yarn test` - Run tests across components.
- `yarn lint` - Run eslint across components.

## Updating Packages

Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "jest",
"test:coverage": "jest coverage",
"publish:submit": "yarn workspaces foreach -piv --topological-dev --exclude lido-ui-components npm publish --access public --tolerate-republish",
"lint": "eslint --ext ts,tsx,js,jsx --ignore-path .gitignore .",
"lint": "eslint --ext ts,tsx,js,jsx .",
"postinstall": "husky install"
},
"devDependencies": {
Expand Down Expand Up @@ -70,11 +70,19 @@
},
"lint-staged": {
"./**/*.{ts,tsx,js,jsx}": [
"eslint --ignore-path .gitignore --max-warnings=0",
"eslint --max-warnings=0",
"jest --bail --findRelatedTests"
],
"./**/*.{ts,tsx,js,jsx,md,json}": [
"prettier --write"
]
},
"homepage": "https://github.com/lidofinance/ui",
"repository": {
"type": "git",
"url": "https://github.com/lidofinance/ui.git"
},
"bugs": {
"url": "https://github.com/lidofinance/ui/issues"
}
}
1 change: 1 addition & 0 deletions packages/accordion/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tsconfig.json
*.test.js
*.story.js
src
21 changes: 21 additions & 0 deletions packages/accordion/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Lido

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions packages/accordion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Accordion Component

React component for Lido Finance projects.
Part of [Lido UI Components](https://github.com/lidofinance/ui/#readme)

## Install

```bash
yarn add @lidofinance/accordion
```

## Usage

```ts
import { Accordion } from '@lidofinance/accordion'
```

Check out our Storybook at [https://ui.lido.fi](https://ui.lido.fi)
28 changes: 23 additions & 5 deletions packages/accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
{
"name": "@lidofinance/accordion",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"license": "MIT",
"homepage": "https://github.com/lidofinance/ui",
"repository": {
"type": "git",
"url": "https://github.com/lidofinance/ui.git",
"directory": "packages/accordion"
},
"bugs": {
"url": "https://github.com/lidofinance/ui/issues"
},
"keywords": [
"lido",
"lidofinance",
"styled-components",
"component",
"react-component",
"react"
],
"dependencies": {
"@lidofinance/icons": "workspace:*",
"@lidofinance/theme": "workspace:*",
"@lidofinance/utils": "workspace:*",
"react-collapsed": "3.0.2"
},
"peerDependencies": {
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "17.0.2",
"styled-components": "5.3.0"
"react": "16 || 17",
"react-dom": "16 || 17",
"react-is": "16 || 17",
"styled-components": "5"
},
"devDependencies": {
"@storybook/react": "6.2.9",
Expand Down
1 change: 1 addition & 0 deletions packages/block/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tsconfig.json
*.test.js
*.story.js
src
21 changes: 21 additions & 0 deletions packages/block/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Lido

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions packages/block/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Block Component

React component for Lido Finance projects.
Part of [Lido UI Components](https://github.com/lidofinance/ui/#readme)

## Install

```bash
yarn add @lidofinance/block
```

## Usage

```ts
import { Block } from '@lidofinance/block'
```

Check out our Storybook at [https://ui.lido.fi](https://ui.lido.fi)
28 changes: 23 additions & 5 deletions packages/block/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
{
"name": "@lidofinance/block",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"license": "MIT",
"homepage": "https://github.com/lidofinance/ui",
"repository": {
"type": "git",
"url": "https://github.com/lidofinance/ui.git",
"directory": "packages/block"
},
"bugs": {
"url": "https://github.com/lidofinance/ui/issues"
},
"keywords": [
"lido",
"lidofinance",
"styled-components",
"component",
"react-component",
"react"
],
"dependencies": {
"@lidofinance/theme": "workspace:*",
"@lidofinance/utils": "workspace:*"
},
"peerDependencies": {
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "17.0.2",
"styled-components": "5.3.0"
"react": "16 || 17",
"react-dom": "16 || 17",
"react-is": "16 || 17",
"styled-components": "5"
},
"devDependencies": {
"@storybook/react": "6.2.9",
Expand Down
1 change: 1 addition & 0 deletions packages/button/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tsconfig.json
*.test.js
*.story.js
src
21 changes: 21 additions & 0 deletions packages/button/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Lido

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions packages/button/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Button Components

React components for Lido Finance projects.
Part of [Lido UI Components](https://github.com/lidofinance/ui/#readme)

## Install

```bash
yarn add @lidofinance/button
```

## Usage

```ts
import { Button } from '@lidofinance/button'
import { ButtonIcon } from '@lidofinance/button'
```

Check out our Storybook at [https://ui.lido.fi](https://ui.lido.fi)
28 changes: 23 additions & 5 deletions packages/button/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
{
"name": "@lidofinance/button",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"license": "MIT",
"homepage": "https://github.com/lidofinance/ui",
"repository": {
"type": "git",
"url": "https://github.com/lidofinance/ui.git",
"directory": "packages/button"
},
"bugs": {
"url": "https://github.com/lidofinance/ui/issues"
},
"keywords": [
"lido",
"lidofinance",
"styled-components",
"component",
"react-component",
"react"
],
"dependencies": {
"@lidofinance/loaders": "workspace:*",
"@lidofinance/theme": "workspace:*",
"@lidofinance/utils": "workspace:*"
},
"peerDependencies": {
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "17.0.2",
"styled-components": "5.3.0"
"react": "16 || 17",
"react-dom": "16 || 17",
"react-is": "16 || 17",
"styled-components": "5"
},
"devDependencies": {
"@lidofinance/icons": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/checkbox/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tsconfig.json
*.test.js
*.story.js
src
21 changes: 21 additions & 0 deletions packages/checkbox/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Lido

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions packages/checkbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Checkbox Component

React component for Lido Finance projects.
Part of [Lido UI Components](https://github.com/lidofinance/ui/#readme)

## Install

```bash
yarn add @lidofinance/checkbox
```

## Usage

```ts
import { Checkbox } from '@lidofinance/checkbox'
```

Check out our Storybook at [https://ui.lido.fi](https://ui.lido.fi)
Loading

0 comments on commit b0889e1

Please sign in to comment.