Skip to content

Instantly share code, notes, and snippets.

@jsantell
Created January 13, 2014 21:01
Show Gist options
  • Save jsantell/8408075 to your computer and use it in GitHub Desktop.
Save jsantell/8408075 to your computer and use it in GitHub Desktop.
Using `jpm init` to automatically enable node packages, adding to the dependencies and overload routes set up for what `jetpack-node` supports, which is a suite of `jetpack-*` dependencies (`package.json`). User can also add their own custom dependencies and overloads (`package2.json`)
$ jpm init
JPM info Running init on undefined
title: (My Jetpack Addon)
name: (my-jetpack)
version: (0.0.0)
Enable node packages? (yes)
description:
entry point: (index.js)
author:
engines (comma separated): (firefox,fennec)
license: (MIT)
JPM info About to write to /Users/jsantell/Dev/jetpacks/places/test/package.json:
{
"title": "My Jetpack Addon",
"name": "my-jetpack",
"version": "0.0.1",
"dependencies": {
"jetpack-node": "*"
},
"overloads": {
"fs": "jetpack-node/node_modules/jetpack-fs",
"child_proc": "jetpack-node/node_modules/jetpack-child_proc",
"events": "jetpack-node/node_modules/jetpack-events"
}
}
{
"title": "My Jetpack Addon",
"name": "my-jetpack",
"version": "0.0.1",
"dependencies": {
"jetpack-node": "*",
"erikvold-custom-child_proc": "*"
},
"overloads": {
"fs": "jetpack-node/node_modules/jetpack-fs",
"child_proc": "erikvold-custom-child_proc",
"events": "jetpack-node/node_modules/jetpack-events"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment