Git Product home page Git Product logo

monowrap's Introduction

monowrap

A command-line utility to easily manage polywrap monorepo.

monowrap's People

Contributors

niraj-kamdar avatar

Watchers

 avatar  avatar

monowrap's Issues

Debug why debug log are being displayed on console while using monowrap

❯ npx @wraplib/pwr echo
[
  Uri {
    _config: { uri: 'wrap://pwr/echo', authority: 'pwr', path: 'echo' }
  },
  Uri {
    _config: {
      uri: 'wrap://ens/wrap-echo.eth',
      authority: 'ens',
      path: 'wrap-echo.eth'
    }
  },
  Uri {
    _config: {
      uri: 'wrap://ens-contenthash/0xe30101701220f1a92d3513fd5b90ef83f17f68f796d0b97754b528f06d90ac86c19bebeb4f76',
      authority: 'ens-contenthash',
      path: '0xe30101701220f1a92d3513fd5b90ef83f17f68f796d0b97754b528f06d90ac86c19bebeb4f76'
    }
  },
  Uri {
    _config: {
      uri: 'wrap://ipfs/QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT',
      authority: 'ipfs',
      path: 'QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT'
    }
  },
  Uri {
    _config: {
      uri: 'wrap://file//Users/niraj/Library/Preferences/polywrap/cache/wrappers/ipfs/QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT',
      authority: 'file',
      path: '/Users/niraj/Library/Preferences/polywrap/cache/wrappers/ipfs/QmebzauKAXoYbywLAYdBvKyPhWsDoHfkUC4wffWvjighKT'
    }
  }
]
Invoked
Error: WasmWrapper: Wasm module aborted execution.
URI: wrap://pwr/echo
Method: main
Args: {
  "0": 129,
  "1": 164,
  "2": 97,
  "3": 114,
  "4": 103,
  "5": 115,
  "6": 144
}
Message: __wrap_abort: called `Result::unwrap()` on an `Err` value: "ReferenceError: history is not defined"
File: src/lib.rs
Location: [8,6].

    at abort (/Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@wraplib/pwr/node_modules/@polywrap/wasm-js/build/WasmWrapper.js:131:35)
    at __wrap_abort (/Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@wraplib/pwr/node_modules/@polywrap/wasm-js/build/imports.js:212:17)
    at /Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@polywrap/asyncify-js/build/AsyncWasmInstance.js:197:28
    at wasm://wasm/0005b816:wasm-function[56]:0xff4a
    at wasm://wasm/0005b816:wasm-function[55]:0xfcac
    at wasm://wasm/0005b816:wasm-function[98]:0x13662
    at wasm://wasm/0005b816:wasm-function[73]:0x117d7
    at wasm://wasm/0005b816:wasm-function[9]:0x2aa9
    at wasm://wasm/0005b816:wasm-function[54]:0xfa3f
    at wasm://wasm/0005b816:wasm-function[37]:0xd470
❯ npx @wraplib/pwr --version
[
  Uri {
    _config: {
      uri: 'wrap://pwr/--version',
      authority: 'pwr',
      path: '--version'
    }
  },
  Uri {
    _config: {
      uri: 'wrap://ens/--version.pwr-app.eth',
      authority: 'ens',
      path: '--version.pwr-app.eth'
    }
  }
]
Invoked
ReferenceError: history is not defined
    at CustomPolywrapClient.<anonymous> (/Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@wraplib/pwr/node_modules/@polywrap/client-js/build/PolywrapClient.js:585:171)
    at step (/Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@wraplib/pwr/node_modules/@polywrap/client-js/build/PolywrapClient.js:50:23)
    at Object.next (/Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@wraplib/pwr/node_modules/@polywrap/client-js/build/PolywrapClient.js:31:53)
    at fulfilled (/Users/niraj/Documents/Projects/polywrap/uri-resolver-extensions/node_modules/@wraplib/pwr/node_modules/@polywrap/client-js/build/PolywrapClient.js:22:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

CLI Directory Lift

"Lift" the current root directory, and have a ./cli folder which contains the monowrap CLI source code. This allows us to create new folders like:

  • ./graph - graph generation & solving crate (as a wrapper)
  • ./run - logic for running commands (CLI, etc)
  • ./wrappers - helpful wrappers (ex: cli-command, yarn, docker, etc)

Ability to skip commands from command graph

We don't always want to follow the command graph but may also want to skip a certain command in between to speed things up.

Ex: install -> build -> test -> deploy
If already built and tested, devs may just want to deploy the deps.
maybe something like monowrap deploy --no-pre

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.