- Update
package.jsonversion (ex:3.12.0-beta.0) - Update
src/pptxgen.tsversion - Build library: npm scripts >
ship npm publish --tag beta
- Update
package.jsonversion - Update
src/pptxgen.tsversion (eg:const VERSION = '3.3.1') - Update
CHANGELOG.mdwith new date - Update
README.mdwith new CDN links - Build library: npm scripts >
ship - Consolidate new changes from
src/bld/*.tsintotypes/index.d.tsand update version in head comment - Open
dist/*.jsand check headers
- Run
~/GitHub/PptxGenJS/demos/node browser_server.mjs - Ensure newest
pptxgen.bundle.jsis loaded using F12 > Sources tab - Run all tests in browser Demo Page
- Update
demos/node/package.jsonversion - Run various tests
cd ~/GitHub/PptxGenJS/demos/node
npm run demo
npm run demo-all
npm run demo-text
npm run demo-streamTest
- Ensure newest
dist/pptxgen.es.jsandtypes/index.d.tsunder local node_modules - Update
demos/react-demo/package.jsonversion (note, may need to update package-lock.json) - Open
demos/react-demo/src/tstest/Test.tsx, check for typescript errors/warnings: use auto-complete, "pptxgen.ChartType." etc.
cd ~/GitHub/PptxGenJS/demos/react-demo
npm run build
npm run start- Go to React Test on iMac, run demo tests
- Go to http://192.168.254.x:3000 on iPhone, run demo tests
- Go to http://192.168.254.x:3000 on Android, run demo tests
- Open exports on each device to ensure MIME type is correct, looks right, etc.
- Note: Any updates to
node_modules/dist/pptxgen.es.jsare not picked up by the server (ctrl-C and restart)
Build
- Run
npm run build - Copy entire "build" folder to Downloads to use when updating "gh-pages" branch after release is complete
- Note: DO NOT use the deploy script offered onscreen!
- Update:
demos/browser/index.htmlhead to use "RELEASE (CDN)" - Check: Is
versionupdated in package.json? - Check: Is
versionupdated in src/pptxgen.ts? - Check: Is
types/index.d.tsversion in header updated?
- Checkin all changes via GitHub Desktop
- Copy CHANGELOG entry and draft new release: Releases
- Use "Version X.x.x" as title and "v3.6.0" as tag
- Go back to Releases page, double-check title/tag, release when ready
cd ~/GitHub/PptxGenJS
npm publish- Test CDN links on README.md
- Load gh-pages branch
- Update
installation.mdwith latest CDN version - Copy contents of the newest "build" folder (from above) into
./demo-reactfolder - Update API documentation if needed