UNPKG

easy-aos

Version:

帮助配置arm-gcc开发环境,简化命令行。

14 lines (13 loc) 909 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const build = new Map([[/(aos-cube version:) ([0-9.]+)/, ["gray"]], [/(Compiling) (auto_component)/, ["gray"]], [/(Making) (\S+\.elf)/, ["gray"]], [/(Making) (\S+\.bin)/, ["gray"]], [/(Build complete)/, ["green"]], [/--------err-------/, ["cyan"]], [/(Unknown component:) (\w+)/, ["red"]], [/(No rule to make target) 'out\/(\w+@\w+)\/config\.mk'/, ["red"]], [/(ERROR: Command) "([^"]+)"/, ["red"]]]); const flash = new Set([[/(st-flash) (\S+)/, ["cyan"]], [/(Device connected is:) (\S+ \S+ \S+ \S+)/, ["cyan"]], [/(SRAM size: 0x\d+ bytes \(\d+ KiB\)), (Flash: 0x\d+ bytes \(.*\).*)/, ["cyan"]], [/(Attempting.*address:) \d+ \((0x\d+)\)/, ["cyan"]], [/(Flash written and verified!) (jolly good!)/["cyan"]]]); const log = { build: build, flash: flash }; var _default = log; exports.default = _default;