Permalink
Browse files

Getting ready for npm.

  • Loading branch information...
1 parent fb4ef7c commit 50017501c58f59eec1e8860380bc16a3029ee83e @bnolan committed Apr 18, 2011
Showing with 52 additions and 1 deletion.
  1. +31 −0 package.json
  2. +21 −1 src/main.coffee
View
@@ -0,0 +1,31 @@
+{
+ "name": "capt",
+ "description": "Command line tool for creating backbone.js applications with coffeescript",
+ "version": "0.5.0",
+ "keywords": ["jst", "templates", "rest", "backbone", "jquery", "zepto", "framework", "coffeescript", "less", "underscore"],
+ "homepage": "http://bnolan.github.com/capt/",
+ "author": "Ben Nolan <ben@nolanconsul.com>, twitter: @bnolan",
+ "licenses": [{
+ "type": "MIT",
+ "url": "http://github.com/brunch/brunch/raw/master/LICENSE"
+ }],
+ "directories" : {
+ "lib" : "./lib"
+ },
+ "main" : "./lib/brunch",
+ "bin": {
+ "capt": "./bin/capt"
+ },
+ "dependencies": {
+ "coffee-script": ">= 1.0.1",
+ "less": ">=1.0.41",
+ "glob": ">=2.0.6"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/bnolan/capt.git"
+ },
+ "bugs": {
+ "url": "http://github.com/bnolan/capt/issues"
+ }
+}
View
@@ -19,7 +19,27 @@ parser = new OptionParser {
minargs : 1
maxargs : 10
}
-data = parser.parse()
+
+$usage = '''
+Usage:
+
+ capt new #projectname
+ - create a new project
+
+ capt server
+ - serve the current project on port 3000
+
+ capt watch
+ - watch the current project and recompile as needed
+
+
+'''
+
+try
+ data = parser.parse()
+catch e
+ sys.puts $usage
+ process.exit()
#
# Raise an error

0 comments on commit 5001750

Please sign in to comment.