Giter Site home page Giter Site logo

rasata / wasmer-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wasmerio/wasmer-js

0.0 1.0 0.0 30.55 MB

Monorepo for Javascript WebAssembly packages by Wasmer

License: MIT License

TypeScript 0.09% Makefile 0.01% Rust 0.02% JavaScript 63.93% Shell 0.01% WebAssembly 35.95% C 0.01%

wasmer-js's Introduction

Wasmer-JS styled with prettier Build Status Dev Dependencies

Wasmer-JS is a mono-repo of multiple JavaScript packages enabling easy use of WebAssembly Modules in Node and the Browser.

Documentation

Documentation for the Wasmer-JS Stack, can be found on the Wasmer Docs.

Development

Contributing into Wasmer-JS it's very easy, just clone the repo and run:

npm install

NOTE: This will run lerna bootstrap, and bootstrap the JS Packages.

To start development mode, you can run the dev command:

npm run dev

This will serve the examples/wasm-shell example, which can be accessed with: http://localhost:1234/

Wasm Terminal Demo Gif

Building the project

To build all the packages in the project, you can run the build command:

npm run build

This will bundle JS Packages into ./dist directory.

Tests

To make changes to any of the sub projects, they can be tested by either: Running their local tests with npm run test in their respective package directory, or running it the root:

npm run test

Contributing

For additional contribution guidelines, please see our CONTRIBUTING.md and our Code of Conduct.

Using Lerna

Please see the website for lerna for a quick introduction into what it is. Here are some general notes about using lerna in this project:

  • Packages can be added by simply creating a new directory within the packages/ directory, and running npm init in this new package directory. Then, the new package must be botstraped using learna. For this project, this can be done running npm run lerna:bootstrap in the base project directory.

  • To add new dependencies and keep build times low, devDependencies (not CLI dependencies) must be added to the root package.json file. Project installation / runtime dependencies are managed for each package individually.

  • Sibling JS packages can depend on one another. You can do this by using @lerna/add. For example, lerna add @wasmer/package-1 --scope=@wasmer/package-2 will add @wasmer/package-1@^1.0.0 to @wasmer/package-2. However, there are issues when a published package tries to depend on a new unpublished package, please see this issue for the discussion. And, one should not be afraid of learna link convert, as file:// dependencies will be automatically converted by lerna on publish, for example see here.

wasmer-js's People

Contributors

torch2424 avatar syrusakbary avatar dunnock avatar mischnic avatar alocquet avatar dependabot[bot] avatar

Watchers

 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.