-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use npm publish instead of yarn * Switch CLI to use yarn * Switch to cross-fetch * Style fixes * Adds test suite, updates docs, and makes some minor structural changes * Add linting to cli
- Loading branch information
Showing
11 changed files
with
4,812 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
dist | ||
docker-compose.yml | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
# Cardano GraphQL CLI | ||
## Global install from [npm](https://www.npmjs.com/package/cardano-graphql-cli) | ||
``` | ||
npm i -g | ||
npm i -g cardano-graphql-cli | ||
cgql --help | ||
``` | ||
Also available on [npm](https://www.npmjs.com/package/cardano-graphql-cli) | ||
## Execute without installing using [npx](https://nodejs.dev/the-npx-nodejs-package-runner) | ||
``` | ||
npx cardano-graphql-cli --help | ||
``` | ||
## Build from source using yarn | ||
``` | ||
yarn & yarn add-global | ||
cgql --help | ||
``` | ||
Depending on your local environment, you may need to add the yarn global bin to your PATH. The | ||
following command is useful for a single terminal session: | ||
``` | ||
export PATH="$(yarn global bin):$PATH" | ||
cgql --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
"transform": { | ||
"^.+\\.test.ts?$": "ts-jest" | ||
}, | ||
preset: 'ts-jest' | ||
} |
Oops, something went wrong.