Coder Social home page Coder Social logo

ykris45 / alephium-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alephium/alephium-frontend

0.0 0.0 0.0 255.56 MB

A monorepo containing all things frontend on Alephium.

License: Other

Shell 0.01% JavaScript 2.32% Ruby 0.14% C 0.01% Objective-C 0.01% Kotlin 0.20% TypeScript 96.97% CSS 0.08% Objective-C++ 0.11% Swift 0.01% Nix 0.03% HTML 0.11% Dockerfile 0.02%

alephium-frontend's Introduction

Alephium frontend

A monorepo containing all things frontend on Alephium.

Development

Make sure you have pnpm installed in your system.

Install all dependencies for all apps with:

pnpm install

Start the dev server for all shared packages with:

pnpm watch

In a separate terminal window navigate to the app folder you want to work on and follow the instructions there to start developing. The command above will ensure that the apps always get the latest code from the internally shared packages.

Useful commands

Check if there are any type, linting, or formatting errors in any of the apps and internal packages with:

pnpm check

or more in a more granular approach:

pnpm typecheck
pnpm lint
pnpm format

You can attempt to fix linting errors with:

pnpm lint:fix

Test

pnpm test

Contributing

We use changeset for managing the versions and changelogs of our projects.

When creating a PR, run the following command to create a temporary editable commit-able file under the ./changeset directory that describes the changes the PR introduces to the projects:

pnpm exec changeset add # or `pnpm exec changeset` for short

You can add multiple changesets in one PR.

Releasing

Release candidates

pnpm exec changeset pre enter rc # Enters the pre-release mode
pnpm exec changeset version # Compiles all chancesets into changelogs and bumps the package versions
git add # Add changelogs and version bumps
git commit -m "Bump versions"
pnpm exec changeset tag # Creates tags with new package versions

git push --follow-tags # Push new tags to trigger release candidate GH actions

This will trigger the release GitHub actions, but append the rc suffix at the end of the tags.

To move on with the production release, first exit the pre mode with:

pnpm exec changeset pre exit

and then delete all the files and diff that was generated while in the "pre-release" mode.

Production

Create a PR that includes the bump'ed versions:

git checkout master
git pull origin master
git checkout -b bump-versions

pnpm exec changeset version

git add # Add changelogs and version bumps
git commit -m "Bump versions"
git push

Once the above PR is merged into master, you can create and push the new tags to trigger the release GitHub actions:

git checkout master
git pull origin master

pnpm exec changeset tag

git push --follow-tags

alephium-frontend's People

Contributors

nop33 avatar mvaivre avatar leealephium avatar polarker avatar aloiscochard avatar tdroxler avatar lf94 avatar killerwhile avatar ykris45 avatar lbqds avatar h0ngcha0 avatar deathmumi avatar 0xjac avatar dependabot[bot] avatar iwalkingcat avatar jimmyhoffa avatar lessismore10 avatar iix avatar montaill avatar redokazda avatar vdaodao avatar waldi28 avatar ross-weir avatar

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.