Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an NPM package #3

Closed
chambery opened this issue Oct 31, 2011 · 5 comments
Closed

Create an NPM package #3

chambery opened this issue Oct 31, 2011 · 5 comments

Comments

@chambery
Copy link

Node integration is much easier with an npm package.

It looks like all you need to do is create the package.json ( npm init), then publish to the repo (npm publish).

I'm very much a node novice but here's a package.json start:

 {
   "author": "Ian Smith",
   "name": "taffydb",
   "description": "TaffyDB is an opensouce library that brings database features into your JavaScript applications.",
   "version": "0.0.1",
   "homepage": "http://taffydb.com/",
   "repository": {
     "type": "git",
     "url": "git://github.com/typicaljoe/taffydb.git"
   },
   "engines": {
     "node": "~0.4.12"
   },
   "dependencies": {},
   "devDependencies": {},
   "main": "taffy"
 }
@moshen
Copy link
Contributor

moshen commented Nov 3, 2011

+1

1 similar comment
@samyakbhuta
Copy link

+1

@chambery
Copy link
Author

I think I may have this working, at least as a first pass.

I've created a fork (https://github.com/chambery/taffydb) with the npm metadata, and got it to work locally using this tutorial:

http://www.packtpub.com/article/overview-node-package-manager

You still have to add .taffy to the end:

 TAFFY = require("taffy").taffy

@iamsenorespana
Copy link

It's not working with this current version.. I'm working on adapting this to work with node 0.8.x

@sneakyness
Copy link

is it up to date now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants