Giter Site home page Giter Site logo

autonolas-frontend-library's Introduction

Autonolas Frontend Library

This repository contains the common UI modules/components for Autonolas frontends.

Tech Stack

  • ReactJS
  • Styled components
  • Ant Design
  • React testing library
  • Jest
  • ethers

Note

  • To avoid multiple react packages please do the following:
  1. In Application: a) cd node_modules/react && yarn link b) cd node_modules/react-dom && yarn link

  2. In Library a) yarn link react b) yarn link react-dom

Working with components in autonolas-frontend-library

When developing changes in the autonolas-frontend-library repo that you wish to see in any other repository, let's take for example autonolas-registry-frontend, follow the yarn linking process to resolve this dependency locally rather than downloading the published library package.

  1. In autonolas-frontend-library, run yarn link. This creates a symlink on your machine pointing to the library. You may require sudo permissions to run this command.
  2. In autonolas-registry-frontend, run yarn link autonolas-frontend-library. This tells yarn to get the library from your symlink instead of downloading the package from GitHub.

Once the package is linked, run yarn run build:watch in the autonolas-frontend-library repo, make changes, and see them hot reloaded into autonolas-registry-frontend.

Once you are done developing in autonolas-frontend-library, you can follow the steps below to unlink the local package. Otherwise, you may see issues if your autonolas-frontend-library repo is not up to date.

  1. In autonolas-registry-frontend, run yarn unlink --no-save autonolas-frontend-library. The --no-save flag is important to ensure that the dependency is not removed from package.json and yarn.lock.
  2. In autonolas-registry-frontend, run yarn install autonolas-frontend-library to fetch the latest published version from GitHub.
  3. In autonolas-frontend-library, run yarn unlink to delete the symlink created by yarn. You may require sudo permissions to run this command.

To run storybook

yarn run storybook

autonolas-frontend-library's People

Contributors

davidminarsch avatar dvilelaf avatar mohandast52 avatar oaksprout avatar

Watchers

 avatar  avatar

Forkers

echallenge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.