- Update
package.json
version - Update
src/pptxgen.ts
version - Build library: npm scripts >
ship
- Consolidate new changes from
src/bld/*.ts
intotypes/index.d.ts
and update version in head comment - Open
dist/*.js
and check headers - Update
CHANGELOG.md
with new date - Update
README.md
with new CDN links - Update
demos/node/package.json
version
Run all tests in browser
- Local Demo
Run Node test
$ cd ~/GitHub/PptxGenJS/demos/node
$ npm run demo
$ npm run demo-all
$ npm run demo-text
$ npm run demo-stream
React Test
- Ensure newest
dist/pptxgen.es.js
andtypes/index.d.ts
under local node_modules - Update
demos/react-demo/package.json
version - Open
demos/react-demo/src/latest/Test.tsx
- Check existing code
- Test defs by using auto-complete, "pptxgen.ChartType." etc.
$ cd ~/GitHub/PptxGenJS/demos/react-demo
$ npm run start
- Go to http://localhost:3000 on iMac
- Run both demo tests
- Go to http://192.168.x.x:3000 on iPhone
- Run both demo tests
- Ensure each is viewable upon download
npm run build
- copy entire "build" folder to Downloads for subsequently updating gh-pages with latest build (DO NOT use the deploy script offered onscreen!)
NOTE Any updates to node_modules/dist/pptxgen.es.js
are not picked up by the server (ctrl-C and restart)
- Revert scripts in
./demos/browser/index.html
- Is version updated in package.json and pptxgen.js?
- Are
index.d.ts
defs updated?
- Checkin all changes via GitHub Desktop
- Copy CHANGELOG entry and draft new release: Releases
- Use "Version X.x.x" as title and "v3.1.1" as tag
- Go back to Releases page, double-check title/tag, release when ready
cd ~/GitHub/PptxGenJS
npm publish
- Save output from all tests and html2ppt for this release
- Go test CDN links on README
- Load gh-pages branch
- Update
installation.md
with latest CDN version - Update demo-react by copying contents of the newest "build" (from above) into
./demo-react
folder - Update other documentation as needed