Socket
Book a DemoInstallSign in
Socket

gin-tonic

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gin-tonic

ship sync and hot reloading for urbit development

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

gin and tonic

Two companions making sail development much nicer.

gin: a utility for syncing files from a repository to a clay desk and committing on save.

tonic: a library which auto refreshes your sail page on commit

getting started

  • First you should install gin:
    npm i -g gin-tonic
    
  • Next run gin add to add a workspace which will be used to sync your files from your repository to the Urbit you're working on and commit.
  • Then run gin pour to add the tonic library to your Urbit.
  • Integrate tonic into your gall application by wrapping your gall agent:
     /+  tonic
     ...
     %-  agent:tonic
     |_  =bowl:gall
     ...
    
  • Include tonic's script in each sail page:
/+  tonic
...
;head
  ...
  ;+  (inject:tonic q.byk.bowl)
==
  • Finally run gin watch and pick your workspace. Gin will run until cancelled syncing your changes.
  • Sip and enjoy!

FAQs

Package last updated on 12 May 2023

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