Skip to content

Commit c403fae

Browse files
committed
added bower dependencies pdfjs and angular. fixed #15
1 parent 8488ea8 commit c403fae

File tree

7 files changed

+12807
-9012
lines changed

7 files changed

+12807
-9012
lines changed

.bowerrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"directory": "bower_components",
3+
"json": "bower.json"
4+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
node_modules
3+
bower_components

Gruntfile.js

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ module.exports = function(grunt) {
4646
cwd: 'example/js/directives',
4747
src: [ 'angular-pdf.js' ],
4848
dest: 'dist/'
49+
},
50+
{
51+
cwd: 'bower_components/pdfjs-dist/build',
52+
src: [ 'pdf.js', 'pdf.worker.js' ],
53+
dest: 'example/js/lib',
54+
flatten: true,
55+
expand: true
4956
}
5057
]
5158
}

bower.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"description": "An Angularjs directive <ng-pdf> to display PDF in the browser with PDFJS.",
55
"main": "./dist/angular-pdf.js",
66
"license": "MIT",
7-
"homepage": "https://github.com/sayanee/angularjs-pdf"
7+
"homepage": "https://github.com/sayanee/angularjs-pdf",
8+
"dependencies": {
9+
"angular-latest": "1.2.25",
10+
"pdfjs-dist": "1.0.89"
11+
}
812
}

example/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>{{pdfName}}</h1>
1717

1818
<script src="js/lib/pdf.js"></script>
1919

20-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script>
20+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"></script>
2121

2222
<script>
2323
var app = angular.module('App', ['pdf']);

0 commit comments

Comments
 (0)