Permalink
Browse files

npm friendly

  • Loading branch information...
1 parent 62d5142 commit 1359cba46e50fd84a6cec1b302bb00006ebfbfc1 @tim-smart tim-smart committed Jun 20, 2010
Showing with 22 additions and 14 deletions.
  1. +2 −0 .gitignore
  2. +3 −0 build.sh
  3. 0 lib/{compress.js → compress/index.js}
  4. +17 −0 package.json
  5. +0 −14 wscript
View
@@ -0,0 +1,2 @@
+build/
+
View
@@ -0,0 +1,3 @@
+node-waf configure
+node-waf build
+cp ./build/default/compress-bindings.node ./lib/compress
File renamed without changes.
View
@@ -0,0 +1,17 @@
+{
+ "name": "compress",
+ "description": "A streaming compression for node.js",
+ "version": "0.1.6",
+ "author": "Ivan Egorov",
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/egorich239/node-compress.git"
+ },
+ "engine": [ "node >=0.1.90" ],
+ "directories": {
+ "lib": "./lib/compress"
+ },
+ "scripts": {
+ "install": "./build.sh"
+ }
+}
View
@@ -43,17 +43,3 @@ def build(bld):
obj.source = "src/compress.cc"
obj.defines = bld.env.DEFINES
obj.uselib = bld.env.USELIB
-
-
-def shutdown():
- # HACK to get compress.node out of build directory.
- # better way to do this?
- if Options.commands['clean']:
- if exists('compress-bindings.node'): unlink('compress-bindings.node')
- if exists('compress.js'): unlink('compress.js')
- else:
- if (exists('build/default/compress-bindings.node') and
- not exists('compress-bindings.node')):
- symlink('build/default/compress-bindings.node', 'compress-bindings.node')
- if not exists('compress.js'):
- symlink('lib/compress.js', 'compress.js')

0 comments on commit 1359cba

Please sign in to comment.