0.0.2 • Published 8 years ago

npm-packager v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Pack

Pack is an npm package generator.

Installation

To install, get the code from github, or npm:

$ npm install -g npm-packager

Usage

To create a new package named app, run:

$ pack app

What You Get

When you create a new package, you get a few files generated for you:

sky dev $ pack app >> /dev/null
sky dev $ tree -L 2 -a app/
app/
├── .gitignore
├── .travis.yml
├── README.md
├── index.js
├── node_modules
│   ├── .bin
│   ├── commander
│   ├── debug
│   ├── diff
│   ├── escape-string-regexp
│   ├── glob
│   ├── graceful-fs
│   ├── growl
│   ├── inherits
│   ├── jade
│   ├── lru-cache
│   ├── minimatch
│   ├── minimist
│   ├── mkdirp
│   ├── mocha
│   ├── ms
│   ├── sigmund
│   └── supports-color
├── package.json
├── script
│   ├── run
│   └── test
├── src
│   └── main.js
└── test
    └── test.js

22 directories, 9 files

a package.json that looks like:

{
  "name": "app",
  "version": "0.0.1",
  "description": "%Add a package description%",
  "main": "index.js",
  "scripts": {
    "test": "./scripts/test",
    "run": "./scripts/run"
  },
  "bin": {
    "app": "index.js"
  },
  "repository": {
    "type": "git",
    "url": "git+%add your git url%"
  },
  "author": "%add author info%",
  "license": "MIT",
  "homepage": "%add git url%#readme",
  "devDependencies": {
    "mocha": "*"
  }
}