Skip to content

Commit

Permalink
Merge pull request #58 from lightninglabs/main
Browse files Browse the repository at this point in the history
[Releases] v0.1.11-alpha.1
  • Loading branch information
kaloudis authored Aug 4, 2022
2 parents 38fad04 + 6a59ac8 commit 53ca96d
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 23 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
- run: npm ci
- run: npm run build
13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
- run: npm ci
- run: npm run lint
13 changes: 13 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Prettier
on: [push]
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
- run: npm ci
- run: npm run prettier
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.github/**
demos/**
dist/**
lib/types/**
lib/wasm_exec.js
package-lock.json
package.json
README.md
test/**
tsconfig.json
tslint.json
webpack.config.js
14 changes: 7 additions & 7 deletions demos/connect-demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demos/connect-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@lightninglabs/lnc-web": "^0.0.1-alpha.rc2",
"@lightninglabs/lnc-web": "0.1.11-alpha",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
14 changes: 7 additions & 7 deletions demos/kitchen-sink/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demos/kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@lightninglabs/lnc-web": "^0.0.1-alpha.rc2",
"@lightninglabs/lnc-web": "0.1.11-alpha",
"@testing-library/jest-dom": "5.16.2",
"@testing-library/react": "12.1.3",
"@testing-library/user-event": "13.5.0",
Expand Down
6 changes: 4 additions & 2 deletions lib/lnc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ export default class LNC {
} else if (counter > 20) {
clearInterval(interval);
reject(
'Failed to connect the WASM client to the proxy server'
new Error(
'Failed to connect the WASM client to the proxy server'
)
);
}
}, 500);
Expand Down Expand Up @@ -231,7 +233,7 @@ export default class LNC {
log.info('The WASM client is ready');
} else if (counter > 20) {
clearInterval(interval);
reject('Failed to load the WASM client');
reject(new Error('Failed to load the WASM client'));
}
}, 500);
});
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightninglabs/lnc-web",
"version": "0.1.11-alpha",
"version": "0.1.11-alpha.1",
"description": "Lightning Node Connect npm module for web",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -12,12 +12,13 @@
"protoc_version": "3.15.8"
},
"scripts": {
"build": "webpack",
"build": "NODE_ENV=production webpack",
"dev": "webpack --watch --stats-error-details",
"test": "mocha --reporter spec",
"update-protos": "sh scripts/update_protos.sh ${npm_package_config_lnd_release_tag} ${npm_package_config_loop_release_tag} ${npm_package_config_pool_release_tag} ${npm_package_config_faraday_release_tag}",
"generate": "sh scripts/generate_types.sh ${npm_package_config_lnd_release_tag} ${npm_package_config_loop_release_tag} ${npm_package_config_pool_release_tag} ${npm_package_config_faraday_release_tag} ${npm_package_config_protoc_version}",
"prettier": "prettier --check --write '**/*.ts*' '!dist/**' '!lib/types/**'",
"prettier": "prettier --check '**/*.ts*'",
"prettier-write": "prettier --check --write '**/*.ts*'",
"lint": "tslint -p tsconfig.json",
"prepare": "npm run build",
"prepublishOnly": "npm run lint",
Expand Down
16 changes: 16 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"extends": ["tslint:recommended", "tslint-config-prettier"],
"rules": {
"max-line-length": {
"options": [120]
},
"new-parens": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
"no-console": {
"severity": "warning",
"options": ["debug", "info", "log", "time", "timeEnd", "trace"]
},
"no-unused-variable": true
},
"linterOptions": {
"exclude": [
"dist",
Expand All @@ -8,3 +23,4 @@
]
}
}

0 comments on commit 53ca96d

Please sign in to comment.