Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve shared formulas #67

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
node_modules
node_modules*
misc/coverage.html
misc/prof.js
v8.log
tmp
*.xlsx
*.xlsm
*.xlsb
6 changes: 6 additions & 0 deletions .jscs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"requireCommaBeforeLineBreak": true,
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true
}

19 changes: 18 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
test_files/
tests/files/
index.html
misc/coverage.html
misc/
node_modules
tmp
*.xls
*.xlsb
*.xlsm
*.xlsx
*.xml
.gitignore
.jshintrc
CONTRIBUTING.md
Makefile
tests.lst
.npmignore
xlsworker.js
shim.js
test.js
.jscs.json
.gitmodules
.travis.yml
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: node_js
node_js:
- "0.10"
- "0.11"
- "0.10.30"
- "0.8"
before_install:
- "npm install -g mocha"
Expand Down
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
LIB=xlsx
DEPS=$(wildcard bits/*.js)
DEPS=$(sort $(wildcard bits/*.js))
TARGET=$(LIB).js
FMT=xlsx xlsm xlsb misc full
REQS=jszip.js
ADDONS=dist/cpexcel.js

$(TARGET): $(DEPS)
cat $^ > $@
cat $^ | tr -d '\15\32' > $@

bits/01_version.js: package.json
echo "XLSX.version = '"`grep version package.json | awk '{gsub(/[^0-9a-z\.-]/,"",$$2); print $$2}'`"';" > $@

.PHONY: clean
clean:
rm $(TARGET)
rm -f $(TARGET)

.PHONY: clean-data
clean-data:
rm -f *.xlsx *.xlsm *.xlsb *.xls *.xml

.PHONY: init
init:
Expand All @@ -26,7 +30,12 @@ init:
.PHONY: test mocha
test mocha: test.js
mkdir -p tmp
mocha -R spec
mocha -R spec -t 20000

.PHONY: prof
prof:
cat misc/prof.js test.js > prof.js
node --prof prof.js

TESTFMT=$(patsubst %,test_%,$(FMT))
.PHONY: $(TESTFMT)
Expand All @@ -37,6 +46,13 @@ $(TESTFMT): test_%:
.PHONY: lint
lint: $(TARGET)
jshint --show-non-errors $(TARGET)
jscs $(TARGET)

.PHONY: test-osx
test-osx:
node tests/write.js
open -a Numbers sheetjs.xlsx
open -a "Microsoft Excel" sheetjs.xlsx

.PHONY: cov cov-spin
cov: misc/coverage.html
Expand Down