mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 14:16:41 +00:00
Log ESP Web Tools version (#328)
* Log ESP Web Tools version * Prettier on generated code
This commit is contained in:
parent
652537eff1
commit
38e1398e0f
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -15,6 +15,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install jq tool
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install jq
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/npmpublish.yml
vendored
4
.github/workflows/npmpublish.yml
vendored
@ -12,6 +12,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install jq tool
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install jq
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
echo 'export const version =' `jq .version package.json`";" > src/version.ts
|
||||||
|
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
NODE_ENV=production npm exec -- tsc
|
NODE_ENV=production npm exec -- tsc
|
||||||
|
@ -31,6 +31,11 @@ import { fireEvent } from "./util/fire-event";
|
|||||||
import { sleep } from "./util/sleep";
|
import { sleep } from "./util/sleep";
|
||||||
import { downloadManifest } from "./util/manifest";
|
import { downloadManifest } from "./util/manifest";
|
||||||
import { dialogStyles } from "./styles";
|
import { dialogStyles } from "./styles";
|
||||||
|
import { version } from "./version";
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
`ESP Web Tools ${version} by Nabu Casa; https://esphome.github.io/esp-web-tools/`
|
||||||
|
);
|
||||||
|
|
||||||
const ERROR_ICON = "⚠️";
|
const ERROR_ICON = "⚠️";
|
||||||
const OK_ICON = "🎉";
|
const OK_ICON = "🎉";
|
||||||
|
1
src/version.ts
Normal file
1
src/version.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export const version = "dev";
|
Loading…
x
Reference in New Issue
Block a user