|
1 | | -# AST Javascript Wrapper |
| 1 | +<!-- PROJECT LOGO --> |
| 2 | +<br /> |
| 3 | +<p align="center"> |
| 4 | + <a href=""> |
| 5 | + <img src="./logo.png" alt="Logo" width="80" height="80"> |
| 6 | + </a> |
2 | 7 |
|
3 | | -Release documentation: |
4 | | -https://checkmarx.atlassian.net/wiki/spaces/AID/pages/6030655776/ast-cli-javascript-wrapper |
| 8 | +<h3 align="center">AST-CLI-JAVASCRIPT-WRAPPER</h3> |
| 9 | + |
| 10 | +<!-- TABLE OF CONTENTS --> |
| 11 | +<details open="open"> |
| 12 | + <summary>Table of Contents</summary> |
| 13 | + <ol> |
| 14 | + <li> |
| 15 | + <a href="#about-the-project">About The Project</a> |
| 16 | + </li> |
| 17 | + <li> |
| 18 | + <a href="#getting-started">Getting Started</a> |
| 19 | + <ul> |
| 20 | + <li><a href="#prerequisites">Prerequisites</a></li> |
| 21 | + <li><a href="#setting-up">Setting Up</a></li> |
| 22 | + </ul> |
| 23 | + </li> |
| 24 | + <li><a href="#contact">Contact</a></li> |
| 25 | + </ol> |
| 26 | +</details> |
| 27 | + |
| 28 | +<!-- ABOUT THE PROJECT --> |
| 29 | +## About The Project |
| 30 | + |
| 31 | +The Javascript-Wrapper is part of the AST-CLI project that provides a shared infrastructure across the AST projects. |
| 32 | +It contains technology neutral repository interfaces as well as a metadata model for persisting Javascript classes. |
| 33 | + |
| 34 | +<!-- GETTING STARTED --> |
| 35 | +## Getting Started |
| 36 | + |
| 37 | +#### Package configuration |
| 38 | + |
| 39 | +Add the following dependency: |
| 40 | + |
| 41 | +``` |
| 42 | +"dependencies": { |
| 43 | + "@checkmarxdev/ast-cli-javascript-wrapper": "{version}" |
| 44 | +} |
| 45 | +``` |
| 46 | + |
| 47 | +### Prerequisites |
| 48 | + |
| 49 | +To be able to build the code you should have: |
| 50 | +* Node |
| 51 | + |
| 52 | + |
| 53 | +### Setting Up |
| 54 | + |
| 55 | +In your terminal, run: |
| 56 | +``` |
| 57 | +- npm install |
| 58 | +``` |
| 59 | + |
| 60 | +To run integrations tests, you need to set up environment variables: |
| 61 | + |
| 62 | +- In Linux systems run in terminal: |
| 63 | +``` |
| 64 | +export CX_CLIENT_ID="{value}" |
| 65 | +export CX_CLIENT_SECRET="{value}" |
| 66 | +export CX_APIKEY="{value}" |
| 67 | +export CX_BASE_URI="{value}" |
| 68 | +export CX_BASE_AUTH_URI="{value}" |
| 69 | +export CX_TENANT="{value}" |
| 70 | +export PATH_TO_EXECUTABLE="{value}" |
| 71 | +``` |
| 72 | + |
| 73 | +- In Windows systems run in powershell: |
| 74 | +``` |
| 75 | +setx CX_CLIENT_ID {value} |
| 76 | +setx CX_CLIENT_SECRET {value} |
| 77 | +setx CX_APIKEY {value} |
| 78 | +setx CX_BASE_URI {value} |
| 79 | +setx CX_BASE_AUTH_URI {value} |
| 80 | +setx CX_TENANT {value} |
| 81 | +setx PATH_TO_EXECUTABLE {value} |
| 82 | +``` |
| 83 | + |
| 84 | +<!-- CONTACT --> |
| 85 | +## Contact |
| 86 | + |
| 87 | +Checkmarx - AST Integrations Team |
| 88 | + |
| 89 | +Project Link: [https://github.com/CheckmarxDev/ast-cli-javascript-wrapper](https://github.com/CheckmarxDev/ast-cli-javascript-wrapper) |
| 90 | + |
| 91 | + |
| 92 | +© 2021 Checkmarx Ltd. All Rights Reserved. |
0 commit comments