diff --git a/package.json b/package.json index 21f7a7c..5010ed3 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,16 @@ { - "name": "rooster-io", + "name": "rooster.io", "version": "0.0.1", - "description": "A new version of rooster.io", - "main": "index.js", + "description": "A pretty frontend for schedule made by Schoolmasters", + "main": "rooster", "scripts": { - "test": "node index.js" + "start": "rooster start", + "db": "rooster db", + "plugins": "rooster plugins" + }, + "bin": { + "rooster": "rooster", + "roosterio": "rooster" }, "author": "Bram van der Veen", "license": "MIT", diff --git a/rooster b/rooster new file mode 100755 index 0000000..2940b10 --- /dev/null +++ b/rooster @@ -0,0 +1,18 @@ +#!/bin/env node + +var args = process.argv.splice(2); +var config = require('./configuration'); + +if (args[0] == 'start') { + require('./web'); +} +else if (args[0] == 'db') { + require('./spider').crawl(config().schoolID); +} +else if (args[0] == 'plugins') { + console.log('Most of the plugins are in a private repo of mine, but when you want to set those up and you have the login creditentials make sure to do this:'); + console.log('git submodule init'); + console.log('git submodule sync'); + console.log('git submodule update'); + console.log('After that, make sure to install deps for the plugins in their respective directories under ./plugins'); +}