Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .darglint

This file was deleted.

39 changes: 0 additions & 39 deletions .flake8

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [main, 1.x]
pull_request:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
python-version: ['3.9', '3.10']

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: lint
run: pnpm check

- name: Test
run: pnpm test
84 changes: 0 additions & 84 deletions .github/workflows/python.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ tmp/
build/

dist
bin
keystore/
playground.py
.env
xrpld/
xahau/
xahau/
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
17 changes: 5 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
// Place your settings in this file to overwrite default and user settings.
{
"[python]": {
"formatting.provider": "black",
"linting.pylintEnabled": false,
"linting.flake8Enabled": true,
"linting.enabled": true,
"linting.mypyEnabled": true,
// "editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 79,
"editor.tabSize": 4,
"editor.formatOnSave": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The XRPLD Network Generator CLI is a command-line interface tool designed to fac

### Current Versions

- Ripple: `1.12.0`
- Xahau: `2024.1.25-release+738`
- XRPL: `2.2.3`
- Xahau: `2024.9.11-release+985`

## Prerequisites

Expand Down
5 changes: 0 additions & 5 deletions basedir.py

This file was deleted.

2 changes: 2 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
const cli = require('../dist/npm/cli')
35 changes: 35 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"files": {
"ignore": ["dist"]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"useLiteralKeys": "off"
},
"suspicious": {
"noExplicitAny": "warn"
},
"style": {
"noNonNullAssertion": "warn"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 120
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single"
}
}
}
39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "xrpld-network-gen",
"version": "1.0.0",
"bin": {
"xrpld-standalone-cli": "./bin/cli.js"
},
"main": "index.js",
"repository": "git@github.com:Transia-RnD/xrpld-network-gen.git",
"author": {
"name": "Denis Angell",
"url": "https://github.com/dangell7"
},
"license": "GPL-3.0-or-later",
"files": [
"./dist/npm",
"./bin"
],
"scripts": {
"build": "tsc && cp -r src/genesis*.json dist/npm/ && cp -r src/deploykit dist/npm/",
"format": "biome format . --write",
"lint": "biome lint .",
"check": "biome check --write .",
"test": "vitest"
},
"devDependencies": {
"@biomejs/biome": "^1.9.2",
"@tsconfig/node18": "^18.2.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.0.2",
"typescript": "^5.5.4",
"vitest": "^2.1.1"
},
"dependencies": {
"commander": "^12.1.0",
"dotenv": "^16.4.5",
"js-yaml": "^4.1.0",
"shlex": "^2.1.2"
}
}
Loading