Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implementing help to support coffeekup

  • Loading branch information...
commit 678a458b7feff84d7084d018caec63d4ef4c42fd 1 parent 206ebee
João Moura authored
Showing with 14 additions and 3 deletions.
  1. +4 −1 lib/toaster.js
  2. +10 −2 src/toaster.coffee
5 lib/toaster.js
View
@@ -503,7 +503,10 @@
Toaster = (function() {
function Toaster() {
var argv;
- argv = optimist.usage("" + 'Coffee Toaster'.cyan.bold + " \n" + 'Minimalist dependency management system for coffee-script.'.grey + " \n" + 'Usage:'.grey.bold + " $0").alias('n', 'new').alias('h', 'help').describe('n', 'Creating a new App');
+ argv = optimist.usage("" + 'Coffee Toaster'.cyan.bold + " \n" + 'Minimalist dependency management system for coffee-script.'.grey + " \n" + 'Usage:'.grey.bold + " $0 " + '[options]'.bold + " " + '[myappname]'.bold).alias('n', 'new').alias('h', 'help').alias('s', 'script').alias('k', 'kup').boolean('s').boolean('k')["default"]({
+ s: true,
+ k: true
+ }).describe('n', 'Creating a new App').describe('s', 'Toast your CoffeeScript').describe('k', 'Toast your CoffeeKup');
this.basepath = path.resolve(".");
if (argv.argv.n) {
new Project(this.basepath).create(argv.argv);
12 src/toaster.coffee
View
@@ -20,10 +20,17 @@ class Toaster
constructor:->
argv = optimist.usage("#{'Coffee Toaster'.cyan.bold}
\n#{'Minimalist dependency management system for coffee-script.'.grey}
- \n#{'Usage:'.grey.bold} $0")
+ \n#{'Usage:'.grey.bold} $0 #{'[options]'.bold} #{'[myappname]'.bold}")
.alias('n', 'new')
.alias('h', 'help')
+ .alias('s', 'script')
+ .alias('k', 'kup')
+ .boolean('s')
+ .boolean('k')
+ .default({ s : true, k: true })
.describe('n', 'Creating a new App')
+ .describe('s', 'Toast your CoffeeScript')
+ .describe('k', 'Toast your CoffeeKup')
@basepath = path.resolve(".")
@@ -65,7 +72,8 @@ class Toaster
# ]
# kup: [
# name: "My Kup Module"
- # something_more_here: "third_eye"
+ # src: "src/kup"
+ # release: "release/app.js"
# ]
# css: [
# name: "My Css Module"

1 comment on commit 678a458

Anderson Arboleya

Unfortunately I think toaster would not handle template for a while, but thanks anyway. :)

Please sign in to comment.
Something went wrong with that request. Please try again.