diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7e3a4e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*.log +node_modules diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +*.log diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..c82d9e2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +0.0.1 / Month Day, 2011 +================== + + * Start of the project diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..e987dc4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2011 Contra + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5b2c41b --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +**Nothing here yet** + + +## Installation + +To install Protege, use [npm](http://github.com/isaacs/npm): + + $ npm install -g APPNAME + +## Usage + +Nothing here yet + +## Examples + +You can view further examples in the [example folder.](https://github.com/Contra/APPNAME/tree/master/examples) + +## Contributors + +- [Contra](https://github.com/Contra) + +## LICENSE + +(MIT License) + +Copyright (c) 2011 Contra + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..964640d --- /dev/null +++ b/TODO.md @@ -0,0 +1,9 @@ +# TODO + +### Minor + + * Nothing here yet + +### Major + + * Nothing here yet diff --git a/lib/config.coffee b/lib/config.coffee new file mode 100644 index 0000000..24b00e8 --- /dev/null +++ b/lib/config.coffee @@ -0,0 +1,2 @@ +module.exports = + something: 'nothing here yet' diff --git a/lib/logger.coffee b/lib/logger.coffee new file mode 100644 index 0000000..16d9e87 --- /dev/null +++ b/lib/logger.coffee @@ -0,0 +1,18 @@ +require 'colors' +pack = require('./package').load() + +module.exports = + log: (str) -> + console.log str + + debug: (str) -> + console.log '[' + pack.name.magenta, '-', 'DEBUG'.upcase().green.inverse + ']', str + + info: (str) -> + console.log '[' + pack.name.magenta, '-', 'info'.white + ']', str + + warn: (str) -> + console.log '[' + pack.name.magenta, '-', 'warn'.upcase().yellow + ']', str + + error: (str) -> + console.log '[' + pack.name.magenta, '-', 'debug'.upcase().red.inverse + ']', str diff --git a/lib/main.coffee b/lib/main.coffee new file mode 100644 index 0000000..000f13d --- /dev/null +++ b/lib/main.coffee @@ -0,0 +1,2 @@ +module.exports = + log: require './logger' diff --git a/lib/package.coffee b/lib/package.coffee new file mode 100644 index 0000000..ac16433 --- /dev/null +++ b/lib/package.coffee @@ -0,0 +1,11 @@ +fs = require 'fs' +path = require 'path' + +# Singleton for the contents of package.json +exports.load = -> + if !@package + location = path.join(__dirname, '../', 'package.json') + @package = JSON.parse fs.readFileSync(location) + return @package + else + return @package diff --git a/package.json b/package.json new file mode 100644 index 0000000..12e30f3 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name":"APPNAME", + "description":"Nothing here yet", + "version":"0.0.1", + "homepage":"http://github.com/Contra/APPNAME", + "repository":"git://github.com/Contra/APPNAME.git", + "author":"Contra (http://wearefractal.com/)", + "main":"./lib/main.coffee", + + "dependencies":{ + "coffee-script":"*", + "colors":"*", + "protege":"*" + }, + "engines":{ + "node":">= 0.4.0" + }, + "licenses":[ + { + "type":"MIT", + "url":"http://github.com/Contra/APPNAME/raw/master/LICENSE" + } + ] +}