Table of Contents
The Javascript-Wrapper is part of the AST-CLI project that provides a shared infrastructure across the AST projects. It contains technology neutral repository interfaces as well as a metadata model for persisting Javascript classes.
Add the following dependency:
"dependencies": {
"@hmmachadocx/fork-ast-cli-javascript-wrapper": "{version}"
}
To be able to build the code you should have:
- Node
In your terminal, run:
- npm install
To run integrations tests, you need to set up environment variables:
- In Linux systems run in terminal:
export CX_CLIENT_ID="{value}"
export CX_CLIENT_SECRET="{value}"
export CX_APIKEY="{value}"
export CX_BASE_URI="{value}"
export CX_BASE_AUTH_URI="{value}"
export CX_TENANT="{value}"
export PATH_TO_EXECUTABLE="{value}"
- In Windows systems run in powershell:
setx CX_CLIENT_ID {value}
setx CX_CLIENT_SECRET {value}
setx CX_APIKEY {value}
setx CX_BASE_URI {value}
setx CX_BASE_AUTH_URI {value}
setx CX_TENANT {value}
setx PATH_TO_EXECUTABLE {value}
Checkmarx - AST Integrations Team
CxProject Link: https://github.com/hmmachadocx/fork-ast-cli-javascript-wrapper
© 2021 Checkmarx Ltd. All Rights Reserved.