Skip to content

Commit

Permalink
script usability updates (#3)
Browse files Browse the repository at this point in the history
* add UID and GID to docker compose env object

* add tlsextraip flag support with publicip

* refactor for better logging of lncli connection errors

* add eslint and prettier; format files to match lint configs

* update colors
  • Loading branch information
bucko13 committed Oct 3, 2019
1 parent 11e74d4 commit cce707d
Show file tree
Hide file tree
Showing 13 changed files with 1,085 additions and 136 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
@@ -0,0 +1,4 @@
# /node_modules/* and /bower_components/* in the project root are ignored by default

ui/build/*
ui/node_modules/*
23 changes: 23 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,23 @@
{
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"linebreak-style": ["error", "unix"],
"no-console": "off",
"camelcase": [
"error",
{
"properties": "never",
"ignoreDestructuring": true
}
]
}
}
9 changes: 9 additions & 0 deletions .gitignore
@@ -1 +1,10 @@
*.env*
node_modules
.idea
data
.vscode
**/addrbook.json
**/priv_validator.json.bak
**/priv_validator_key.json
**/write-file-atomic-*
**/vendor
2 changes: 2 additions & 0 deletions .prettierignore
@@ -0,0 +1,2 @@
ui/build/*
ui/node_modules/*
5 changes: 5 additions & 0 deletions .prettierrc
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"semi": false,
"printWidth": 120
}
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -31,4 +31,9 @@ burn:
## simnet : Spin up a simnet network
.PHONY : simnet
simnet:
@cd ./simnet && node start-simnet.js
@cd ./simnet && node start-simnet.js

## simnet-verbose : Spin up a simnet network with verbose logging of errors
.PHONY : simnet-verbose
simnet-verbose:
@cd ./simnet && node start-simnet.js --verbose
4 changes: 4 additions & 0 deletions docker/lnd/start-lnd.sh
Expand Up @@ -88,6 +88,10 @@ if [[ -n $TLSEXTRADOMAIN ]]; then
PARAMS="$PARAMS --tlsextradomain=$TLSEXTRADOMAIN"
fi

if [[ -n $PUBLICIP ]]; then
PARAMS="$PARAMS --tlsextraip=$PUBLICIP"
fi

if [[ -n $NOSEEDBACKUP ]]; then
PARAMS="$PARAMS --noseedbackup"
fi
Expand Down
18 changes: 18 additions & 0 deletions package.json
@@ -0,0 +1,18 @@
{
"name": "boltbox",
"version": "0.0.1",
"description": "We aim to create easy to deploy and manage lightning infrastructure for software developers",
"repository": "git@github.com:Tierion/boltbox.git",
"author": "Buck Perley <bucko.perley@gmail.com>",
"license": "MIT",
"private": true,
"scripts": {
"lint": "eslint ./**/*.js --fix"
},
"devDependencies": {
"eslint": "6.5.1",
"eslint-config-prettier": "6.3.0",
"eslint-plugin-prettier": "3.1.1",
"prettier": "1.18.2"
}
}

0 comments on commit cce707d

Please sign in to comment.