1.0.0-dev.0 • Published 1 year ago

@threshold-network/components v1.0.0-dev.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Threshold Network React Components

This repo contains reusable React components for Threshold Network.

##Setup


###Install packages

yarn

###Run storybook

yarn run storybook

Use package locally in different project


###Build the project

yarn build - this should build the code inside a lib directory

###Create compressed gzip archive of package dependencies

To use the package locally without uploading it to npm registry you can:

yarn pack --filename <filename> - which will create a gzip archive (with the name given after -- namefile) of the package in the root directory

###Use the gzip archive in your project

To use the created gzip archive in your project you should go to your project directory and run:

yarn add file:<path_to_the_file>.tgz

Alternatively you can just add the file to the project's package.json by adding this line there:

"@threshold-network/components": "file:./<path_to_this_project>/<name_of_the_file>.tgz",

and after that you just run:

yarn

###You can now use your local package in your project

You can now use the local version of threshold network components by simply importing them from @threshold-network.components. For example:

import { H1 } from "@threshold-network/components"

Note

After executing yarn pack yarn caches the package so any changes made will not be saved after re-doing yarn pack until you clean the yarn cache (yarn cache clean) or just change the name of the packed file specified in --filename argument.

1.0.0-dev.32

1 year ago

1.0.0-dev.31

2 years ago

1.0.0-dev.30

2 years ago

1.0.0-dev.29

3 years ago

1.0.0-dev.28

3 years ago

1.0.0-dev.27

3 years ago

1.0.0-dev.24

3 years ago

1.0.0-dev.23

3 years ago

1.0.0-dev.22

3 years ago

1.0.0-dev.26

3 years ago

1.0.0-dev.25

3 years ago

1.0.0-dev.19

3 years ago

1.0.0-dev.18

3 years ago

1.0.0-dev.21

3 years ago

1.0.0-dev.17

3 years ago

1.0.0-dev.16

3 years ago

1.0.0-dev.15

3 years ago

1.0.0-dev.14

3 years ago

1.0.0-dev.20

3 years ago

1.0.0-dev.13

3 years ago

1.0.0-dev.12

3 years ago

1.0.0-dev.11

3 years ago

1.0.0-dev.10

3 years ago

1.0.0-dev.9

3 years ago

1.0.0-dev.8

3 years ago

1.0.0-dev.7

3 years ago

1.0.0-dev.6

3 years ago

1.0.0-dev.5

3 years ago

1.0.0-dev.4

3 years ago

1.0.0-dev.3

3 years ago

1.0.0-dev.2

3 years ago

1.0.0-dev.1

3 years ago

1.0.0-dev.0

3 years ago