@dapp-stack/scripts
DApp Stack scripts, entrypoint for DApp Stack ecosystem
Last updated a year ago by john-solon .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @dapp-stack/scripts 
SYNC missed versions from official npm registry.

@dapp-stack/scripts

This package is the best and easiest way to interact with the dapp-stack ecosystem.

It manages everything you want in order to develop and deploy a dapp.

Installation

# Yarn
yarn add @dapp-stack/secrets

# NPM
npm install @dapp-stack/secrets

Usage

Add it to your scripts list in package.json

scripts: {
  "das": "dapp-stack-scripts"
}

List of command

Help

# Yarn
yarn add @dapp-stack/secrets

# NPM
npm install @dapp-stack/secrets

Start

# Yarn
yarn das start

# NPM
npm run das build

Runs the dapp in the development mode. We will perform the following operations:

  • Start an ethererum node or connect to it
  • Start an IPFS daemon
  • Compile the contracts
  • Deploy the contract
  • Start a Web development server (if configured)
  • Open a browser

If any change happens to the contract, we will then recompile it and redeploy it.

If any change happens to the frontend, we will then recompile it and refresh the browser.

Stop

# Yarn
yarn das stop

# NPM
npm run das stop

This command will stop external services such as the ethereum node or ipfs daemon.

Build

# Yarn
yarn das build

# NPM
npm run das build

If you want to have the same executable as the one we would deployed you can run the build command We will then execute the following operations:

  • Start an ethererum node or connect to it
  • Start an IPFS daemon
  • Compile the contracts
  • Deploy the contracts
  • Build the assets

Test

# Yarn
yarn das test

# NPM
npm run das test

You can run this command in order to run the test, we will first compile the contracts. You can read more about it there: https://github.com/Dapp-Stack/Dapp-Stack/tree/master/packages/test

Deploy

# Yarn
yarn das deploy

# NPM
npm run das deploy

When you are done developing your dapp and feel ready to share it, you can call this command in order to:

  • Start an ethererum node or connect to it
  • Start an IPFS daemon
  • Compile the contracts
  • Deploy the contracts
  • Build the assets
  • Deploy the assets

Security

# Yarn
yarn das security

# NPM
npm run das security

This command will run a security check on your command. You can have read more about it there: https://github.com/Dapp-Stack/Dapp-Stack/tree/master/packages/security

Clean

# Yarn
yarn das clean

# NPM
npm run das clean

This command will clean all the logs and information about local node.

Console

# Yarn
yarn das console

# NPM
npm run das console

You can run this command in order to start an ethereum console. That will give you the same benefit as the geth console: https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console

Debug

# Yarn
yarn das debug <txHash>

# NPM
npm run das debug <txHash>

You can run this command in order to debug an ethereum transaction.

Current Tags

  • 0.5.0                                ...           latest (a year ago)

10 Versions

  • 0.5.0                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 11
Last Month 0
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |