Home

Awesome

UNMAINTAINED: this project is no longer maintained and no additional development is planned. Nor is any kind of deprecation planned. Rather this code is now frozen. If you are depending on this module in any of your applications, it is recommended you remove the dependency and/or find a replacement solution

circleCI CircleCI

codecov

mason-js: a javascript client for mason

Why mason-js?

Mason-js is a JS client for Mason, the C++ package manager.

This project is:

How to use this?

Install all package dependencies

mason-js install

Example mason-versions.ini:

[headers]
protozero=1.6.1
boost=1.65.1
[compiled]
jpeg_turbo=1.5.1
libpng=1.6.28
libtiff=4.0.7
icu=57.1
proj=4.9.3
pixman=0.34.0
cairo=1.14.8

Symlink Installed Packages

mason-js link

Install a Single Package

mason-js <package>=<version> --type=[header or compiled]

Example

mason-js protozero=1.5.1 --type=header

What is V1?

In short, mason-js:

  1. Reads a mason-versions.ini file in the root directory of a project.
  2. Installs header only and precompiled packages from the S3 bucket mason-binaries into a mason-packages folder
  3. Creates symlinks a .link directory to package executables

Remote Package Paths**:**

Note: The value of MASON_PLATFORM_VERSION is determined per platform.

Local Package Paths:

Development

Install Local Dependencies

npm install

npm link

Run Tests

npm test

Make commands

The Make file has a series of commands that run a Docker container locally. By using these commands, you’re able to simulate staging/production environments locally.

Make sure to set your NPMAccessToken in your environment before running any make commands.