- 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
- 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
- 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/tstest/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 React Test on iMac, run demo tests
- Go to http://192.168.1.x:3000 on iPhone, run demo tests
- Go to http://192.168.1.x:3000 on Android, run demo tests
- Open exports on each device to ensure MIME type is correct, looks right, etc.
$ cd ~/GitHub/PptxGenJS/demos/react-demo
$ 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)
- Update
demos/browser/index.html
head to use "RELEASE (CDN)" - Is version updated in package.json and src/pptxgen.ts?
- 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
- 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