Skip to content

Commit

Permalink
browserify bundle options fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bpampuch committed Mar 3, 2015
1 parent 62fa678 commit b25f5d6
Show file tree
Hide file tree
Showing 8 changed files with 188 additions and 244 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- 0.10
- 0.12
before_script:
- npm install -g grunt-cli
6 changes: 4 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ module.exports = function(grunt) {
browserify: {
build: {
options: {
standalone: 'pdfMake',
alias: './src/browser-extensions/virtual-fs.js:fs'
browserifyOptions: {
standalone: 'pdfMake',
alias: './src/browser-extensions/virtual-fs.js:fs'
}
},
files: {
'build/pdfmake.js': ['./src/browser-extensions/pdfMake.js']
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdfmake",
"version": "0.1.15",
"version": "0.1.16",
"homepage": "https://bpampuch.github.io/pdfmake",
"authors": [
"Bartek Pampuch <[email protected]>"
Expand Down
391 changes: 165 additions & 226 deletions build/pdfmake.js

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions build/pdfmake.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/pdfmake.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/layoutBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1288,9 +1288,9 @@ describe('LayoutBuilder', function() {
tableNode.table.body.push([stack1, stack2]);
}

new DocMeasure(sampleTestProvider, {}, {}, {}).measureDocument(tableNode);
ColumnCalculator.buildColumnWidths(tableNode.table.widths, 320);

new DocMeasure(sampleTestProvider, {}, {}, {}).measureDocument(tableNode);
return tableNode;
}

Expand Down
5 changes: 4 additions & 1 deletion tests/tableProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ describe('TableProcessor', function () {
var fakeTableNode = function() {
return {
table: {
widths: ['*']
// since extendTableWidths is not called from out tests
// we can't use the doc-definition syntax for widths
// so instead of '*' we
widths: [ { width: '*' } ]
},
_offsets: {
total: 56472
Expand Down

0 comments on commit b25f5d6

Please sign in to comment.