diff --git a/.env b/.env deleted file mode 100644 index 834c94d..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ - # Scrubbed by Glitch 2020-11-13T22:00:25+0000 - diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..cbc25eb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# Basic dependabot.yml file with +# minimum configuration for two package managers + +version: 2 +updates: + # Enable version updates for npm + - package-ecosystem: "npm" + # Look for `package.json` and `lock` files in the `root` directory + directory: "/" + # Check the npm registry for updates every day (weekdays) + schedule: + interval: "weekly" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..a4dce4c --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,4 @@ +template: | + ## What's Changed + + $CHANGES diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d9b8aa3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 16 + - run: yarn install --frozen-lockfile + - run: script/build + - run: yarn prettier --check src diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..a93b866 --- /dev/null +++ b/.github/workflows/npmpublish.yml @@ -0,0 +1,22 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: yarn install --frozen-lockfile + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..896edaf --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 5509140..0f2ab60 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *.DS_Store +dist +node_modules diff --git a/README.md b/README.md index 2f9ff74..cd17123 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,11 @@ A Web Serial tool for updating your ESP bootloader. A live copy of the tool is hosted here: https://adafruit.github.io/Adafruit_WebSerial_ESPTool/ + +Also available on NPM as `adafruit-webserial-esptool`. + +## Local development + +- Clone this repository. +- Install dependencies with `yarn` +- Run `script/develop` diff --git a/index.html b/index.html index 9a35f52..608f55d 100644 --- a/index.html +++ b/index.html @@ -2,29 +2,52 @@ Adafruit ESPTool - - - + + + - - - - + + + + - + +
- +
@@ -33,21 +56,22 @@
- Sorry, Web Serial is not supported on this device, make sure you're - running Chrome 78 or later and have enabled the + Sorry, Web Serial is not supported on this device, make sure + you're running Chrome 78 or later and have enabled the #enable-experimental-web-platform-features flag in chrome://flags
-
- Adafruit ESPTool -
+
Adafruit ESPTool
- +
- +