alexandrevicenzi / gistfy

Code once, share everywhere.
MIT License
65 stars 22 forks source link

Create npm package #2

Closed giodamelio closed 10 years ago

giodamelio commented 10 years ago

You should create an npm package. Gistfy is open.

alexandrevicenzi commented 10 years ago

Could you give a reason for that? I can't see any useful reason.

giodamelio commented 10 years ago

To make it easy for people to run their own servers. Just run npm install -g gistfy and then you have a gistfy command installed and added to your path.

alexandrevicenzi commented 10 years ago

Sure, but I want to have some nice url, like http://gistfy.com.

giodamelio commented 10 years ago

Ya, you can host your own version, but you should also make a command so people who want to run it locally(Inside their private network for example) or testers can.

alexandrevicenzi commented 10 years ago

Done. See npm package.

giodamelio commented 10 years ago

You need to add a bin field to package.json to make it available from the command prompt.

alexandrevicenzi commented 10 years ago

Done.