Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.