Permalink
Browse files

Create npm package

  • Loading branch information...
1 parent 1f83a73 commit a9a7418243edbd0210ddf7a20fe1c16599434507 @adamschmideg adamschmideg committed Sep 17, 2012
Showing with 524 additions and 357 deletions.
  1. +1 −0 .gitignore
  2. +4 −4 Cakefile
  3. +30 −0 package.json
  4. +440 −333 src/ExcelFormulaUtilities.js
  5. +3 −1 src/core.js
  6. +7 −0 src/main.coffee
  7. +20 −0 src/main.js
  8. +19 −19 test/ExcelFormulaUtilities.test.js
View
@@ -0,0 +1 @@
+node_modules
View
@@ -5,8 +5,8 @@ fs = require 'fs'
querystring = require 'querystring'
#Globals
-COMPILER_PATH = '/usr/share/java/compiler.jar'
-VERSION = '0.9.3'
+COMPILER_PATH = './node_modules/closure-compiler/lib/vendor/compiler.jar'
+VERSION = '0.9.4'
YEAR = (new Date).getFullYear
LICENSE = fs.readFileSync './license.include', 'utf8'
@@ -23,7 +23,7 @@ task 'build', 'Building', ->
exec "sed -i -e '1r ./license.include' -e '1{h; D;}' -e '2{p}' ./excelFormulaUtilities-#{VERSION}.min.js", (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
- exec 'docco ./src/*.js', (err, stdout, stderr) ->
+ exec 'node_modules/.bin/docco ./src/*.js', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec "cat ./src/core.js ./src/ExcelFormulaUtilities.js > ./excelFormulaUtilities-#{VERSION}.js" , (err, stdout, stderr) ->
@@ -94,4 +94,4 @@ task 'cloudBuild', 'Building in the cloud.', ->
req.write query
req.end
- #TODO Get docco working with cloud9.
+ #TODO Get docco working with cloud9.
View
@@ -0,0 +1,30 @@
+{
+ "author": "Josh Bennett (http://joshbennett.me/)",
+ "name": "excel-formula",
+ "description": "Methods to beautify an excel formula and convert it to JavaScript or C#",
+ "version": "0.9.4",
+ "homepage": "http://excelformulabeautifier.com/",
+ "contributors": [
+ {"name": "Adam Schmideg", "url": "http://adam.schmideg.net"}
+ ],
+ "repository": {
+ "url": "git://github.com/joshatjben/excelFormulaUtilitiesJS.git"
+ },
+ "keyword": ["excel", "formula", "convert"],
+ "scripts": {
+ "test": "qunit -t ./test/ExcelFormulaUtilities.test.js -d ./src/core.js -c ./src/ExcelFormulaUtilities.js"
+ },
+ "main": "./src/main",
+ "dependencies": {},
+ "devDependencies": {
+ "qunit": "0.5.x",
+ "coffee-script": "~1.1.3",
+ "docco": "~0.4.0",
+ "closure-compiler": "0.1.2"
+ },
+ "optionalDependencies": {},
+ "engines": {
+ "node": "*"
+ },
+ "license": "MIT"
+}
Oops, something went wrong.

0 comments on commit a9a7418

Please sign in to comment.