Permalink
Browse files

1st.

  • Loading branch information...
0 parents commit a20ccaf4380b70c2bc33ca0527e4da1699983725 @vesln committed Jan 29, 2012
Showing with 216 additions and 0 deletions.
  1. +14 −0 .gitignore
  2. +3 −0 .travis.yml
  3. +12 −0 Makefile
  4. +49 −0 Readme.md
  5. +13 −0 bin/todo
  6. 0 data/.gitkeep
  7. +27 −0 lib/app.js
  8. +25 −0 lib/cli.js
  9. +41 −0 lib/commands.js
  10. 0 lib/storage.js
  11. +32 −0 package.json
@@ -0,0 +1,14 @@
+node_modules/
+data/config.json
+*._
+*.tmp
+.monitor
+*.diff
+*.err
+*.orig
+*.rej
+*.swo
+*.swp
+*.vi
+*~
+.DS_Store
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.6
@@ -0,0 +1,12 @@
+TESTS = test/*.test.js
+
+test:
+ @NODE_ENV=test ./node_modules/.bin/mocha \
+ --require should \
+ --reporter spec \
+ $(TESTS)
+
+init:
+ chmod 777 ./data
+
+.PHONY: test init
@@ -0,0 +1,49 @@
+[![Build Status](https://secure.travis-ci.org/vesln/todo.png)](http://travis-ci.org/vesln/todo)
+
+# todo - Todos in the CLI like what.
+
+## Description
+
+## Synopsis
+
+## Requirements
+
+- NPM (http://npmjs.org/)
+- Node.js 0.6 (http://nodejs.org/)
+
+## Install
+
+```
+$ npm install todo -g
+```
+
+## Tests
+
+```
+$ npm install
+$ make test
+```
+
+## License
+
+MIT License
+
+Copyright (C) 2012 Veselin Todorov
+
+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.
@@ -0,0 +1,13 @@
+#!/usr/bin/env node
+
+/*!
+ * todo - Todos in the CLI like what.
+ *
+ * Veselin Todorov <hi@vesln.com>
+ * MIT License.
+ */
+
+/**
+ * Dispatches the argv to the application.
+ */
+require('../lib/cli').start();
No changes.
@@ -0,0 +1,27 @@
+/*!
+ * todo - Todos in the CLI like what.
+ *
+ * Veselin Todorov <hi@vesln.com>
+ * MIT License.
+ */
+
+/**
+ * Module dependencies.
+ */
+var flatiron = require('flatiron');
+
+/**
+ * The application object.
+ *
+ * @type {Object}
+ */
+var app = module.exports = flatiron.app;
+
+app.use(flatiron.plugins.cli, {
+ usage: [
+ '',
+ 'todo',
+ '',
+ 'Author: Veselin Todorov <hi@vesln.com>'
+ ]
+});
@@ -0,0 +1,25 @@
+/*!
+ * todo - Todos in the CLI like what.
+ *
+ * Veselin Todorov <hi@vesln.com>
+ * MIT License.
+ */
+
+/**
+ * Module dependencies.
+ */
+var path = require('path');
+
+/**
+ * The application object.
+ *
+ * @type {Object}
+ */
+var app = module.exports = require('./app');
+
+/**
+ * Commands.
+ *
+ * @type {Object}
+ */
+var commands = require('./commands');
@@ -0,0 +1,41 @@
+/*!
+ * todo - Todos in the CLI like what.
+ *
+ * Veselin Todorov <hi@vesln.com>
+ * MIT License.
+ */
+
+/**
+ * Commands namespace.
+ *
+ * @type {Object}
+ */
+var commands = module.exports;
+
+/**
+ * Print alias.
+ */
+var print = console.log;
+
+/**
+ * The application.
+ *
+ * @type {Object}
+ */
+var app = require('./app');
+
+/**
+ * Storage. Just an alias to application config.
+ *
+ * @type {Object}
+ */
+var storage = require('./storage');
+
+/**
+ * Prints current version.
+ *
+ * @api public
+ */
+commands.version = function() {
+ print(require('../package.json').version);
+};
No changes.
@@ -0,0 +1,32 @@
+{
+ "name": "todo"
+ , "version": "0.0.0"
+ , "description": "Todos in the CLI like what."
+ , "keywords": ["todo", "todo cli", "cli"]
+ , "author": "Veselin Todorov <hi@vesln.com>"
+ , "dependencies": {
+ "flatiron": "~0.1.7"
+ , "storr": "0.0.1"
+ }
+ , "devDependencies": {
+ "mocha": "0.3.3"
+ , "should": "0.3.2"
+ , "sinon": "1.3.1"
+ }
+ , "repository" : {
+ "type" : "git"
+ , "url" : "http://github.com/vesln/todo.git"
+ }
+ , "homepage": "http://github.com/vesln/todo"
+ , "scripts": {
+ "test": "make test"
+ , "postinstall": "make init"
+ }
+ , "main": "./lib/cli"
+ , "bin": {
+ "box": "./bin/box"
+ }
+ , "engines": {
+ "node": ">= 0.6.0 < 0.7.0"
+ }
+}

0 comments on commit a20ccaf

Please sign in to comment.