VHDLFormatter
VHDLFormatter copied to clipboard
VHDL formatter web online written in typescript
VHDL Fomatter
Online VHDL formatter written in Typescript
Try it here: https://g2384.github.io/VHDLFormatter/
Run Locally
Simply download/clone this repository, and open the index.html
file.
Contribute
Structure
-
index.html
: html + javascript. Collect settings from UI, call the beautify function, load/save/update cached settings. -
main.ts
: typescript. Some code required byindex.html
are moved here. -
VHDLFormatter.ts
: typescript. Define classes, format VHDL code -
tests
: folder. Contain all test files- *.test.ts: typescript. Proper test files.
-
VHDLFormatterUnitTests.ts
: typescript. Handcrafted, crude tests.
-
VHDLFiles
: vhdl. Contain complicated VHDL files which I don't want to lose.
Develop
Use Visual Studio Code to open the repo folder.
Run Tests
Tests must be run before each commit.
Run Unit/Integration Tests
- open repo folder with Visua Studio Code
- click
Run (Ctrl + Shift + D)
- select
Run Unit Tests
configuration - click
Start Debugging
button
Run Jest Tests
- open repo folder with Visua Studio Code
- click
Terminal
->Run Task...
- select
npm: test jest