Skip to content

Commit

Permalink
Add reset modes (#146)
Browse files Browse the repository at this point in the history
* add before after reset modes

* Combine reset sequence constructor functions (#181)

* update pages node version rm duplicate debug msg

* add after hard reset in live demo

---------

Co-authored-by: Melissa LeBlanc-Williams <[email protected]>

npm audit

test pages

use ubuntu 20

update pages yml

add parcel workers 0

parcel build workers

rm debug action

update action version
  • Loading branch information
brianignacio5 committed Jan 14, 2025
1 parent 4e7f682 commit 3edb679
Show file tree
Hide file tree
Showing 12 changed files with 933 additions and 885 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,25 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Install Node modules
run: |
npm install
- name: Build example project and copy docs
run: |
npm run build
npm run genDocs
mkdir -p examples/typescript/dist
cp -r docs examples/typescript/dist
cd examples/typescript
npm install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'examples/typescript/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"genDocs": "cd ../.. && npm run genDocs && mkdir -p examples/typescript/dist && cp -r docs examples/typescript/dist && cd examples/typescript",
"dev": "npm run clean && npm run genDocs && parcel src/index.html",
"build": "npm run clean && npm run genDocs && parcel build src/index.html --no-optimize --public-url ./",
"build": "npm run clean && PARCEL_WORKERS=0 parcel build src/index.html --no-optimize --public-url ./",
"clean": "rimraf dist .parcel-cache",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
1 change: 1 addition & 0 deletions examples/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ programButton.onclick = async () => {
calculateMD5Hash: (image) => CryptoJS.MD5(CryptoJS.enc.Latin1.parse(image)),
} as FlashOptions;
await esploader.writeFlash(flashOptions);
await esploader.after();
} catch (e) {
console.error(e);

Check warning on line 360 in examples/typescript/src/index.ts

View workflow job for this annotation

GitHub Actions / ci

Unexpected console statement
term.writeln(`Error: ${e.message}`);
Expand Down
Loading

0 comments on commit 3edb679

Please sign in to comment.