Permalink
Browse files

0.1.0

  • Loading branch information...
1 parent 87df053 commit ceb71ed3f1b41fe04db7d337b24823b94955b9a8 Nicholas Kinsey committed Jan 23, 2011
Showing with 67 additions and 97 deletions.
  1. +1 −1 Cakefile
  2. +11 −25 README.md
  3. +0 −4 TODO.md
  4. +9 −6 bin/courier.coffee
  5. +42 −50 package.coffee
  6. +4 −11 package.json
View
@@ -3,4 +3,4 @@ task 'init', 'init', ->
task 'test', 'test', ->
# TODO
- console.log 'no tests yet...'
+ throw 'no tests yet...'
View
@@ -1,7 +1,8 @@
- _
- _______ __ ______(_)__ ____
- / __/ _ \/ // / __/ / -_) __/
- \__/\___/\_,_/_/ /_/\__/_/
+ _____
+ ________________ ___________(_)____________
+ _ ___/ __ \ / / /_ ___/_ /_ _ \_ ___/
+ / /__ / /_/ / /_/ /_ / _ / / __/ /
+ \___/ \____/\__,_/ /_/ /_/ \___//_/
npm packages in CoffeeScript - (package.coffee) -> (package.json)
@@ -12,26 +13,11 @@ npm packages in CoffeeScript - (package.coffee) -> (package.json)
npm install courier
# Usage
- cd facebook_killer # or your current project with a package.coffee
- courier
-
- # fin. (you can now install/publish your npm package using the generated package.json)
+Using courier couldn't be simpler.
-# Contributing
- cd ~
- git clone YOUR_FORK
-
- # make changes
-
- # build
- cake build
- npm install .
-
- # test on a project
- cd MY_PROJECT
- courier
-
- # if it works then commit, push and submit a pull request
+1. Translate your package.json into CoffeeScript and move to package.coffee.
+2. Run `courier` against your project.
-# TODO
- see TODO.md
+You will now see package.json in the root of your project; ready to be installed or linked with `npm`.
+
+Use the `-p` or `--print` flag for noisy output.
View
@@ -1,4 +0,0 @@
-test
-doc
-switches (silent, in, out, print, watch)
-templates
View
@@ -11,8 +11,6 @@ log = console.log
CoffeeScript = require 'coffee-script'
{OptionParser} = require 'coffee-script/optparse'
-lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib')
-
usage = '''
Usage:
courier [OPTIONS] [PATH_TO_APP = "."]
@@ -33,12 +31,17 @@ switches = [
]
parser = new OptionParser switches, usage
-options = parser.parse process.argv
+options = parser.parse process.argv[2...]
args = options.arguments
delete options.arguments
-log parser.help() if options.help or process.argv.length is 0
-log VERSION if options.version
+if options.help or process.argv.length is 0
+ log parser.help()
+ process.exit 0
+
+if options.version
+ log VERSION
+ process.exit 0
release = (options) ->
fs.readFile 'package.coffee', (error, data) ->
@@ -51,7 +54,7 @@ release = (options) ->
json = matches[1]
fs.writeFile 'package.json', json, ->
- log json
+ log json if options.print
if args.length <= 0
args.push '.'
View
@@ -1,50 +1,42 @@
-{
- name: 'courier'
- description: 'npm packages in CoffeeScript - (package.coffee) -> (package.json)'
-
- keywords: ['courier']
-
- version: '0.1.0'
-
- author: 'Feisty Studios <courier@feistystudios.com> (http://feistystudios.com/)'
-
- licenses: [
- {
- type: 'FEISTY'
- url: 'http://github.com/feisty/license/raw/master/LICENSE'
- }
- ]
-
- contributors: [
- 'Nicholas Kinsey <nicholas.kinsey@feistystudios.com>'
- ]
-
- repository:
- type: 'git'
- url: 'http://github.com/feisty/cortex.git'
- private: 'git@github.com:feisty/cortex.git'
- web: 'http://github.com/feisty/cortex'
-
- bugs:
- mail: 'courier@feistystudios.com'
- web: 'http://github.com/feisty/courier/issues'
-
- directories:
- lib: './lib'
- doc: './doc'
-
- bin:
- courier: './bin/courier.coffee'
-
- main: 'courier'
-
- scripts:
- test: 'cake test'
- # postinstall: 'cake init'
-
- dependencies:
- 'coffee-script': '>= 1.0.0'
-
- engines:
- node: '>= 0.3.4'
-}
+name: 'courier'
+
+description: 'npm packages in CoffeeScript - (package.coffee) -> (package.json)'
+
+keywords: ['courier']
+
+version: '0.1.0'
+
+author: 'Feisty Studios <courier@feistystudios.com> (http://feistystudios.com/)'
+
+licenses: [type: 'FEISTY', url: 'http://github.com/feisty/license/raw/master/LICENSE']
+
+contributors: ['Nicholas Kinsey <nicholas.kinsey@feistystudios.com>']
+
+repository:
+ type: 'git'
+ url: 'http://github.com/feisty/courier.git'
+ private: 'git@github.com:feisty/courier.git'
+ web: 'http://github.com/feisty/courier'
+
+bugs:
+ mail: 'courier@feistystudios.com'
+ web: 'http://github.com/feisty/courier/issues'
+
+# directories:
+# lib: './lib'
+# doc: './doc'
+
+bin:
+ courier: './bin/courier.coffee'
+
+main: 'courier'
+
+# scripts:
+# test: 'cake test'
+# postinstall: 'cake init'
+
+dependencies:
+ 'coffee-script': '>= 1.0.0'
+
+engines:
+ node: '>= 0.3.6'
View
@@ -13,29 +13,22 @@
contributors: ['Nicholas Kinsey <nicholas.kinsey@feistystudios.com>'],
repository: {
type: 'git',
- url: 'http://github.com/feisty/cortex.git',
- private: 'git@github.com:feisty/cortex.git',
- web: 'http://github.com/feisty/cortex'
+ url: 'http://github.com/feisty/courier.git',
+ private: 'git@github.com:feisty/courier.git',
+ web: 'http://github.com/feisty/courier'
},
bugs: {
mail: 'courier@feistystudios.com',
web: 'http://github.com/feisty/courier/issues'
},
- directories: {
- lib: './lib',
- doc: './doc'
- },
bin: {
courier: './bin/courier.coffee'
},
main: 'courier',
- scripts: {
- test: 'cake test'
- },
dependencies: {
'coffee-script': '>= 1.0.0'
},
engines: {
- node: '>= 0.3.4'
+ node: '>= 0.3.6'
}
}

0 comments on commit ceb71ed

Please sign in to comment.