- Update
package.json
version (ex:3.12.0-beta.0
) - Update
src/pptxgen.ts
version - Build library: npm scripts >
ship
npm publish --tag beta
- Update
package.json
version - Update
src/pptxgen.ts
version (eg:const VERSION = '3.3.1'
) - Update
CHANGELOG.md
with new date - Update
README.md
with new CDN links - 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
- Run
~/GitHub/PptxGenJS/demos/node browser_server.mjs
- Ensure newest
pptxgen.bundle.js
is loaded using F12 > Sources tab - Run all tests in browser Demo Page
- Update
demos/node/package.json
version - Run various tests
cd ~/GitHub/PptxGenJS/demos/node
npm run demo
npm run demo-all
npm run demo-text
npm run demo-stream
Test
- Ensure newest
dist/pptxgen.es.js
andtypes/index.d.ts
under local node_modules - Update
demos/react-demo/package.json
version (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.js
are 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.html
head to use "RELEASE (CDN)" - Check: Is
version
updated in package.json? - Check: Is
version
updated in src/pptxgen.ts? - Check: Is
types/index.d.ts
version 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.md
with latest CDN version - Copy contents of the newest "build" folder (from above) into
./demo-react
folder - Update API documentation if needed