Comparing version 0.5.1 to 0.6.0
@@ -36,6 +36,11 @@ 'use strict'; | ||
const cell2 = cells[i + 2]; | ||
const guardRes = ( | ||
'\n// ***** THIS TEXT IS AUTOMATICALLY GENERATED, DO NOT EDIT *****\n' + | ||
res + | ||
'\n// ***** END OF AUTOMATICALLY GENERATED TEXT, DO NOT EDIT *****\n' | ||
); | ||
if (cell2 && cell2.kind === 'meta' && cell2.src.trim() === 'fin') { | ||
cells[i + 1] = {kind: 'body', src: res}; | ||
cells[i + 1] = {kind: 'body', src: guardRes}; | ||
} else { | ||
cells.splice(i + 1, 0, {kind: 'body', src: res + '/* fin */'}); | ||
cells.splice(i + 1, 0, {kind: 'body', src: guardRes + '/* fin */'}); | ||
} | ||
@@ -42,0 +47,0 @@ } |
{ | ||
"name": "autodrom", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "auto verilog from comments", | ||
@@ -31,6 +31,6 @@ "author": "Aliaksei Chapyzhenka", | ||
"dependencies": { | ||
"@hpcc-js/wasm": "^1.12.7", | ||
"@wavedrom/fsm": "^0.6.1", | ||
"@hpcc-js/wasm": "^1.12.9", | ||
"@wavedrom/fsm": "^0.7.1", | ||
"chokidar": "^3.5.2", | ||
"commander": "^8.3.0", | ||
"commander": "^9.0.0", | ||
"lodash.range": "^3.2.0" | ||
@@ -42,4 +42,4 @@ }, | ||
"chai": "^4.1.2", | ||
"eslint": "^8.6.0", | ||
"mocha": "^9.1.3", | ||
"eslint": "^8.9.0", | ||
"mocha": "^9.2.1", | ||
"nyc": "^15.1.0" | ||
@@ -46,0 +46,0 @@ }, |
@@ -5,2 +5,8 @@ [![NPM version](https://img.shields.io/npm/v/autodrom.svg)](https://www.npmjs.org/package/autodrom)[![Linux](https://github.com/drom/autodrom/actions/workflows/linux.yml/badge.svg)](https://github.com/drom/autodrom/actions/workflows/linux.yml)[![MacOS](https://github.com/drom/autodrom/actions/workflows/macos.yml/badge.svg)](https://github.com/drom/autodrom/actions/workflows/macos.yml)[![Windows](https://github.com/drom/autodrom/actions/workflows/windows.yml/badge.svg)](https://github.com/drom/autodrom/actions/workflows/windows.yml) | ||
## Install | ||
``` | ||
npm i -g autodrom | ||
``` | ||
## CLI use | ||
@@ -11,3 +17,3 @@ | ||
``` | ||
npx autodrom ...<FILE, DIR, GLOB> | ||
autodrom ...<FILE, DIR, GLOB> | ||
``` | ||
@@ -18,3 +24,3 @@ | ||
``` | ||
npx autodrom --svg ...<FILE, DIR, GLOB> | ||
autodrom --svg ...<FILE, DIR, GLOB> | ||
``` | ||
@@ -25,3 +31,3 @@ | ||
``` | ||
npx autodrom --watch ...<FILE, DIR, GLOB> | ||
autodrom --watch ...<FILE, DIR, GLOB> | ||
``` | ||
@@ -28,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
8798
198
40
+ Added@wavedrom/fsm@0.7.1(transitive)
+ Addedcommander@9.5.0(transitive)
- Removed@wavedrom/fsm@0.6.1(transitive)
- Removedcommander@8.3.0(transitive)
Updated@hpcc-js/wasm@^1.12.9
Updated@wavedrom/fsm@^0.7.1
Updatedcommander@^9.0.0