From fc2a567caca343c8520ef3a8ad0cf04da5cd77a2 Mon Sep 17 00:00:00 2001 From: Suresh Alse Date: Mon, 15 Jun 2015 11:40:06 +0530 Subject: [PATCH] adding crontab-ui to npm --- README.md | 6 ++---- app.js | 2 +- bin/crontab-ui.js | 3 +++ package.json | 5 ++++- 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100755 bin/crontab-ui.js diff --git a/README.md b/README.md index d636974..1bd098d 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,8 @@ Read [this](http://lifepluslinux.blogspot.in/2015/06/crontab-ui-easy-and-safe-wa ##Setup - git clone https://github.com/alseambusher/crontab-ui - cd crontab-ui - npm install - node app.js + npm install crontab-ui + crontab-ui ###TODO diff --git a/app.js b/app.js index c5ae4a8..9d10726 100755 --- a/app.js +++ b/app.js @@ -132,5 +132,5 @@ app.get(routes.import_crontab, function(req, res) { }) app.listen(app.get('port'), function() { - console.log("Crontab UI is running at localhost:" + app.get('port')) + console.log("Crontab UI is running at localhost:" + app.get('port')) }) diff --git a/bin/crontab-ui.js b/bin/crontab-ui.js new file mode 100755 index 0000000..bc2aa8c --- /dev/null +++ b/bin/crontab-ui.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +var crontab = require('../app.js'); diff --git a/package.json b/package.json index b3da43a..71f4599 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Easy and safe way to manage your crontab file", "main": "index.js", "scripts": { - "start": "node index.js" + "start": "node app.js" }, "dependencies": { "express": "latest", @@ -17,6 +17,9 @@ }, "engines": { "node": "latest" + }, + "bin": { + "crontab-ui": "bin/crontab-ui.js" }, "repository": { "type": "git",