JSPM

@animoca/ethereum-hardhat-bootstrap

2.0.0-rc.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q25781F
  • License MIT

HardHat projects bootstrap and core dependency

Package Exports

  • @animoca/ethereum-hardhat-bootstrap
  • @animoca/ethereum-hardhat-bootstrap/.prettierrc
  • @animoca/ethereum-hardhat-bootstrap/.prettierrc.js
  • @animoca/ethereum-hardhat-bootstrap/hardhat-plugins
  • @animoca/ethereum-hardhat-bootstrap/hardhat-plugins/index.js
  • @animoca/ethereum-hardhat-bootstrap/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@animoca/ethereum-hardhat-bootstrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DEPRECATED - HardhHat project bootstrap

Deprecation notice

This repository is now deprecated and not maintained any longer. Use this new library instead: https://github.com/animoca/ethereum-contract-helpers

Introduction

Requirements

A node project must be initialised. If you are starting from zero, start by running the command npm init.

Commands

HardHat contracts template

yarn add -D @animoca/ethereum-hardhat-bootstrap @animoca/ethereum-contracts-core
npx animoca-hardhat-bootstrap -t contracts

HardHat migrations template

yarn add -D @animoca/ethereum-hardhat-bootstrap @animoca/ethereum-migrations-core
npx animoca-hardhat-bootstrap -t migrations

HardHat standalone template

yarn add -D @animoca/ethereum-hardhat-bootstrap @animoca/ethereum-contracts-core @animoca/ethereum-migrations-core
npx animoca-hardhat-bootstrap -t standalone

HardHat project scripts

Bootstrapped HardHat projects come with a set of provided scripts which structure the pipeline execution. The full pipeline (with a few exceptions) can be invoked by running the run-all script as follow:

yarn run-all

HardHat project configuration

Bootstrapped HardHat projects have a more advanced configuration files management:

Release

# runs `npm publish --public` using .npmrc_private configuration
yarn release:private
# runs `npm publish --public` using .npmrc_public configuration
yarn release:public

Suggested

.npmrc_private .npmrc_public