56 lines
1.4 KiB
Markdown
56 lines
1.4 KiB
Markdown
# Romulus-JS
|
|
|
|
[](https://drone.jacknet.io/TerribleCodeClub/romulus-js) [](https://standardjs.com)
|
|
|
|
An implementation of the Romulus-M cryptography specification.
|
|
|
|
## Build
|
|
|
|
To build the Romulus-JS library, first clone this repository.
|
|
|
|
Run the following commands from the root of the repository:
|
|
|
|
```bash
|
|
$ npm install
|
|
$ npm run build
|
|
```
|
|
|
|
The build output will be saved to the `dist` directory.
|
|
|
|
## Development instructions
|
|
|
|
Requirements:
|
|
|
|
- The latest LTS builds of Node and npm.
|
|
|
|
Follow the instructions below to lint, test and build Romulus-JS.
|
|
|
|
#### Lint
|
|
|
|
```bash
|
|
$ npm install
|
|
$ npm run lint
|
|
```
|
|
|
|
#### Test
|
|
|
|
```bash
|
|
$ npm install
|
|
$ npm run test
|
|
```
|
|
|
|
#### Build
|
|
|
|
```bash
|
|
$ npm install
|
|
$ npm run build
|
|
```
|
|
|
|
### Visual Studio Code
|
|
|
|
This repository contains the necessary configuration files to debug, test and build Romulus-JS using only Visual Studio Code.
|
|
|
|
Run the build task (`Ctrl+Shift+B` or `⇧⌘B`) to automatically compile the Typescript source files in the background.
|
|
|
|
Unit tests use the [Jest](https://jestjs.io/) library. Support for Visual Studio Code is offered through the [Jest marketplace package](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest) maintained by Orta.
|