Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial query extraction using AST #553

Merged
merged 16 commits into from
Aug 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,28 @@ jobs:
- run: npm install --ignore-scripts
- run: npm run lint

Query Check:
docker: [{ image: "circleci/node:8" }]
steps:
- *run_install_desired_npm
- checkout
- restore_cache:
keys:
# When lock file changes, use increasingly general patterns to restore cache
- npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-v1-{{ .Branch }}-
- npm-v1-
- run: npm --version
- run: npm install
- run: ./packages/apollo/bin/run queries:check --queries="packages/apollo/src/operations/*" --key=$STAGING_API_KEY --engine=https://engine-staging-graphql.apollographql.com/api/graphql
- save_cache:
key: npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
# This should cache the npm cache instead of node_modules, which is needed because
# npm ci actually removes node_modules before installing to guarantee a clean slate.
- ~/.npm
- run: npm run circle

ignore_doc_branches: &ignore_doc_branches
filters:
branches:
Expand All @@ -75,3 +97,5 @@ workflows:
<<: *ignore_doc_branches
- Linting:
<<: *ignore_doc_branches
- Query Check:
<<: *ignore_doc_branches
177 changes: 170 additions & 7 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion packages/apollo-codegen-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
},
"dependencies": {
"@babel/generator": "7.0.0-beta.38",
"@babel/parser": "^7.0.0",
"@babel/types": "7.0.0-beta.38",
"ast-types": "^0.11.5",
"common-tags": "^1.5.1",
"core-js": "^2.5.3"
"core-js": "^2.5.3",
"recast": "^0.15.3"
},
"jest": {
"testEnvironment": "node",
Expand Down
Loading