typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 285 forks source link

Create an NPM package #3

Closed chambery closed 12 years ago

chambery commented 13 years ago

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 commented 13 years ago

+1

samyakbhuta commented 13 years ago

+1

chambery commented 13 years ago

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 commented 12 years ago

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

sneakyness commented 11 years ago

is it up to date now?