Try a different minify action package

This commit is contained in:
Melissa LeBlanc-Williams 2023-03-14 11:47:48 -07:00
parent d4e6eb0249
commit e023a5a4a3
6 changed files with 4 additions and 5 deletions

View file

@ -19,12 +19,11 @@ jobs:
- name: Create Build Folder - name: Create Build Folder
run: "mkdir -p build" run: "mkdir -p build"
- name: Copy files to build folder - name: Copy files to build folder
run: "yes | cp -f *.{mjs,py,json} build/" run: "yes | cp -f *.{js,py,json} build/"
- name: Minify JavaScript - name: Minify JavaScript
uses: nizarmah/auto-minify@v2.1 uses: jossydevers/minify-js@v1.0.0
with: with:
directory: 'build' directory: 'build'
overwrite: true
# Eventually only do this step on release # Eventually only do this step on release
- name: Commit Build Files - name: Commit Build Files
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4

View file

@ -10,7 +10,7 @@ import * as esptoolPackage from "https://unpkg.com/esp-web-flasher@5.1.2/dist/we
//import * as esptoolPackage from "https://adafruit.github.io/Adafruit_WebSerial_ESPTool/js/modules/esptool.js" //import * as esptoolPackage from "https://adafruit.github.io/Adafruit_WebSerial_ESPTool/js/modules/esptool.js"
import { REPL } from 'https://cdn.jsdelivr.net/gh/adafruit/circuitpython-repl-js@1.2.1/repl.js'; import { REPL } from 'https://cdn.jsdelivr.net/gh/adafruit/circuitpython-repl-js@1.2.1/repl.js';
import { InstallButton, ESP_ROM_BAUD } from "./base_installer.mjs"; import { InstallButton, ESP_ROM_BAUD } from "./base_installer.js";
// TODO: Combine multiple steps together. For now it was easier to make them separate, // TODO: Combine multiple steps together. For now it was easier to make them separate,
// but for ease of configuration, it would be work better to combine them together. // but for ease of configuration, it would be work better to combine them together.

View file

@ -5,7 +5,7 @@
}, },
"version": "1.0.0", "version": "1.0.0",
"description": "ESP32 Web-based Firmware Installation Tool for CircuitPython and more", "description": "ESP32 Web-based Firmware Installation Tool for CircuitPython and more",
"main": "base_installer.mjs", "main": "base_installer.js",
"dependencies": { "dependencies": {
}, },
"devDependencies": {}, "devDependencies": {},