@verto/deploy
TypeScript icon, indicating that this package has built-in type declarations

1.0.2-beta • Public • Published

Verto deploy

CLI tool for deploying Sapper exported applications on Arweave

Installing

yarn add global @verto/deploy or npm i -g @verto/deploy

First steps

  • Before deploying, make sure that you run sapper export --entry "your routes with spaces between them"
  • Make sure you are deploying the __sapper__/export directory. It won't work with anything else.
  • Make sure that you are using RELATIVE urls with the built in sapper goto function and with anchor hrefs

Usage

verto help

Shows the help menu

Deploy a folder

verto deploy --dir <Sapper project directory to deploy> --keyfile <path toArweave keyfile>

This deploys your Sapper project. What it does:

  • Fixes links and hrefs (so it works with the arweave transaction id subfolder)
  • Deploys all your files
  • Creates a path manifest that links all files together and adds routes

Get balance

verto balance --keyfile <path toArweave keyfile>

Helper command: returns your arweave balance

Get transaction status

verto status <id>

Helper command: returns the status of the given transaction ID

Why does this library exist?

The arweave-deploy CLI does not work with Sapper applications. The routes are invalid and the links/hrefs also don't work. verto-deploy was built specifically for deploying Sapper apps.

Readme

Keywords

none

Package Sidebar

Install

npm i @verto/deploy

Weekly Downloads

0

Version

1.0.2-beta

License

MIT

Unpacked Size

40 kB

Total Files

42

Last publish

Collaborators

  • andreespirela
  • codingknite
  • martondev
  • tbaumer22
  • divy-work