Skip to content

Commit b9b47dd

Browse files
committed
fix: update meta-schema + add circleci configs
1 parent c159134 commit b9b47dd

13 files changed

Lines changed: 8743 additions & 6027 deletions

File tree

.circleci/config.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
version: 2
2+
3+
aliases:
4+
# -------------------------
5+
# ALIASES: Caches
6+
# -------------------------
7+
- &restore-deps-cache
8+
key: deps-cache-{{ checksum "package.json" }}
9+
10+
- &save-deps-cache
11+
key: deps-cache-{{ checksum "package.json" }}
12+
paths:
13+
- ~/project/node_modules
14+
15+
# -------------------------
16+
# ALIASES: Branch Filters
17+
# -------------------------
18+
- &filter-only-master
19+
branches:
20+
only: master
21+
- &filter-only-semantic-pr
22+
branches:
23+
only: /^(pull|fix|feat|dependabot)\/.*$/
24+
25+
defaults: &defaults
26+
working_directory: ~/project
27+
28+
jobs:
29+
test:
30+
<<: *defaults
31+
docker:
32+
- image: circleci/node:10
33+
steps:
34+
- checkout
35+
- restore_cache: *restore-deps-cache
36+
- run: npm install
37+
- run: npm install codecov
38+
- run: npm test
39+
- run: ./node_modules/.bin/codecov
40+
- save_cache: *save-deps-cache
41+
42+
build:
43+
<<: *defaults
44+
docker:
45+
- image: circleci/node:10
46+
steps:
47+
- checkout
48+
- restore_cache: *restore-deps-cache
49+
- run: npm install
50+
- run: npm run build
51+
- save_cache: *save-deps-cache
52+
53+
release:
54+
<<: *defaults
55+
docker:
56+
- image: circleci/node:10
57+
steps:
58+
- checkout
59+
- restore_cache: *restore-deps-cache
60+
- run: npm install
61+
- run: npm run build
62+
- run: npm install semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/commit-analyzer @semantic-release/release-notes-generator
63+
- run: git checkout package.json package-lock.json
64+
- run: ./node_modules/.bin/semantic-release
65+
- save_cache: *save-deps-cache
66+
67+
workflows:
68+
version: 2
69+
analysis:
70+
jobs:
71+
- test:
72+
filters: *filter-only-semantic-pr
73+
- build:
74+
filters: *filter-only-semantic-pr
75+
76+
release:
77+
jobs:
78+
- test:
79+
filters: *filter-only-master
80+
- build:
81+
filters: *filter-only-master
82+
- release:
83+
filters: *filter-only-master
84+
requires:
85+
- test
86+
- build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
/.nyc_output
44
/dist
55
/lib
6-
/package-lock.json
76
/tmp
7+
build
88
node_modules

.releaserc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"tagFormat": "${version}",
3+
"branch": "master",
4+
"plugins": [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
"@semantic-release/changelog",
8+
"@semantic-release/github",
9+
"@semantic-release/git",
10+
"@semantic-release/npm"
11+
],
12+
"verifyConditions": [
13+
"@semantic-release/changelog",
14+
"@semantic-release/npm",
15+
"@semantic-release/git",
16+
"@semantic-release/github"
17+
],
18+
"publish": [
19+
"@semantic-release/github",
20+
"@semantic-release/npm"
21+
],
22+
"success": [
23+
"@semantic-release/github"
24+
],
25+
"fail": [
26+
"@semantic-release/github"
27+
]
28+
}

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# openrpc-cli
22

3-
[![Build Workflow Status](https://github.com/habenamare/bounty-openrpc-project/workflows/Build/badge.svg)](https://github.com/habenamare/bounty-openrpc-project/actions)
4-
53
> a command line tool for OpenRPC
64
75
# Table of Contents
@@ -26,7 +24,7 @@ cd bounty-openrpc-project
2624
npm install # If using `npm`
2725
yarn # If using `yarn`
2826

29-
./bin/run # Run the openrpc-cli program
27+
./bin/run # Run the openrpc-cli program
3028
```
3129

3230
<p align="center">
@@ -105,7 +103,7 @@ $ openrpc-cli inspect FILE
105103
<img src="demo-gifs/inspect.gif" width="700px" >
106104
</p>
107105

108-
When connecting to a server, the following protocols are supported.
106+
When connecting to a server, the following protocols are supported.
109107
- HTTP/HTTPS
110108
- WebSocket
111109

@@ -135,8 +133,11 @@ This project is inspired by [swagger-cli](https://github.com/APIDevTools/swagger
135133
| [JSON Schema $Ref Parser](https://github.com/APIDevTools/json-schema-ref-parser) | MIT License |
136134
| [oclif](https://github.com/oclif/oclif) | MIT License |
137135
| [OpenRPC Client JS](https://github.com/open-rpc/client-js) | Apache License 2.0 |
138-
| [tslib](https://github.com/Microsoft/tslib) | BSD Zero Clause License |
139136

140137
# License
141138

142139
This project is under the Apache License 2.0.
140+
141+
# Notes
142+
143+
This project was forked from [https://github.com/etclabscore/bounty-openrpc-project](https://github.com/etclabscore/bounty-openrpc-project) and was authored by: https://github.com/habenamar

0 commit comments

Comments
 (0)