Giter VIP home page Giter VIP logo

jits's Introduction

jits ๐ŸŽป

A cli tool to create RawGit hosted Gists from your terminal.

demo picture thing

Motivation

At work we have gotten into the swing of demoing changes to our component library on CodeSandbox. When one of us submits a PR for the component library, we always take the updated Webpack bundle to CodeSandbox and create a live example to show our changes working and to prove that we didn't break shit.

It becomes quite tedious to build, go find the bundle.js in the build directory, wait patiently as my editor fights for its life to open such a large file, copy the whole damn thing, head to CodeSandbox, create a new file, paste in the bundle, and wait patiently as CodeSandbox fights for its life to handle such a large file.

So I created jits to smooth this process out by automating the hard part. :) jits will upload a file into a new Github Gist, run the Gist through RawGit so that it is served with the correct mime-types and all that jazz, and then provides you with the url to the file, conveniently placed in your clipboard.

Usage

See, my damie, Pootie Tang don't wa-da-tah to the shama cow... 'cause thats a cama cama leepa-chaiii, dig?

# install the thing
npm i -g jits

# use the thing
jits --help

Yep, jits is one of dem' dependencies that you install globally. Sorry, not sorry.

There are a lot of features on the unwritten roadmap for jits, but currently it supports a limited number of features. Well, actually, it only has one feature: Taking in a path to a file and doing gangsta shit with that file.

That said, jits is a joy to use, because, like Ken Wheeler says, when you ain't start none, there won't be none.

# usage:

  jits [options]

# options:

  --file, -f          # The path to the file you wish to upload.
  --dir, -d           # [no workie yet] The path to the directory you wish to upload.
	
  # In regards to providing paths to jits, the path must be relative to your package.json.

  --user, -u          # The Github username to use for authentication.
  --pass, -p          # The Github password to use for authentication.

  --set-user, -su     # Set and persist your Github username.
  --set-pass, -sp     # Set and persist your Github password.

# examples:

  # Upload a file and provide authentication data.
  jits -f dist/js/bundle.js -u joedirt12 -p digit1234

  # Provide username for future usage by jits.
  jits --set-user joedirt12

  # Provide password for future usage by jits.
  jits -sp digit1234

  # Upload a file simply, relying on previously set authentication data.
  jits --file dist/js/bundle.js

Notes

jits does not suppoert 2FA yet.


I don't know if anybody will ever read this.

If you are reading this, that means I have probably been dead and gone for a long time now. I don't know who you are, what you look like, or even how old you are. But I do know that this tool will save you a few minutes of work in your lifetime.

If you stumble upon this repo, use the tool, and have an issue... do that thing you do when you have an issue. I may or may not continue to maintain this tool, as most of my tools are never discovered and I always have a bad ass new idea every day, so sticking to one project that nobody gives a damn is quite a task for me.

Follow me on Twitter, dammit. I've gotta come up with like 20,000 more followers to get JavaScript Kanye status.

jits's People

Contributors

danielrob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ldkta

jits's Issues

[Shameless Plug] use react-preview at work

Hi, thanks for building this, it looks really helpful.
I was reading your motivation for building this, and as you mentioned, the developers at your company use CodeSandbox to see if a PR breaks something.

The same thing motivated me to build react-preview. It's a github app with which you can get a link to codesandbox just by commenting /preview on the PR.

For now, I have intentionally limited it to be used with react, however it works with all frontend libs and frameworks.

It would be great if I can get any feedback.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.