Skip to content

Instantly share code, notes, and snippets.

@andreyvit
Created July 9, 2012 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreyvit/3078078 to your computer and use it in GitHub Desktop.
Save andreyvit/3078078 to your computer and use it in GitHub Desktop.
Wootemplate for an npm package
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: andrey@tarantsov.com
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 <andrey@tarantsov.com>",
"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