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

Better client side support #107

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,21 @@ Use JavaScript to Create a PowerPoint presentation with your web browser right n

# Installation
## Client-Side
PptxGenJS requires only 2 additional JavaScript libraries:
```javascript
<script lang="javascript" src="PptxGenJS/libs/jquery.min.js"></script>
<script lang="javascript" src="PptxGenJS/libs/jszip.min.js"></script>
<script lang="javascript" src="PptxGenJS/dist/pptxgen.js"></script>
Download the code manually or use bower:
```jasvascript
bower install pptxgen
```
Include the dependencies independently:
```html
<script src="PptxGenJS/libs/jquery.min.js"></script>
<script src="PptxGenJS/libs/jszip.min.js"></script>
<script src="PptxGenJS/dist/pptxgen.js"></script>
```
Or use the bundled version:
```html
<script src="PptxGenJS/dist/pptxgen.bundle.js"></script>
```

## Node.js
[PptxGenJS NPM Homepage](https://www.npmjs.com/package/pptxgenjs)
```javascript
Expand Down
2 changes: 2 additions & 0 deletions dist/pptxgen.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/pptxgen.bundle.js.map

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var gulp = require('gulp'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
ignore = require('gulp-ignore'),
uglify = require('gulp-uglify');

gulp.task('build', function () {
gulp.src(['libs/*', 'dist/pptxgen.js'])
.pipe(concat('pptxgen.bundle.js'))
.pipe(sourcemaps.init())
.pipe(ignore.exclude(["**/*.map"]))
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('dist/'));
});
97 changes: 52 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,54 @@
{
"name": "pptxgenjs",
"version": "1.5.0",
"author": {
"name": "Brent Ely",
"url": "https://github.com/gitbrent/"
},
"description": "JavaScript framework that creates PowerPoint (pptx) presentations",
"homepage": "https://gitbrent.github.io/PptxGenJS/",
"license": "MIT",
"dependencies": {
"jquery-node": ">=0.2.0",
"jszip": ">=3.1.2",
"image-size": ">=0.5.1"
},
"main": "dist/pptxgen.js",
"directories": {
"example": "examples",
"libs": "dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gitbrent/PptxGenJS.git"
},
"keywords": [
"javascript",
"javascript-create-powerpoint",
"javascript-create-pptx",
"javascript-pptx",
"javascript-powerpoint",
"js-create-powerpoint",
"js-generate-powerpoint",
"js-produce-powerpoint",
"js-powerpoint",
"powerpoint",
"powerpoint-presentation",
"ppt",
"pptx",
"presentations"
],
"bugs": {
"url": "https://github.com/gitbrent/PptxGenJS/issues"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
"name": "pptxgenjs",
"version": "1.5.0",
"author": {
"name": "Brent Ely",
"url": "https://github.com/gitbrent/"
},
"description": "JavaScript framework that creates PowerPoint (pptx) presentations",
"homepage": "https://gitbrent.github.io/PptxGenJS/",
"license": "MIT",
"dependencies": {
"jquery-node": ">=0.2.0",
"jszip": ">=3.1.2",
"image-size": ">=0.5.1"
},
"main": "dist/pptxgen.js",
"directories": {
"example": "examples",
"libs": "dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gitbrent/PptxGenJS.git"
},
"keywords": [
"javascript",
"javascript-create-powerpoint",
"javascript-create-pptx",
"javascript-pptx",
"javascript-powerpoint",
"js-create-powerpoint",
"js-generate-powerpoint",
"js-produce-powerpoint",
"js-powerpoint",
"powerpoint",
"powerpoint-presentation",
"ppt",
"pptx",
"presentations"
],
"bugs": {
"url": "https://github.com/gitbrent/PptxGenJS/issues"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-concat": "^2.6.1",
"gulp-ignore": "^2.0.2",
"gulp-sourcemaps": "^2.6.0",
"gulp-uglify": "^3.0.0"
}
}