From 2ed3f9a4a9273516dbbab3d191a3fd85b6e8f80e Mon Sep 17 00:00:00 2001 From: mikeymckay Date: Mon, 24 Sep 2018 15:08:41 +0300 Subject: [PATCH 1/4] Making this node/npm/browserify compatible --- README.md | 4 +++- lib/cron-ui.js | 1 + package.json | 30 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 package.json diff --git a/README.md b/README.md index 3e5a6e5..2f45db9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +(just a repackaging so that it will work with npm) + # Cron UI CronUI provides a simple easy-to-use form for users to specify recurrent events, translated to cron strings. @@ -29,4 +31,4 @@ These are the possible combinations so far: - Every day : ? ? * * * - Every week : ? ? * * ? - Every month : ? ? ? * * -- Every year : ? ? ? ? * \ No newline at end of file +- Every year : ? ? ? ? * diff --git a/lib/cron-ui.js b/lib/cron-ui.js index 7eec5ee..c50b4d6 100644 --- a/lib/cron-ui.js +++ b/lib/cron-ui.js @@ -304,3 +304,4 @@ CronUI.getCronType = function(cronString) { return undefined; }; +module.exports = CronUI diff --git a/package.json b/package.json new file mode 100644 index 0000000..6945229 --- /dev/null +++ b/package.json @@ -0,0 +1,30 @@ +{ + "name": "cron-ui", + "version": "1.0.2", + "description": "CronUI provides a simple easy-to-use form for users to specify recurrent events, translated to cron strings.", + "main": "./lib/cron-io.js", + "directories": { + "lib": "lib", + "test": "tests" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/mikeymckay/CronUI.git" + }, + "keywords": [ + "cron", + "gui", + "scheduler", + "crontab", + "build" + ], + "author": "@shawnchin @snird @mikeymckay", + "license": "ISC", + "bugs": { + "url": "https://github.com/mikeymckay/CronUI/issues" + }, + "homepage": "https://github.com/mikeymckay/CronUI#readme" +} From 00e17f2671864195411747042b61655c751fc34a Mon Sep 17 00:00:00 2001 From: Mike McKay Date: Mon, 24 Sep 2018 15:11:37 +0300 Subject: [PATCH 2/4] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f45db9..c4c15a6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ -(just a repackaging so that it will work with npm) +( +just a repackaging so that it will work with npm + +``` +npm install cron-ui +CronUI = require 'cron-ui' +``` +) # Cron UI CronUI provides a simple easy-to-use form for users to specify recurrent events, translated to cron strings. From 1a7beb1d746a4b27236e65ae6614fd31026b94e5 Mon Sep 17 00:00:00 2001 From: mikeymckay Date: Wed, 3 Oct 2018 20:50:30 +0300 Subject: [PATCH 3/4] Typo in package.json was totally breaking things --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6945229..8c6c15b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cron-ui", "version": "1.0.2", "description": "CronUI provides a simple easy-to-use form for users to specify recurrent events, translated to cron strings.", - "main": "./lib/cron-io.js", + "main": "./lib/cron-ui.js", "directories": { "lib": "lib", "test": "tests" From ad69c87ff06a7e17cb2cb1a92c562cb222f5c77d Mon Sep 17 00:00:00 2001 From: mikeymckay Date: Wed, 3 Oct 2018 20:53:28 +0300 Subject: [PATCH 4/4] Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8c6c15b..761b6d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cron-ui", - "version": "1.0.2", + "version": "1.0.3", "description": "CronUI provides a simple easy-to-use form for users to specify recurrent events, translated to cron strings.", "main": "./lib/cron-ui.js", "directories": {