1.0.0-dev.0 • Published 2 months ago

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

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months 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

2 months ago

1.0.0-dev.31

1 year ago

1.0.0-dev.30

1 year ago

1.0.0-dev.29

1 year ago

1.0.0-dev.28

1 year ago

1.0.0-dev.27

1 year ago

1.0.0-dev.24

2 years ago

1.0.0-dev.23

2 years ago

1.0.0-dev.22

2 years ago

1.0.0-dev.26

1 year ago

1.0.0-dev.25

1 year ago

1.0.0-dev.19

2 years ago

1.0.0-dev.18

2 years ago

1.0.0-dev.21

2 years ago

1.0.0-dev.17

2 years ago

1.0.0-dev.16

2 years ago

1.0.0-dev.15

2 years ago

1.0.0-dev.14

2 years ago

1.0.0-dev.20

2 years ago

1.0.0-dev.13

2 years ago

1.0.0-dev.12

2 years ago

1.0.0-dev.11

2 years ago

1.0.0-dev.10

2 years ago

1.0.0-dev.9

2 years ago

1.0.0-dev.8

2 years ago

1.0.0-dev.7

2 years ago

1.0.0-dev.6

2 years ago

1.0.0-dev.5

2 years ago

1.0.0-dev.4

2 years ago

1.0.0-dev.3

2 years ago

1.0.0-dev.2

2 years ago

1.0.0-dev.1

2 years ago

1.0.0-dev.0

2 years ago