Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
tests: make tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
birkir committed Mar 18, 2019
1 parent 3b00ed1 commit 8e94f31
Show file tree
Hide file tree
Showing 58 changed files with 19,049 additions and 3,538 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,23 @@
version: 2

jobs:
build:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run: yarn run lerna bootstrap
- run: yarn run build
- run: yarn run test:prettier
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
gatsby-source-prismic-graphql/**/*.js
5 changes: 5 additions & 0 deletions .prettierignore
@@ -0,0 +1,5 @@
.cache
node_modules
public
packages/gatsby-source-prismic-graphql/**/*.js
packages/gatsby-source-prismic-graphql/types/*
15 changes: 14 additions & 1 deletion README.md
Expand Up @@ -2,11 +2,23 @@

Source data from Prismic with GraphQL

## Development

```
git clone git@github.com:birkir/gatsby-source-prismic-graphql.git
cd gatsby-source-prismic-graphql
yarn install
yarn setup
yarn dev
```


### Differences from `gatsby-source-prismic`

This plugin will require [graphql enabled](https://prismic.io/blog/graphql-api-alpha-release) in your Prismic instance.

The feature is currently in _alpha_ and not recommended in production. However that being said, by using Gatsby you have the garantee of production builds to never break as they are statically compiled.
The feature is currently in _alpha_ and not recommended in production. However that being said, by using Gatsby you have the garantee of production builds to never break as they are
statically compiled.

## Installing

Expand Down Expand Up @@ -229,3 +241,4 @@ registerResolvers(linkResolver, componentResolver);
This plugin does not have gatsby-plugin-sharp support.

Please raise an issue on GitHub if you have any problems.

8 changes: 0 additions & 8 deletions example/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions example/.prettierrc

This file was deleted.

26 changes: 0 additions & 26 deletions example/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions example/gatsby-browser.js

This file was deleted.

31 changes: 0 additions & 31 deletions example/gatsby-config.js

This file was deleted.

44 changes: 0 additions & 44 deletions example/gatsby-node.js

This file was deleted.

7 changes: 0 additions & 7 deletions example/gatsby-ssr.js

This file was deleted.

37 changes: 0 additions & 37 deletions example/package.json

This file was deleted.

33 changes: 0 additions & 33 deletions example/src/components/header.js

This file was deleted.

51 changes: 0 additions & 51 deletions example/src/components/layout.js

This file was deleted.

11 changes: 0 additions & 11 deletions example/src/pages/404.js

This file was deleted.

37 changes: 0 additions & 37 deletions example/src/pages/index.js

This file was deleted.

17 changes: 0 additions & 17 deletions example/src/utils/linkResolver.js

This file was deleted.

0 comments on commit 8e94f31

Please sign in to comment.