gnosis/lil-box

Name: lil-box

Owner: GNOSIS

Description: A little Truffle box.

Created: 2018-04-10 16:26:20.0

Updated: 2018-04-14 00:33:23.0

Pushed: 2018-04-14 00:33:22.0

Homepage: https://gnosis.github.io/lil-box/

Size: 72

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

lil-box

Build Status

A little Truffle box.

Sounds good? Get it with:

truffle unbox gnosis/lil-box
Extras
Deployment Tools

This box comes with a couple of scripts for recording deployment information on your networks. Check this deployment guide for more details.

Linting and Formatting

This box also comes with source code linting provided by ESLint:

npm run lint

and formatting by Prettier:

npm run fmtsrc
Ignored Files/Directories for Different Systems

Both .gitignore and .npmignore are specified in this box.

truffle-local.js is ignored by both Git and NPM, and can contain configuration local to the machine.

The build folder is ignored by Git since build artifacts can be almost entirely reproduced by the local Truffle instance and the contract source code, with the exception of deployment information.

However, the build folder is not ignored by NPM. This means lil-box developers can publish packages on NPM which also contain deployment information. Subsequent users of those packages then have direct access to those deployments.

Also, a .prettierignore instructs Prettier to ignore the outputs of build processes.

NPM prepack Hook

For preparing NPM packages, a prepack hook is included which will lint and format the source, as well as compile Truffle build artifacts and reset the deployment information on these artifacts using the deployment tools.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.