Basic Usage
- go through the installation and project setup process
- if not done already, run
npm installto completely download all dependencies - execute
jqa-ts-lce(global installation) ornpm run jqa(local installation) from the directory that contains your project(s) (this will generate a file.reports/jqa/ts-output.json)- use
--helpoption to show available options for the command (when using local installation, options have to be specified in thepackage.json)
- use
- run the jQAssistant command line utility using
directory/to/jqa-cli/bin/jqassistant.sh scan(imports.reports/jqa/ts-output.jsoninto the graph database)
Possible Use Cases:
- analyze the graph and report violations via
directory/to/jqa-cli/bin/jqassistant.sh analyzeanddirectory/to/jqa-cli/bin/jqassistant.sh report - start exploring the graph by starting the embedded server
directory/to/jqa-cli/bin/jqassistant.sh serverand opening your browser at http://localhost:7474
Project and Directory Structure:
- the directory provided to the language concept extractor is scanned for TypeScript projects
- projects may be nested and/or referenced
- all scanned files and directories are represented by
:File:Localnodes that hold an absolute path (absoluteFileName) and optionally a path relative to the root of the containing :TS:Project (fileName)- all directories also have the additional label
:Directory - all scanned files and directories share a common tree of nodes (the root of this tree represents the system root directory, i.e.
/orC:\) - NOTE: only the directory provided to the language concept extractor is fully traversed
- all directories also have the additional label