🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

generator-clarity-dev

Package Overview
Dependencies
Maintainers
9
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-clarity-dev

Yeoman generator to setup a Clarity development environment

latest
Source
npmnpm
Version
0.3.15
Version published
Maintainers
9
Created
Source

generator-clarity-dev

A Clarity development environment Yeoman generator.

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

Visit create-clarity-starter for usage as an npm init initializer without global yo installation requirements.

Quick Start

Create project directory:

mkdir hello-clarity
cd hello-clarity

Run project generator:

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

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

Ensure all checks pass when running npx yo doctor.

Yeoman Doctor - Running sanity checks on your system
âś” Global configuration file is valid
âś” NODE_PATH matches the npm root
âś” Node.js version
âś” No .bowerrc file in home directory
âś” No .yo-rc.json file in home directory
âś” npm version
âś” yo version

clarity-native-bin

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

Keywords

yeoman

FAQs

Package last updated on 03 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts