Commit graph

357 commits

Author SHA1 Message Date
Jesse Rosenberger
c07c7921c2
Reimplement Jest coverage tests and reporting via codecov.
This adds the `--coverage` flag to the `test:ci` (Jest) script, in addition to
adding two new commands (mirroring the pattern used in Apollo Client's
repository): `npm run coverage` and `npm run coverage:upload`.

CircleCI has been configured with the appropriate `CODECOV_TOKEN`.
2018-09-26 14:32:52 +03:00
Jesse Rosenberger
0a60ad02a7
Switch to shorter shorthand "repository" notation.
This file is already a bit too unergonomic, and any little bit might help.
2018-09-26 14:32:52 +03:00
Jesse Rosenberger
2fdf7b019f
Group similar npm-scripts together for clarity. 2018-09-26 14:32:49 +03:00
Jesse Rosenberger
4bc253a942
Make npm run clean cross-OS (and faster) with git clean.
Rather than using platform-specific `find` and `rm`, we can leverage `git
clean` which will also work on Windows (in addition to making this command
more succinct).

This also runs in a fraction of the time than the `find` + `rm` approach.
2018-09-26 14:32:11 +03:00
Jesse Rosenberger
2733189462
Move prettier file globs into .prettierrc.js file.
This allows us to DRY up the `package.json` file and allows editors which
understand Prettier support to be aware of exactly which files are meant to
be covered, rather than including it within the CLI flags.
2018-09-26 14:32:09 +03:00
Jesse Rosenberger
f7d479b907
Make npm run testonly the alias for npm test, not the other way around.
This is closer to removing `npm run testonly` which seems less intuitive
than it could be since, grammatically speaking, the `npm test` command
implies that it's only doing testing, not also recompilation.

Testing environments should already be configured to run `npm install`
followed by `npm test` (or the shorthands: `npm install-test` and `npm it`)

Therefore, if someone _wants_ the full recompilation running `npm it` again
will replicate the behavior previously accomplished by `npm test`.  I find
this more intuitive since the `npm install` step was already doing the
complication (and necessary to produce a functioning Apollo Server monorepo).

And similarly, `npm test` now just runs the tests, rather than the more
expensive recompilation.  This should become even more useful when we move
to a pattern where `tsc` incremental building is implemented.
2018-09-26 14:31:33 +03:00
renovate[bot]
bc9ea7c3df chore(deps): pin dependency koa to 2.5.3 (#1706)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| koa | devDependencies | pin | `^2.5.3` -> `2.5.3` | [source](https://renovatebot.com/gh/koajs/koa) |

📌 **Important**: Renovate will wait until you have merged this Pin PR before creating any *upgrade* PRs for the affected packages. Add the preset `:preserveSemverRanges` your config if you instead don't wish to pin dependencies.

---

### Renovate configuration

📅 **Schedule**: PR created on schedule "after 6pm every weekday,before 8am every weekday" in timezone America/Los_Angeles

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Renovate will keep this PR updated whenever it falls behind the base branch.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://renovatebot.com/gh/renovatebot/config-help/issues) if that's undesired.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#apollographql/apollo-server).
2018-09-26 11:46:16 +03:00
Renovate Bot
b4110acf42 chore(deps): update dependency redis-mock to v0.33.0 2018-09-25 15:47:24 +00:00
Renovate Bot
568d6fd7f2 chore(deps): update dependency hapi to v17.6.0 2018-09-25 11:40:55 +00:00
Renovate Bot
4f1840db39 chore(deps): update dependency @types/node to v10.11.0 2018-09-25 05:50:25 +00:00
Renovate Bot
b89d47f8d4 chore(deps): update dependency @types/graphql to v14.0.1 2018-09-25 03:50:39 +00:00
Jesse Rosenberger
8e594d47f5
Revert #1698 renovate/graphql tools 4.x (#1716)
I'm reverting apollographql/apollo-server#1698 not because it's been problematic in any way, but because I'd like to give it a bit more thought and don't want this to accidentally get cut into a release prior to that consideration.

More specifically: The `graphql-tools` update on its own shouldn't really cause any problems, but the [4.x version of `graphql-tools`](https://github.com/apollographql/graphql-tools/releases/tag/4.0.0) is intended to support and enable the latest `graphql@14` which contains [breaking changes](https://github.com/graphql/graphql-js/releases/tag/v14.0.0).

I believe most of those breaking changes would be show-stoppers and the failures would surface immediately (meaning that servers would completely fail to start, rather than being a surprise in other, more delayed scenarios), but it's still worth pausing and carefully considering versioning to avoid any surprises.

That said, the 14.x version of `graphql` has been an acceptable range in the `peerDependencies` of `apollo-server-*` since before its final release came out, and I don't believe we've caught wind of anything that a major version bump would have prevented or made more clear.  In the end, `graphql` is a peer dependency and any problems should only surface if consumers also update their `graphql` dependency — a clear major version bump, which deserves review by the upgrader — so perhaps we can avoid bumping the major version after all?

Input welcomed, but again, merging this now to give this a bit more thought first.

cc @hwillson
2018-09-24 20:47:18 +03:00
Renovate Bot
4378b30861 chore(deps): update dependency hapi to v17.5.5 2018-09-24 09:44:46 +00:00
Renovate Bot
fe3466768b chore(deps): update dependency @types/node to v10.10.3 2018-09-22 14:00:33 +00:00
Hugh Willson
dd86fa8a29 Re-enable Typescript esModuleInterop (#1699)
`esModuleInterop` was enabled in
e4164c8892
to help with importing from packages that use default exports.
Those changes were reverted in
https://github.com/apollographql/apollo-server/pull/1210
to work around a few reported issues. Those issues are no longer
relevant, so this commit re-enables `esModuleInterop`, and
updates all default imports to use the more common (standard)
import syntax.
2018-09-21 16:43:33 +03:00
Renovate Bot
a88166887b chore(deps): update dependency @types/micro to v7.3.2 2018-09-21 04:54:19 +00:00
renovate[bot]
f2a4673006 chore(deps): update dependency graphql-tools to v4 (#1698) 2018-09-20 17:13:03 +03:00
Renovate Bot
b96dd59e78 chore(deps): update dependency @types/koa-router to v7.0.32 2018-09-20 11:59:39 +00:00
renovate[bot]
32b5e5dc26 chore(deps): update dependency yup to v0.26.6 (#1696)
<p>This Pull Request updates devDependency <code>yup</code> (<a href="https://renovatebot.com/gh/jquense/yup">source</a>) from <code>v0.26.5</code> to <code>v0.26.6</code></p>
<p><strong>Note</strong>: This PR was created on a configured schedule ("after 6pm every weekday,before 8am every weekday" in timezone <code>America/Los_Angeles</code>) and will not receive updates outside those times.</p>
<p><details><br />
<summary>Release Notes</summary></p>
<h3 id="v0266httpsgithubcomjquenseyupcomparev0265v0266"><a href="https://renovatebot.com/gh/jquense/yup/compare/v0.26.5…v0.26.6"><code>v0.26.6</code></a></h3>
<p><a href="https://renovatebot.com/gh/jquense/yup/compare/v0.26.5…v0.26.6">Compare Source</a></p>
<hr />
<p></details></p>
<hr />
<p>This PR has been generated by <a href="https://renovatebot.com">Renovate Bot</a>.</p>
2018-09-20 14:38:26 +03:00
renovate[bot]
b013f50d20 chore(deps): update dependency prettier to v1.14.3 (#1693) 2018-09-20 14:38:07 +03:00
Renovate Bot
1cd33c60dd chore(deps): update dependency subscriptions-transport-ws to v0.9.15 2018-09-19 05:42:38 +00:00
Renovate Bot
6db5b7ae90 chore(deps): update dependency @types/node to v10.10.1 2018-09-18 13:57:51 +00:00
Renovate Bot
8446ce412a chore(deps): update dependency apollo-link-http to v1.5.5 2018-09-17 13:09:38 +00:00
Renovate Bot
9489a222d7 chore(deps): update dependency @types/node to v10.10.0 2018-09-17 10:02:57 +00:00
Renovate Bot
99d735664e chore(deps): update dependency apollo-link to v1.2.3 2018-09-17 09:02:30 +00:00
Renovate Bot
717e7bc791 chore(deps): update dependency lerna to v3.4.0 2018-09-15 06:23:45 +00:00
Renovate Bot
b42980da40 chore(deps): update dependency @types/aws-lambda to v8.10.13 2018-09-14 06:00:52 +00:00
Renovate Bot
520f910672 chore(deps): update dependency lerna to v3.3.2 2018-09-13 03:34:41 +00:00
Renovate Bot
e49e17295f chore(deps): update dependency lerna to v3.3.1 2018-09-12 09:08:49 +00:00
Renovate Bot
953bc452c9 chore(deps): update dependency yup to v0.26.5 2018-09-12 06:22:09 +00:00
Renovate Bot
5687b33d66 chore(deps): update dependency jest-matcher-utils to v23.6.0 2018-09-10 17:10:31 +00:00
Renovate Bot
a44610c801 chore(deps): update dependency jest to v23.6.0 2018-09-10 15:32:22 +00:00
Renovate Bot
0d438a746f chore(deps): update dependency @types/jest to v23.3.2 2018-09-08 04:16:36 +00:00
Renovate Bot
8875022a4c chore(deps): update dependency supertest to v3.3.0 2018-09-07 05:28:18 +00:00
Renovate Bot
6e930d21a8 chore(deps): update dependency graphql to v14.0.2 2018-09-07 03:18:37 +00:00
renovate[bot]
db945a4ef0 chore(deps): update dependency lerna to v3.3.0 (#1621) 2018-09-06 14:09:32 +02:00
renovate[bot]
c52438315f chore(deps): update dependency @types/graphql to v14 (#1620) 2018-09-06 13:52:24 +02:00
renovate[bot]
6bc97b0b01 chore(deps): update dependency supertest to v3.2.0 (#1618) 2018-09-05 17:25:00 +02:00
Renovate Bot
415d70738d chore(deps): update dependency redis-mock to v0.32.0 2018-09-03 10:37:06 +00:00
Renovate Bot
8b2adc49ad chore(deps): update dependency graphql to v14 2018-09-02 11:50:09 +02:00
Renovate Bot
66ff449bcf chore(deps): pin dependencies 2018-09-01 15:27:00 +02:00
Martijn Walraven
e7f353859e Add test:watch script 2018-09-01 14:01:29 +02:00
Martijn Walraven
1be8547125 Rename npm circle script to test:ci and don't lint 2018-09-01 13:46:36 +02:00
Martijn Walraven
d7e16a0e30 chore(deps): update dependency typescript to v3 2018-09-01 10:39:01 +02:00
Evans Hauser
2657e9b25b
Publish
- apollo-server-cloud-functions@2.0.1
 - apollo-server-cloudflare@2.0.2
 - apollo-server-core@2.0.4
 - apollo-server-express@2.0.4
 - apollo-server-hapi@2.0.4
 - apollo-server-integration-testsuite@2.0.4
 - apollo-server-koa@2.0.4
 - apollo-server-lambda@2.0.4
 - apollo-server-micro@2.0.4
 - apollo-server@2.0.5
2018-08-20 14:17:37 -07:00
Evans Hauser
f7b5d63d03
Publish
- apollo-cache-control@0.2.2
 - apollo-datasource-rest@0.1.3
 - apollo-datasource@0.1.2
 - apollo-engine-reporting-protobuf@0.0.1
 - apollo-engine-reporting@0.0.2
 - apollo-server-cache-memcached@0.1.2
 - apollo-server-cache-redis@0.1.2
 - apollo-server-caching@0.1.2
 - apollo-server-cloudflare@2.0.0-rc.14
 - apollo-server-core@2.0.2
 - apollo-server-env@2.0.2
 - apollo-server-errors@2.0.2
 - apollo-server-express@2.0.2
 - apollo-server-hapi@2.0.2
 - apollo-server-integration-testsuite@2.0.2
 - apollo-server-koa@2.0.2
 - apollo-server-lambda@2.0.2
 - apollo-server-micro@2.0.2
 - apollo-server@2.0.2
 - apollo-tracing@0.2.2
 - graphql-extensions@0.1.2
2018-08-14 11:49:10 -07:00
Martijn Walraven
491a85871d Add top-level clean script to remove all node_modules and dist dirs 2018-08-11 16:45:03 +02:00
Martijn Walraven
40bc73f61f Remove per-package Jest config and replace with single top-level config 2018-08-11 16:45:03 +02:00
Martijn Walraven
9020b7eb25 Use caret version ranges for dev dependencies 2018-08-11 16:45:03 +02:00
Martijn Walraven
b863f206a3 Adjust Jest config for CI 2018-08-11 16:45:03 +02:00