Skip to content

Refactor all code

Athanasios Katsadas requested to merge feature-refactor into master

This is a huge MR, sorry for the multiple changes.

This MR introduces a whole new refactor of the terminology plugin. Both cli commands have been separated, both are async and both of them utilize the lib.js file, where all the magic happens.

File structure

packages/
├── parser
│   ├── README.md
│   ├── __tests__
│   │   ├── parser.test.js
│   │   └── test_docs
│   │       ├── exclude.md
│   │       ├── hospitality.md
│   │       └── host.md
│   ├── package.json
│   ├── src
│   │   ├── commands
│   │   │   ├── glossary.js
│   │   │   └── parser.js
│   │   ├── index.js
│   │   └── lib.js
│   └── yarn.lock
└── term
    ├── README.md
    ├── __tests__
    │   ├── __snapshots__
    │   │   └── term.test.js.snap
    │   └── term.test.js
    ├── node_modules
    ├── package.json
    ├── src
    │   └── index.js
    └── yarn.lock

As before, there are 2 packages, the parser package, which is the nodejs cli program, and the term package, which is the ReactJS component.

The parser package received the biggest upgrade, as it was just a single file before the refactor. Now, each command has its own file, and both commands rely on the lib.js file to perform actions.

Edited by Athanasios Katsadas

Merge request reports