This PR re writes the ESPTOOL-JS in TypeScript and preparation for NPM packaging and publishing.
Proposed features here:
Re write existing code in TypeScript and add types for targets and methods used.
Re write example index.js for applied changes.
Add Github CI for publishing in NPM.
Add scripts for lint the existing typescript code.
Add rollup script to bundle the resulting JS (after npm run build) into a single bundle.js used in the example for browser purposes.
Removed XTerm within ESPLoader code and opted for dependency injection of Terminal reference. This allows the existing code to use different terminals systems in JavaScript/Typescript.
Added package.json references and compilation from TypeScript to JavaScript so EsptoolJS could be used as a Node module with type references.
Things left out:
Testing (How should we provide mocking for the Transport class to test ESPLoader functionality ?
This PR re writes the ESPTOOL-JS in TypeScript and preparation for NPM packaging and publishing.
Proposed features here:
index.js
for applied changes.bundle.js
used in the example for browser purposes.Things left out: