0.1.8 • Published 6 years ago

@truffle-types/artifacts-export-generator v0.1.8

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
6 years ago

Artifacts contents exporter

Generates typescript contents file with exported members from provided folder.

Usage

yarn add -D @truffle-types/artifacts-export-generator

npm install @truffle-types/artifacts-export-generator

JavaScript/Typescript

import { generateArtifactExports } from "@truffle-types/artifacts-export-generator";

const artifactsDir = "./build/contacts";
const exportContentsFile = "./src/artifacts.ts";
const EXCLUDE_PATTERN = "!(*.sol)";

generateArtifactExports(artifactsDir, exportContentsFile, EXCLUDE_PATTERN);

Bash

generate-artifacts-content --artifactsDir ./build/contracts --destination ./src/artifacts.ts --exclude "!(*.sol)"

NPX

npx -p @truffle-types/artifacts-export-generator generate-artifacts-content --artifactsDir ./build/contracts --destination ./src/artifacts.ts --exclude "!(*.sol)"
0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago