Skip to content

Commit

Permalink
Merge branch 'SRE-124_implement_yarn_workspaces' of github.com:input-…
Browse files Browse the repository at this point in the history
…output-hk/cardano-graphql into SRE-124_implement_yarn_workspaces
  • Loading branch information
sevanspowell committed Jul 1, 2020
2 parents 758ea7f + 32d2692 commit 90bfe57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
3 changes: 3 additions & 0 deletions nix/cardano-graphql.nix
Expand Up @@ -38,18 +38,21 @@ in mkYarnWorkspace {
src = cardano-graphql-src;
};
yarnPreBuild = ''
echo "***** yarnPreBuild *****"
mkdir -p $HOME/.node-gyp/${nodejs.version}
echo 9 > $HOME/.node-gyp/${nodejs.version}/installVersion
ln -sfv ${nodejs}/include $HOME/.node-gyp/${nodejs.version}
#cp -rp ${cardano-graphql-src}/node_modules/.bin ./node_modules/
'';

installPhase = ''
echo "***** installPhase *****"
export PATH="$PATH:$node_modules/.bin"
yarn build
'';

yarnPostBuild = ''
echo "***** yarnPostBuild *****"
#cp -r deps/cardano-graphql/packages/server/dist $out
mkdir -p $out/bin
Expand Down
6 changes: 1 addition & 5 deletions packages/cli/README.md
Expand Up @@ -4,10 +4,6 @@
npm i -g cardano-graphql-cli
cgql --help
```
## 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
Expand All @@ -18,4 +14,4 @@ following command is useful for a single terminal session:
```
export PATH="$(yarn global bin):$PATH"
cgql --help
```
```
11 changes: 0 additions & 11 deletions packages/server/README.md
@@ -1,12 +1 @@
# Cardano GraphQL - Server
```
import { Server } from '@cardano-graphql/server'
const server = new Server({
})
server.listen().then(() => {
})
```
2 changes: 1 addition & 1 deletion packages/util-dev/README.md
@@ -1 +1 @@
# Cardano GraphQL - Base
# Cardano GraphQL - Util Dev

0 comments on commit 90bfe57

Please sign in to comment.