Skip to content

Latest commit

 

History

History
106 lines (76 loc) · 3.04 KB

RELEASES.md

File metadata and controls

106 lines (76 loc) · 3.04 KB

PptxGenJS Release Checklist

Build Library, Update Files

  1. Update package.json version
  2. Update src/pptxgen.ts version
  3. Update CHANGELOG.md with new date
  4. Update README.md with new CDN links
  5. Build library: npm scripts > ship
  6. Consolidate new changes from src/bld/*.ts into types/index.d.ts and update version in head comment
  7. Open dist/*.js and check headers

Test Newest Library Build

Browser

Run all tests in browser

  • Local Demo

Node

Node Test

  1. Update demos/node/package.json version
$ cd ~/GitHub/PptxGenJS/demos/node
$ npm run demo
$ npm run demo-all
$ npm run demo-text
$ npm run demo-stream

React/TypeScript

React Test

  1. Ensure newest dist/pptxgen.es.js and types/index.d.ts under local node_modules
  2. Update demos/react-demo/package.json version
  3. Open demos/react-demo/src/latest/Test.tsx
  4. Check existing code
  5. Test defs by using auto-complete, "pptxgen.ChartType." etc.
$ cd ~/GitHub/PptxGenJS/demos/react-demo
$ npm run start
  1. Go to http://localhost:3000 on iMac, run demo tests
  2. Go to http://192.168.1.x:3000 on iPhone, run demo tests
  3. Go to http://192.168.1.x:3000 on Android, run demo tests
  4. Open exports on each device to ensure MIME type is correct, looks right, etc.
$ cd ~/GitHub/PptxGenJS/demos/react-demo
$ npm run build
  1. 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)

Release New Version

Pre-Release Check

  1. Update demos/browser/index.html version and CDN links
  2. Is version updated in package.json and pptxgen.js?
  3. Are index.d.ts defs updated?

GitHub

  1. Checkin all changes via GitHub Desktop
  2. Copy CHANGELOG entry and draft new release: Releases
  3. Use "Version X.x.x" as title and "v3.1.1" as tag
  4. Go back to Releases page, double-check title/tag, release when ready

NPM

  1. cd ~/GitHub/PptxGenJS
  2. npm publish

Post-Release Tasks

  1. Go test CDN links on README
  2. Load gh-pages branch
  3. Update installation.md with latest CDN version
  4. Update demo-react by copying contents of the newest "build" (from above) into ./demo-react folder
  5. Update other documentation as needed