Skip to content

Instantly share code, notes, and snippets.

@jsplink
Last active August 29, 2015 14:18
Show Gist options
  • Save jsplink/03cfcaddbf633411e39d to your computer and use it in GitHub Desktop.
Save jsplink/03cfcaddbf633411e39d to your computer and use it in GitHub Desktop.
project startup guide
# Assumption: virtualenv hooks are all setup
PROJECT_NAME = 'obimod/myproject'
mkvirtualenv ${PROJECT_NAME}
pip install nodeenv
nodeenv -p
# TODO: Add in package.json now
npm install -g
npm link
{
"_comment": "This is the kitchen sink. Source is at http://browsenpm.org/package.json.",
"name": "module-name",
"version": "10.3.1",
"description": "An example module to illustrate the usage of a package.json",
"author": "Your Name <you.name@example.org>",
"contributors": [{
"name": "Foo Bar",
"email": "foo.bar@example.com"
}],
"bin": {
"module-name": "./bin/module-name"
},
"scripts": {
"test": "vows --spec --isolate",
"start": "node index.js",
"predeploy": "echo im about to deploy",
"postdeploy": "echo ive deployed",
"prepublish": "coffee --bare --compile --output lib/foo src/foo/*.coffee"
},
"main": "lib/foo.js",
"repository": {
"type": "git",
"url": "https://github.com/nodejitsu/browsenpm.org"
},
"bugs": {
"url": "https://github.com/nodejitsu/browsenpm.org/issues"
},
"keywords": [
"nodejitsu",
"example",
"browsenpm"
],
"dependencies": {
"primus": "*",
"async": "~0.8.0",
"express": "4.2.x",
"winston": "git://github.com/flatiron/winston#master",
"bigpipe": "bigpipe/pagelet",
"plates": "https://github.com/flatiron/plates/tarball/master"
},
"devDependencies": {
"vows": "^0.7.0",
"assume": "<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0",
"pre-commit": "*"
},
"preferGlobal": true,
"private": true,
"publishConfig": {
"registry": "https://your-private-hosted-npm.registry.nodejitsu.com"
},
"subdomain": "foobar",
"analyze": true,
"license": "MIT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment