Created
July 9, 2012 18:32
-
-
Save andreyvit/3078078 to your computer and use it in GitHub Desktop.
Wootemplate for an npm package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
params: | |
- name: name | |
example: FooBar | |
description: The name of your package | |
- name: description | |
example: Cool package. | |
description: A short description of your package | |
- name: user-name | |
example: Andrey Tarantsov | |
description: Package author's full name | |
- name: user-email | |
example: [email protected] | |
description: Package author's email address | |
- name: github-account | |
example: andreyvit | |
description: GitHub user or organization account name | |
- name: initial-version | |
default: 0.0.0 | |
description: Package author's email address | |
files: | |
- foo/bar.boz: | | |
Foo | |
Bar | |
Boz | |
- lib/index.coffee: | | |
debug = require('debug')('FooBar') | |
exports.woot = 42 | |
- test/foo_bar_test.coffee: | | |
assert = require 'assert' | |
fooBar = require '../lib/index' | |
describe "Foo Bar", -> | |
it "should woot", -> | |
assert.equal fooBar.woot, 42 | |
- .gitignore: | | |
*.js | |
node_modules | |
- .npmignore: | | |
- README.md: | | |
# Foo Bar | |
Cool package. | |
## Installation | |
npm install foo-bar | |
## License | |
© 2012, Andrey Tarantsov, distributed under the MIT license. | |
- package.json: | | |
{ | |
"author": "Andrey Tarantsov <[email protected]>", | |
"name": "foo-bar", | |
"description": "Cool package", | |
"version": "0.0.0", | |
"homepage": "https://github.com/andreyvit/foo-bar", | |
"repository": { | |
"url": "git://github.com/andreyvit/foo-bar" | |
}, | |
"main": "lib/index.js", | |
"scripts": { | |
"test": "./node_modules/mocha/bin/mocha -R ${REPORTER-spec}" | |
}, | |
"dependencies": { | |
"debug": "~0.7.0" | |
}, | |
"devDependencies": { | |
"mocha": "~1.0.3" | |
}, | |
"optionalDependencies": {}, | |
"engines": { | |
"node": "*" | |
} | |
} | |
run-after: | |
- git init | |
- npm install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment