From 8bf710dd61a59b057a4990618130e1c4736199df Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Wed, 14 Mar 2018 14:19:16 -0400 Subject: [PATCH 1/2] Declare Lumo as a dependency This means that we always have the right version, regardless of what's in the global environment. Note that npm scripts (including `npm start`) automatically prepend `./node_modules/.bin` to $PATH, which is how this works. See also http://module.party --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 23529e3..35cece9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,11 @@ "repository": "https://github.com/yogthos/mastodon-bot", "license": "MIT", "dependencies": { + "lumo-cljs": "^1.8.0", "mastodon-api": "1.3.0", "twitter": "1.7.1" + }, + "scripts": { + "start": "./mastodon-bot.cljs" } } From 6f86fb89b720a3ed793de8a2f35f8203fe2a43c6 Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Wed, 14 Mar 2018 14:23:05 -0400 Subject: [PATCH 2/2] Use `npm start` in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d16e6fb..18590e0 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ and post it to Mastodon ### installation 1. install [Node.js](https://nodejs.org/en/) -2. install [Lumo](https://github.com/anmonteiro/lumo): `npm install -g lumo-cljs` -3. run `npm install` to install Node modules +2. run `npm install` to install Node modules +3. run `npm start` to, well, start ### usage