Giter Club home page Giter Club logo

js-monorepo's Introduction

Github

Debugging GitHub actions locally

Debugging main

  1. Install act https://github.com/nektos/act

  2. Add - run: sleep 1h line to main.yml. This will prevent docker container from exiting

  3. Execute act pull_request

  4. In a separate terminal attach to a running container

    docker exec -it act-Main-Workflow-build bash
  5. Inside running container update $PATH env to access node and yarn

    export PATH="$PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin/"
    
    node -v
    v16.15.0
  6. To kill a running container:

    docker kill act-Main-Workflow-build

Debugging updateDependency

  1. Create test event file test.json

    {
      "action": "workflow_dispatch",
      "inputs": {
        "synthetix_version": "2.71.0",
        "monorepo_version": ""
      }
    }
  2. Add - run: sleep 1h line to updateDependency.yml (where appropriate). This will prevent docker container from exiting

  3. Run act

    act workflow_dispatch --eventpath test.json
  4. In a separate terminal attach to a running container

    docker exec -it act-Publish-Library-Update-synthetix-in-contracts-interface bash
  5. Inside running container update $PATH env to access node and npm

    export PATH="$PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin/"
    
    node -v
    v16.15.0
  6. To kill a running container:

    docker kill act-Publish-Library-Update-synthetix-in-contracts-interface

js-monorepo's People

Contributors

0xclem avatar 0xjocke avatar andytcf avatar bonustrack avatar dbeal-eth avatar dependabot[bot] avatar drptbl avatar duyentb95 avatar evgenyboxer avatar fritzschoff avatar jcmonte avatar jjgonecrypto avatar jmzwar avatar kelonye avatar kennym avatar keybig avatar kmeraz avatar koredefashokun avatar liamzebedee avatar mi-yu avatar midnightonmars avatar mjlescano avatar noahlitvin avatar noisekit avatar rickk137 avatar rockefeller92 avatar sasicodes avatar steve-rog avatar sunnyvempati avatar synthetixio-team avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-monorepo's Issues

update ethers to latest version

we need to update ethers js to the latest version because the infura provider class doesn't support optimism.
I tried to update the dependencies but there are lot of type errors in the query package.

Improve performance by no importing the whole `ethers` library.

Hi guys, This is a fantastic library, I'm using it for the new version of Aelin and I detected that you are using ethers instead of @ethersproject

This has the following problem when you import dependencies like so:
import { BigNumber, ethers } from 'ethers';
image

instead of this way:
import { BigNumber } from '@ethersproject/bignumber'
image
the final bundle becomes huge.

I was wondering if you could change it.

codegen-graph-ts not working with next apps

When using the new version (2.52.1-ovm) of Synthetix Queries with codegen-graph-ts in a Next app I get this error:
ReferenceError: global is not defined

Is codegen-graph-ts suppose to be working from the frontend?
It depends on node-fetch which contains the line that is failing:
Body.Promise = global.Promise;
Screen Shot 2021-11-01 at 4 49 57 pm

Move away from Lerna

Lerna is not supported anymore and last PR that was merges was 14 months ago.
My idea is to go with npm > 8 workspaces or NX

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.