From 8d7b507b42e27c53dac7a4c2be6b34c2a6be094f Mon Sep 17 00:00:00 2001 From: Lukas Benes Date: Tue, 28 Jun 2016 14:47:23 +0200 Subject: [PATCH] 2.0.0 --- .gitignore | 1 + .npmignore | 2 ++ .travis.yml | 1 - Makefile | 10 ++++++++-- index.js | 1 - package.json | 18 +++++++++--------- {lib => src}/db.coffee | 0 {lib => src}/index.coffee | 0 {lib => src}/query-object.coffee | 0 {lib => src}/transaction-stack.coffee | 0 10 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 .npmignore rename {lib => src}/db.coffee (100%) rename {lib => src}/index.coffee (100%) rename {lib => src}/query-object.coffee (100%) rename {lib => src}/transaction-stack.coffee (100%) diff --git a/.gitignore b/.gitignore index 3c3629e..491fc35 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +lib diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..2969344 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +src +test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 1f410a7..21626eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: node_js node_js: - - "0.12" - "4" - "6" postgres: diff --git a/Makefile b/Makefile index 05a8cdd..36eb657 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ +compile: + ./node_modules/.bin/coffee -o lib -c src/*.coffee -all: - @npm install +test: compile test-js + +publish: + npm publish --tag 2.0.0 +# all: +# @npm install test-js: @echo '>>>>>> testing pure javascript driver' diff --git a/index.js b/index.js index 773fe96..bb0a047 100644 --- a/index.js +++ b/index.js @@ -1,2 +1 @@ -require('coffee-script').register(); module.exports = require('./lib'); diff --git a/package.json b/package.json index c657f65..495853f 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "easy-pg", - "version": "1.0.5", + "version": "2.0.0", "scripts": { - "test": "make test-js; make test-native", + "test": "make test", "lint": "coffeelint --f coffeelint.json *.coffee lib/* test/*" }, "repository": { @@ -22,19 +22,19 @@ ], "license": "BSD", "engines": { - "node": "0.10.x" + "node": ">=4" }, "devDependencies": { "mocha": "~2.0.1", - "chai": "~1.9.2" + "chai": "~1.9.2", + "coffee-script": "^1.7.1" + }, + "peerDependencies": { + "pg": "6.x.x" }, "dependencies": { "async": "^0.9.0", - "chai": "^1.9.1", - "coffee-script": "^1.7.1", "debug": "^2.1.0", - "glob": "^4.0.3", - "mocha": "^2.0.1", - "pg": "^3.3.0" + "glob": "^4.0.3" } } diff --git a/lib/db.coffee b/src/db.coffee similarity index 100% rename from lib/db.coffee rename to src/db.coffee diff --git a/lib/index.coffee b/src/index.coffee similarity index 100% rename from lib/index.coffee rename to src/index.coffee diff --git a/lib/query-object.coffee b/src/query-object.coffee similarity index 100% rename from lib/query-object.coffee rename to src/query-object.coffee diff --git a/lib/transaction-stack.coffee b/src/transaction-stack.coffee similarity index 100% rename from lib/transaction-stack.coffee rename to src/transaction-stack.coffee