push-protocol / frontend-monorepo

Frontends for all of the Element Finance apps.

Home Page:https://element.fi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend monorepo for Element Finance

This repo contains frontend packages and applications that are maintained by Element Finance.

Required node version

  • Node 14.19.1
  • Vercel only supports node 12.x and 14.x as of this writing.
  • This repo contains an .nvmrc, so you can just run nvm use from the top-level.

Required yarn version

Development

  1. Clone the repo: git clone git@github.com:element-fi/frontend-monorepo.git
  2. Run yarn at the top-level to install all packages across every workspace

Installing new packages

Here are a few examples of how to install packages in this repo:

# Install prettier for the top-level package.json, useful for tooling that
# runs against the entire monorepo
yarn add prettier

# Install lodash for the packages/base workspace.
# Note: specify the workspace by the name in its `package.json`, ie: `base` not `packages/base`
yarn workspace @elementfi/base add lodash

Installing a workspace package

To install a project in the packages/ directory as a dependency, copy it directly into your package.json like this, then run yarn.

{
  "dependencies": {
    // Name comes from packages/core/package.json
    "@elementfi/core": "*"
  }
}

Running workspace scripts

To run scripts in workspaces, use the following command:

yarn workspace <workspace-name> <package.json script>

Example

yarn workspace elf-council-frontend start

About

Frontends for all of the Element Finance apps.

https://element.fi


Languages

Language:TypeScript 56.4%Language:Solidity 20.4%Language:CSS 19.0%Language:JavaScript 2.2%Language:Vyper 1.7%Language:HTML 0.2%Language:Shell 0.1%