create-clarity-dev
An npm initializer to setup a Clarity development environment
Last updated 4 months ago by hstove .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install create-clarity-dev 
SYNC missed versions from official npm registry.

create-clarity-dev

A Clarity development environment generator, usable as an npm init initializer.

Generates a TypeScript project that contains a hello-world.clar sample smart contract and a minimal Mocha test suite using the Clarity SDK.

Quick Start

Generate a project

npm init clarity-dev my-proj
cd my-proj

Replace my-proj with your app name. The app directory is created if it does not already exist.

Run tests:

npm test

Expected output:

  hello world contract test suite
    ✓ should have a valid syntax
    deploying an instance of the contract
      ✓ should return 'hello world'
      ✓ should echo number

  3 passing

Troubleshooting

Project Generator

The package is a thin wrapper around the yeoman based Clarity app generator package. Initializers for use with npm init require a package with the naming scheme create-<initializer>.

  • Alternate install commands

    Using the yo generator

    npm install -g yo generator-clarity-dev
    yo clarity-dev
    

    See generator-clarity-dev for more details.

    Using npx directly

    npx create-clarity-dev
    

clarity-native-bin

If seeing error messages related to the clarity-native-bin package then see its README for more details.

Current Tags

  • 0.1.14-alpha.1                                ...           latest (4 months ago)

10 Versions

  • 0.1.14-alpha.1                                ...           4 months ago
  • 0.1.14-alpha.0                                ...           4 months ago
  • 0.1.13                                ...           4 months ago
  • 0.1.13-alpha.6                                ...           4 months ago
  • 0.1.13-alpha.5                                ...           4 months ago
  • 0.1.13-alpha.3                                ...           a year ago
  • 0.1.13-alpha.2                                ...           a year ago
  • 0.1.13-alpha.1                                ...           a year ago
  • 0.1.13-alpha.0                                ...           a year ago
  • 0.1.12-alpha.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |