Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Kinsey committed Jan 23, 2011
1 parent 87df053 commit ceb71ed
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 97 deletions.
2 changes: 1 addition & 1 deletion Cakefile
Expand Up @@ -3,4 +3,4 @@ task 'init', 'init', ->

task 'test', 'test', ->
# TODO
console.log 'no tests yet...'
throw 'no tests yet...'
36 changes: 11 additions & 25 deletions README.md
@@ -1,7 +1,8 @@
_
_______ __ ______(_)__ ____
/ __/ _ \/ // / __/ / -_) __/
\__/\___/\_,_/_/ /_/\__/_/
_____
________________ ___________(_)____________
_ ___/ __ \ / / /_ ___/_ /_ _ \_ ___/
/ /__ / /_/ / /_/ /_ / _ / / __/ /
\___/ \____/\__,_/ /_/ /_/ \___//_/

npm packages in CoffeeScript - (package.coffee) -> (package.json)

Expand All @@ -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.
4 changes: 0 additions & 4 deletions TODO.md

This file was deleted.

15 changes: 9 additions & 6 deletions bin/courier.coffee
Expand Up @@ -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 = "."]
Expand All @@ -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) ->
Expand All @@ -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 '.'
Expand Down
92 changes: 42 additions & 50 deletions package.coffee
@@ -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'
15 changes: 4 additions & 11 deletions package.json
Expand Up @@ -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.