UNPKG

easy-aos

Version:

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

26 lines (23 loc) 815 B
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 } export default log