Commit graph

2131 commits

Author SHA1 Message Date
renovate[bot]
ebe8b39d3b chore(deps): update dependency graphql-tools to v4 (#1771) 2018-10-09 11:27:59 +02:00
renovate[bot]
5c115a17f1 chore(deps): update dependency @types/redis to v2.8.7 (#1785) 2018-10-09 11:21:30 +02:00
renovate[bot]
f29ec2ef56 chore(deps): update dependency @types/node to v10.11.5 (#1784) 2018-10-09 11:20:41 +02:00
renovate[bot]
87cdcc3ebf chore(deps): update dependency @types/jest to v23.3.4 (#1783) 2018-10-09 11:19:56 +02:00
Renovate Bot
bf603653a0 chore(deps): update dependency @types/graphql to v14.0.2 2018-10-09 09:02:21 +00:00
Renovate Bot
f920f5f610 chore(deps): update dependency ts-jest to v23.10.4 2018-10-08 13:58:53 +00:00
Jesse Rosenberger
65088d030b
Merge pull request #1772 from apollographql/typescript-project-references
Use TypeScript project references
2018-10-08 12:36:04 +03:00
Martijn Walraven
6654c0d1b7 Remove unused configuration options from tsconfig.test.json 2018-10-06 00:04:03 +02:00
Martijn Walraven
669b35c328 Upgrade ts-jest and fix config 2018-10-05 23:43:46 +02:00
Martijn Walraven
11a13cd3dd Remove apollo-server-env as a project reference
We can't use `apollo-server-env` as a project reference because that requires `composite: true`, and that implies `declaration: true`, which doesn't work for `apollo-server-env` because we need to write our own declaration files for re-exported imports.

This commit also removes `apollo-engine-reporting-protobuf` as a reference, which errored out because it doesn't actually contain any TypeScript code.
2018-10-05 23:05:49 +02:00
Martijn Walraven
8932091e67 Add root level tsconfig.json as entry point 2018-10-05 21:48:49 +02:00
Martijn Walraven
1aee215e68 Switch to tsc --build and remove run scripts from packages 2018-10-05 17:48:34 +02:00
Martijn Walraven
fcaa6ad79d Enable TypeScript project references 2018-10-05 17:47:29 +02:00
Martijn Walraven
5d03ae1650 Update to TypeScript 3.1 2018-10-05 17:18:13 +02:00
Jesse Rosenberger
0ebf8900a0
Have npm run clean also remove the root node_modules.
...Because clean is clean!
2018-10-05 16:23:27 +03:00
Renovate Bot
60f39eb713 chore(deps): update dependency lerna to v3.4.1 2018-10-04 19:51:26 +00:00
Renovate Bot
bb0537b360 chore(deps): update dependency @types/node to v10.11.4 2018-10-04 18:04:16 +00:00
Renovate Bot
097cae5bdc chore(deps): update dependency @types/jest to v23.3.3 2018-10-04 13:49:17 +00:00
Renovate Bot
00a829ebb6 chore(deps): update dependency @types/hapi to v17.6.1 2018-10-04 11:47:33 +00:00
Renovate Bot
d626a7f130 chore(deps): update dependency jest-junit to v5.2.0 2018-10-02 12:00:33 +00:00
Renovate Bot
ade92038a8 chore(deps): update dependency graphql-tag to v2.10.0 2018-10-02 10:14:43 +00:00
renovate[bot]
6fae839afa chore(deps): pin dependencies (#1740)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| codecov | devDependencies | pin | `^3.1.0` -> `3.1.0` | [source](https://renovatebot.com/gh/codecov/codecov-node) |
| jest-junit | devDependencies | pin | `^5.1.0` -> `5.1.0` | [source](https://renovatebot.com/gh/jest-community/jest-junit) |

📌 **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**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

👻 **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-10-02 12:28:05 +03:00
Miguel Dorta
a61413a190 Fix typo (#1745) 2018-10-02 09:29:17 +02:00
Loc Nguyen
32db56169c Use gql tag in typeDef examples that were missing it. Also fix a type in a require statement. (#1756) 2018-10-02 09:28:37 +02:00
Renovate Bot
d2b1e3f9f0 chore(deps): update dependency @types/node to v10.11.3 2018-09-29 06:21:44 +00:00
Renovate Bot
5f89702d9a chore(deps): update dependency @types/node to v10.11.2 2018-09-27 19:00:08 +00:00
Renovate Bot
577e620678 chore(deps): update dependency @types/hapi to v17.6.0 2018-09-27 17:42:06 +00:00
Jesse Rosenberger
0b4e36bede
Update ISSUE_TEMPLATE.md 2018-09-27 14:36:26 +03:00
Jesse Rosenberger
aa9325fe90
Update ISSUE_TEMPLATE.md 2018-09-27 14:33:44 +03:00
Jesse Rosenberger
dc66ed4419
Merge pull request #1730 from apollographql/abernix/test-infra
Adjust testing infrastructure and add code coverage.
2018-09-27 12:45:40 +03:00
Renovate Bot
9e3eeae259 chore(deps): update dependency multer to v1.4.0 2018-09-27 04:40:03 +00:00
Jesse Rosenberger
549a64eec6
Add support for Jest JUnit test output for consumption by CircleCI.
This should hopefully make it easier to quickly identify failing tests
within the CircleCI interface since CircleCI will be able to
programmatically consume the test results.
2018-09-26 22:47:58 +03:00
Jesse Rosenberger
74ca606c8a
Add warning to .circleci/config.yml about Node.js version specific tests.
Hopefully this will act as reminder for the future.  I've used `NODE` here
as a sort of `TODO` so other references in the codebase might be more easily
located.
2018-09-26 22:47:57 +03:00
Jesse Rosenberger
0d6ef264da
Stop using ts-jest's skipBabel option to fix Jest coverage source mapping.
Not only did removing this configuration reveal invalid JavaScript code, it
also fixes the source mapping for the coverage reports so that they report
the coverage details based on the original file rather than the `tsc`
compiled output (JavaScript).

Ref: c9375c405b (invalid top-level `return`)
2018-09-26 22:47:46 +03:00
Jesse Rosenberger
126dac7d3c
prettier: The tragic reformatting associated with c9375c40.
Some changes are easier to mentally consume before they've been prettier'd.

While I'll certainly allow Prettier to do what it wants to do, I've confined
it's changes to this commit for easier reviewability.

Note to the reviewer: this commit is exactly the result of running the
`npm run lint-fix` command on a clean Git working tree.

Ref: c9375c405b
2018-09-26 22:46:49 +03:00
Jesse Rosenberger
c9375c405b
Adjust tests which are Node.js version specific to use describe.skip.
The techniques previously used to skip particular tests for particular
Node.js versions (for example, file uploads, Hapi, etc.) were problematic in
a couple ways:

1. `return`-ing outside a function (say, at the top level of a module) is
   not valid ECMAScript.  While it works in this current state, it only works
   because of Babel's wrapping scope.  As we move toward less and less
   transpiled modules, this would become problematic anyway, but it's a
   short-term blocker for me since I intend on dropping the `skipBabel` option
   we currently pass to` `ts-jest` in its current (`package.json`)
   configuration. (My editor also dislikes top-level `return`, expectedly.)

2. By `return`-ing from a test which we wish to skip conditionally, we avoid
   the awareness which is provided by Jest (automatically) when using its
   built-in `.skip` helpers.  By switching to technique I've employed here,
   we're able to see `<num> skipped` in Jest's output and (rightfully) be able
   to question why something is being skipped.

By using the `atLeastMajorNodeVersion` helper, we'll also be able to more
easily find where this pattern is used in test-cases, to more easily
re-evaluate their use-cases when we add support newer Node.js versions.
2018-09-26 22:44:32 +03:00
Jesse Rosenberger
3c28bcf9d2
Switch all package-lock.json resolutions to use https:// links.
I'm hopeful that the outstanding `http://` links were all artifacts of older
installs which can safely go away.
2018-09-26 14:32:52 +03:00
Jesse Rosenberger
22b0cc2c9e
Reduce the scope of the .gitignore file to be specifically what we need. 2018-09-26 14:32:52 +03:00
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
e0b6e8dd90
Switch .prettierrc to .prettierrc.js for comment support.
Upcoming changes will necessitate this.
2018-09-26 14:31:46 +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
Jesse Rosenberger
d68f518d03
Remove CHANGELOG.md note regarding versioning. (#1704)
Since we’ve moved to independent versioning the statement about every package within this repository being at the same version is no longer true.  While we’ll need to improve our `CHANGELOG.md` story a bit to account for this, it’s best that we remove this statement to avoid confusing library consumers.
2018-09-26 11:56:18 +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