npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lamington

v1.0.0-alpha.6

Published

A suite of tools to make building and testing EOS smart contracts easier.

Downloads

19

Readme

Inspired by the popular Truffle framework and developed in Typescript, Lamington makes smart contract development simple for any level of EOSIO developer.

Build Status Supported by Coinage

Features

The Lamington library includes CLI tools and JavaScript utilities to streamline the smart contract building, testing and deployment pipeline.

  • Skill level agnostic
  • TypeScript ready
  • Containerized development
  • Common JavaScript testing frameworks
  • Multi-environment support
  • Simple CLI commands
  • Easily configurable

Installation

Prerequisites

Lamington requires Docker and NodeJS to be installed before it can be used.

Installing Lamington

Lamington includes command line tools and JavaScript utilities for EOSIO contract development. We recommend installing the framework as a development dependency within your project. This lets you run commands like lamington test in your project.

$ npm install --save-dev lamington

From there you just need to add node scripts to your package.json file that trigger lamington actions, for example:

{
  ...
  "scripts": {
    "build": "lamington build",
    "start": "lamington start eos",
    "stop": "lamington stop eos",
    "test": "lamington test"
  },
  ...
}

Global Installation

If you'd like the convenience of using the lamington command without adding it as a project dependency, you can install it on your system globally, just be mindful that this can create trouble if you use lamington with multiple projects simultaneously and don't have them all ready for the same version.

To install globally, run:

$ npm install -g lamington

Usage

Lamington is super simple! Whether you're migrating from Solidity, or a seasoned EOSIO developer deploying a complex decentralized application (dApp) you'll find yourself right at home in no time.

Building

Compiling your smart contracts with Lamington is as simple as;

$ lamington build

Lamington automatically searches for all files with the .cpp file extension before batch compiling within a docker container. Compiling within a docker container with locked configuration ensures contracts compile consistently and clean every time.

Ignoring Files & Folders

Not every .cpp file is a contract, so we added an additional exclude to the configuration file .lamingtonrc. This exclude option takes an array of globular patterns as files and patterns you don't want added to your build process. We've added the command line method lamington ignore to generate a .lamingtonrc file with default settings.

Specifying Build Contracts

If you'd like to run builds on specific contracts, an additional contract identifier can be specified like so;

$ lamington build [identifier]

Replace the [identifier] with the relative path to the contract with or without the .cpp extension.

Testing

Lamington was built with testing in mind. We considered the most commonly used testing libraries like Mocha when developing the Lamington toolset. Running your test suit is as easy as;

$ lamington test

For a full list of available JavaScript utilities, please visit the documentation here.

Initialization

Initially setting up a project can be tedious and repetitive, so we've created a simple CLI method to setup a boilerplate EOSIO project with Lamington integration.

$ lamington init

This creates a .lamingtonrc file in your current directory with default Lamington settings.

$ lamington init [PROJECT_NAME]

Optionally you can provide and additional PROJECT_NAME to create a project directory and initialize a boilerplate project within.

Configuration

Lamington ships with a default configuration to make getting started simple and setup free. However, as your project grows, so will your need for additional Lamington configuration. For example, deployment to a testnet or the live network will require environment setup. Additionally, you'll need customize your configuration if you'd like to control Lamington's fine grained settings. Fortunately we've made a simple tool to get you started, simply run lamington init in your project directory to create a default .lamingtonrc configuration file.

Using a Configuration File

The .lamingtonrc file allows you to configure additional settings using JSON syntax. We're working on provide allot more settings, like defining multiple environments for each stage of your pipeline.

{
  ...
  "keepAlive":true,
  ...
}

The keepAlive setting prevents Lamington from stopping the EOSIO container between each build, allowing you to develop faster and compile often.

Contributing to Lamington

We welcome contributions of all types, even down to typo fixes. All help is very welcome!

If you're not sure where to start, the best resource for you is our Contributing to Lamington guide, and if you're still stuck, please reach out to us on Slack.

Resources

You can find more information about the Lamington tool-set and join our growing community of developers by visiting any of the following links;

Example Project

API Documentation

Slack Channel

Official Website

Roadmap

LamingtonJS

Core Lamington front end toolset

Lamington-React

React context management for LamingtonJS

Lamington-Angular

Contributors

Supporters