From 77c5e27aac6320b90d6dfad46a40a93fd20b9a59 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 13:47:07 +0200 Subject: [PATCH 1/9] Return '0' if cell is '0', empty otherwise --- src/index.litcoffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.litcoffee b/src/index.litcoffee index 5073fbc..4a772b3 100644 --- a/src/index.litcoffee +++ b/src/index.litcoffee @@ -112,7 +112,7 @@ Add a single row. @_startRow() for key, col in @cellMap - @_addCell(row[key] || "", col + 1) + @_addCell((if row[key] == 0 then 0 else row[key] || ""), col + 1) @_endRow() ##### addRows(rows: Array) From 918d41b94a0ca17e53c5ead5592a69e60f88a822 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 16:33:07 +0200 Subject: [PATCH 2/9] ignore npm-debug.log file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7afe557..e4bc455 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules lib tmp +npm-debug.log From 755afc1673057263c149f29ff4b424c4cd254c70 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 18:43:14 +0200 Subject: [PATCH 3/9] added grunt-cli to build package --- package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index faa0717..4434de9 100644 --- a/package.json +++ b/package.json @@ -28,16 +28,17 @@ }, "devDependencies": { "coffee-script": "~1.6.3", - "grunt-contrib-watch": "~0.3.1", - "grunt-contrib-coffee": "~0.6.0", - "grunt-contrib-clean": "~0.4.0", + "excel": "0.0.60", "grunt": "~0.4.0", - "grunt-mocha-cli": "~1.0.1", + "grunt-benchmark": "~0.2.0", + "grunt-cli": "^1.2.0", + "grunt-contrib-clean": "~0.4.0", + "grunt-contrib-coffee": "~0.6.0", + "grunt-contrib-watch": "~0.3.1", "grunt-mkdir": "~0.1.0", - "excel": "0.0.60", - "underscore": "~1.4.4", + "grunt-mocha-cli": "~1.0.1", "grunt-release": "~0.3.1", - "grunt-benchmark": "~0.2.0" + "underscore": "~1.4.4" }, "keywords": [ "xlsx", From 1d92fe3e4c253085e5d90804a40ba73015760b37 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 19:02:57 +0200 Subject: [PATCH 4/9] added install script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4434de9..3d669b3 100644 --- a/package.json +++ b/package.json @@ -47,5 +47,6 @@ ], "dependencies": { "archiver": "0.5.1" - } + }, + "install": "grunt build" } From 5bb005a04af7483fc90638f3aa13e183f92cb265 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 19:06:58 +0200 Subject: [PATCH 5/9] BugFix --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3d669b3..60c1624 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "scripts": { "benchmark": "grunt benchmark", "test": "grunt test", - "prepublish": "grunt build" + "prepublish": "grunt build", + "install": "grunt build" }, "devDependencies": { "coffee-script": "~1.6.3", @@ -47,6 +48,5 @@ ], "dependencies": { "archiver": "0.5.1" - }, - "install": "grunt build" + } } From 353c3d1c0d48db93c89d116603cb58fb20c46607 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 19:49:21 +0200 Subject: [PATCH 6/9] removed install script --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 60c1624..4434de9 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,7 @@ "scripts": { "benchmark": "grunt benchmark", "test": "grunt test", - "prepublish": "grunt build", - "install": "grunt build" + "prepublish": "grunt build" }, "devDependencies": { "coffee-script": "~1.6.3", From 4bdb865821726db2c2451949d114ab76856432c2 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 20:05:17 +0200 Subject: [PATCH 7/9] try to make installable from git --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4434de9..ba5d8c9 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "scripts": { "benchmark": "grunt benchmark", "test": "grunt test", - "prepublish": "grunt build" + "prepublish": "grunt build", + "install": "npm-git install" }, "devDependencies": { "coffee-script": "~1.6.3", @@ -46,6 +47,11 @@ "spreadsheet" ], "dependencies": { - "archiver": "0.5.1" + "archiver": "0.5.1", + "npm-git-install": "^0.2.0" + }, + "gitDependencies": { + "private-package-name": "git@github.com:rl3/node-xlsx-writestream.git", + "public-package-name": "https://github.com/rl3/node-xlsx-writestream.git" } } From dce34339365b703bfc6864a452981e3b59ad2c68 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 20:35:53 +0200 Subject: [PATCH 8/9] try to build on preinstall --- package.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/package.json b/package.json index ba5d8c9..0649eca 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "benchmark": "grunt benchmark", "test": "grunt test", "prepublish": "grunt build", - "install": "npm-git install" + "preinstall": "grunt build" }, "devDependencies": { "coffee-script": "~1.6.3", @@ -48,10 +48,5 @@ ], "dependencies": { "archiver": "0.5.1", - "npm-git-install": "^0.2.0" - }, - "gitDependencies": { - "private-package-name": "git@github.com:rl3/node-xlsx-writestream.git", - "public-package-name": "https://github.com/rl3/node-xlsx-writestream.git" } } From 12263afe6a41e99742300b9213c6218e6c328452 Mon Sep 17 00:00:00 2001 From: "runlevel3@goedel" Date: Tue, 27 Sep 2016 20:38:29 +0200 Subject: [PATCH 9/9] bug fix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0649eca..7949262 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,6 @@ "spreadsheet" ], "dependencies": { - "archiver": "0.5.1", + "archiver": "0.5.1" } }