Commit graph

1004 commits

Author SHA1 Message Date
Jesse Rosenberger
9ab276576b
Move Docs Renovate configuration into top-level renovate.json.
As determined in
https://github.com/renovateapp/config-help/issues/23#issuecomment-377202632,
it seems that it's not possible to have this sort of inherited
configuration.  It's possible that when I first introduced this behavior
that this behavior was on its way out (and the breaking change in Renovate
v11 on its way in).

Luckily, Renovate's shared configuration option still allows this to be
relatively painless and our `apollo-docs` shared configuration[0] does most
of the heavy lifting here so there won't be too much Renovate toe-stepping.

If this works well in the `apollo-server` repository, I'll transplant this
change to the other docs repositories[1].

[0] https://github.com/apollographql/renovate-config-apollo-docs
[1] https://github.com/meteor/hexo-theme-meteor
2018-03-29 14:33:35 +03:00
Renovate Bot
2c4af9cfd7 chore(deps): update dependency hexo to v3.7.0 2018-03-29 08:01:52 +00:00
Renovate Bot
adea7faa45 chore(deps): update dependency @types/node to v9.6.1 2018-03-29 07:14:41 +00:00
David Glasser
d4751e2f04 Update status badges for Circle correctly 2018-03-28 14:03:32 -07:00
David Glasser
80bce88b5b Update status badges for Circle 2018-03-28 14:01:46 -07:00
David Glasser
bd2504e04b v1.3.4 2018-03-28 13:57:11 -07:00
David Glasser
7d1165f1e0
All: allow cacheControl: {defaultMaxAge: 5}. (#922) 2018-03-28 13:56:22 -07:00
Renovate Bot
f59accf425 chore(deps): update dependency sinon to v4.4.10 2018-03-28 11:23:54 +00:00
Renovate Bot
ebf892f8cc chore(deps): update dependency typescript to v2.8.1 2018-03-28 09:01:57 +00:00
Renovate Bot
273d5349b4 chore(deps): update dependency @types/graphql to v0.12.7 2018-03-28 07:03:40 +00:00
David Glasser
0f7c1c53b4
Update CHANGELOG for all releases back to v1.1.3 (#915)
There were many missing releases and bullet points as well as inaccurate
ones. For example, it was impossible to figure out that users of Hapi 16 who
want to use Apollo Cache Control needed to use precisely version 1.2.0 of
apollo-server-hapi (which wasn't even mentioned).

Link to CHANGELOG from all READMEs. Add READMEs for the graphql-server-*
packages. Add an explanation of our versioning system to the top of
CHANGELOG.md.
2018-03-27 09:22:13 -07:00
Renovate Bot
d8b09fbba0 chore(deps): update dependency sinon to v4.4.9 2018-03-27 08:02:28 +00:00
Jesse Rosenberger
19d04ff7f7
v1.3.3 2018-03-26 17:20:44 +03:00
Jesse Rosenberger
ba45c990fd
Be more specific as to which files are run with lint-staged.
Ignoring the fact that the `.js*` was already _inclusive_ of `*.json`, we no
longer want `*.json` files linted (see [0] for more information), and I'm
not even sure why we would want to cover `*.md` rather than just `*.md`
(planning for a future markdown format?).

[0]: d4becdf6be
2018-03-26 17:16:17 +03:00
Jesse Rosenberger
b7ce84185d
Update CHANGELOG.md for v1.3.3 prior to publishing. 2018-03-26 16:50:56 +03:00
Jesse Rosenberger
0ba31fd965 Re-word CHANGELOG.md message for #733. 2018-03-26 15:40:09 +03:00
Dan Dean
8954062eec Update CHANGELOG.md 2018-03-26 15:40:09 +03:00
Dan Dean
279054cd99 GRAPHIQL_VERSION 0.11.2 → 0.11.11
This just bumps the version of of GraphiQL to the latest bugfix release.
2018-03-26 15:40:09 +03:00
Jesse Rosenberger
c9537d30e3 docs: Further standardize format of _config.yml files.
Many of these comments are unhelpful anyway and deserve to be maintained in the
"doc docs" (yes, docs for the docs), which live at https://github.com/apollographql/docs-docs/.
2018-03-23 20:08:31 +02:00
Jesse Rosenberger
7e58334839 docs: Remove api keys which are now set globally by apollo-hexo-config.
These are now defined by https://github.com/apollographql/apollo-hexo-config
and no longer necessary to be individually defined in each deployment.
2018-03-23 20:08:31 +02:00
Jesse Rosenberger
06fc7ee5d4 docs: Remove unnecessary handlebars dependency.
This the reason for this unneeded dependency traces back to the `api-box` on
https://github.com/meteor/docs, though its dependency hasn't been necessary on
any other docs deployment, including this one, since then.
2018-03-23 20:08:31 +02:00
Jesse Rosenberger
7d83875306 docs: Remove lodash, which doesn't seem to have ever been used.
I can't find any evidence in any docs deployment that `lodash` ever needed to
be a direct dependency.  It's possible that this is an artifact that once lived
in an early stage of the docs and just propagated out as a result of making new
docs from old docs repositories.  The `theme-example` application should help
set better precedence for this in the future.
2018-03-23 20:08:31 +02:00
Jesse Rosenberger
9500205e59 docs: Remove develop-theme script, now managed elsewhere.
Rather than developing the theme on individual docs deployments, that work
should now be done on the theme repository[0] and the example doc
deployment[1] since those repositories contain the infrastructure for testing
and deploying changes across all docs properties.  More information on
developing the theme can be found on those repository's `README.md`s.

[0] https://github.com/meteor/hexo-theme-meteor
[1] https://github.com/meteor/theme-example
2018-03-23 20:08:31 +02:00
Jesse Rosenberger
42ae12437d docs: Remove unnecessary showdown dependency.
While I'm aware of the need for the `showdown` package for rendering some
content on the Meteor Docs, I'm not aware of any Apollo repository that uses
it.  I've searched through the source, and cannot find any usage.

If there is a repository that uses it directly (in its `scripts/` directory),
it should be switched to using a plugin, which can explicitly declare
`showdown` as a dependency, rather than depending on it at the root of the
repository. (This is how `hexo-typescript-api-box` does it on the
`apollo-client` docs, which has correctly removed the direct dependency.)

Luckily, these repositories now have tests so if any of these fail, we should
know pretty easily and be able to add the dependency back to just those that
need it.
2018-03-23 20:08:31 +02:00
Jesse Rosenberger
616632ffdb docs: Remove unnecessary hexo-generator-* plugins.
Generators are used for generating additional content in Hexo.  While these
are great for making a blog (for example, `hexo-generator-index` to put all
your blog posts on an index page, `hexo-generator-tag` to keep a page updated
with all your trending blog tags, and `hexo-generator-archive` if you want to
store your aging content somewhere where nobody will find it), they don't seem
to be at all necessary for our purposes, which are documentation.

Unfortunately, they are in the default skeleton of a new Hexo project and they
don't seem to have ever been removed from our non-blog docs deployments,
despite the fact that they seem unnecessary.

In an effort to drastically reduce the overhead of maintaining these docs
deployments, I'm removing these as "unnecessary" until proven otherwise.
2018-03-23 20:08:31 +02:00
Renovate Bot
c941702253 chore(deps): update dependency @types/node to v9.6.0 2018-03-23 08:02:26 +00:00
Renovate Bot
a4e2e3e893 chore(deps): update dependency @types/graphql to v0.12.6 2018-03-23 07:02:17 +00:00
Renovate Bot
abb946a123 chore(deps): update dependency @types/aws-lambda to v0.0.34 2018-03-23 06:48:37 +00:00
Renovate Bot
e8058f812d chore(deps): update dependency sinon to v4.4.8 2018-03-22 07:03:34 +00:00
Renovate Bot
d9f1db12bd chore(deps): update dependency apollo-hexo-config to v1.0.5 2018-03-22 06:54:24 +00:00
Sashko Stubailo
4cf8200983
Improve related section (#901) 2018-03-21 13:31:46 -07:00
Renovate Bot
ce49ff6132 chore(deps): update dependency meteor-theme-hexo to v1.0.3 2018-03-21 13:10:06 +00:00
Renovate Bot
0e0663d68e chore(deps): update dependency apollo-hexo-config to v1.0.4 2018-03-21 11:25:12 +00:00
Renovate Bot
92d37794d7 chore(deps): update dependency apollo-hexo-config to v1.0.3 2018-03-21 06:24:12 +00:00
Renovate Bot
13b1d0803d chore(deps): update dependency remap-istanbul to v0.11.0 2018-03-17 10:00:56 +00:00
renovate[bot]
1bf6d1939f chore(deps): update dependency graphql to v0.13.2 (#891) 2018-03-17 11:35:52 +02:00
renovate[bot]
baf312bb6a chore(deps): update dependency meteor-theme-hexo to v1.0.2 (#892) 2018-03-17 11:18:14 +02:00
renovate[bot]
444ad69f56 chore(deps): update dependency nodemon to v1.17.2 (#889) 2018-03-16 15:49:29 +02:00
Renovate Bot
01c6bce7e8 chore(deps): update dependency hapi to v17.2.3 2018-03-16 13:13:56 +00:00
renovate[bot]
a3045fedcb chore(deps): update dependency sinon to v4.4.6 (#890) 2018-03-16 14:20:51 +02:00
renovate[bot]
5eae20e92f chore(deps): update dependency @types/graphql to v0.12.5 (#887) 2018-03-16 14:06:15 +02:00
Lukwago Allan
c9a372839d Re-export out GraphQLOptions in apollo-server-express (#871)
* Export `GraphQLOptions` type directly from `apollo-server-express`.

Directly export `GraphQLOptions` from the `apollo-server-express` (and
synonymously, `graphql-server-express`) main module, rather than exporting
it only from `./expressApollo`.
2018-03-16 12:48:40 +02:00
renovate[bot]
709f6c227b chore(deps): pin dependency lint-staged to v6.1.1 (#879)
* chore(deps): update dependency lint-staged to v6.1.1

* Keep pinned versions + ensure `lint-staged` remains pre-7.x.

Follows-up on 17eab2d25c.

But makes sure that RenovateApp doesn't update this on our behalf.

Ref: https://renovateapp.com/docs/configuration-reference/configuration-options#allowedversions
2018-03-16 12:44:30 +02:00
Jesse Rosenberger
889f87ca4a
Switch to using CircleCI 2.0 Workflows. (#882)
By using CircleCI 2.0's new Workflow feature, we can more delicately
orchestrate how the test suite runs.

Specifically, we can have individual groups of tests report their status
independently to pull-requests, and react accordingly.  For example, rather
than the linting tests being lumped into the individual tests ran on each
Node.js platform version, we can now run them on their own (and also avoid
unnecessarily running them over and over again for each Node.js version!).

Each jobs test results will be reported to the pull-request directly and, if
desired, the repository's branch merge rules can be modified to allow specific
types of test failures (like linting) to be allowed.

This need for greater test granularity became quite relevant recently when many
of the outstanding PRs on this repository were failing because of "prettier"
failures which were not directly related to the files changed by the PR but
by other changes on the `master` branch.  In order to confidently review and
merge those PRs, it was necessary to look through each PRs four platform
test runs and ensure _each_ was a prettier failure and not something more
substantial.  This manual step left way too much room for error and was not
a confidence builder, at all!

I've also added a new test for the documentation generation to ensure that
no changes in the PR have caused the documentation to not generate, which
would result in stale documentation since the existing documentation would
simply remain in place until the problem was eventually noticed.

As a last benefit, in my observations so far, CircleCI is running more
tests, more quickly and with greater parallelisation than our previous test
provider.  Recently I've seen tests finishing in about two minutes rather than
what was sometimes 5 minutes.
2018-03-16 11:38:39 +02:00
Jesse Rosenberger
721ee0ce37
Further remove .json from prettier-ing.
Follow up on apollographql/apollo-server#886.

Ref: d4becdf6be
2018-03-16 11:09:15 +02:00
Jesse Rosenberger
d4becdf6be
Stop prettier-ing JSON files. (#886)
With a lack of comments and a fairly strict structure, it's arguable if JSON
files were ever meant to be pretty, but the method we're using right now is
a bit futile, especially considering that tools that we use to automatically
update JSON (specifically, package.json) don't run prettier themselves.

The most problematic rule is the 80 characters line limit.

Lines in JSON can be wrapped in, at most, one place: after the colon in the
key.  This means that as soon as a single npm-script declaration exceeds the
line-length rule a second time, it can't be wrapped again, resulting in a
violation of the very rule being enforced.

Clearly, I've always thought that prettying JSON is a bit silly, but the
straw that broke the camel's back here is automated package.json changes by
bots which update the repository via their automated PRs.

Perhaps in a day where the JavaScript package manifest finds a new file
extension (.js?, .yaml, .toml?), it will be able to reap the glitz and glamour
of being eloquently formatted, but until then we'll have to use long-line
wrapping in our editors.

...or shorten our npm scripts.
2018-03-16 10:47:08 +02:00
Sashko Stubailo
2f80d0680e Update index.md (#883) 2018-03-16 10:46:24 +02:00
Jesse Rosenberger
3a0608ebc5
Tick off Prettier checkmarks, which were present on CI but not locally. (#880)
For reasons unbeknownst to me, the changes below were only being complained
about in the CI environment but _not_ when I ran `npm run lint` locally.

It seems partially related to the OS its ran on, so I imagine there might be
some other sub-dependency at play here.  In an effort to fix this, I just
spawned a Ubuntu docker image, checked out this repository and ran the same
`npm run lint`.  This produced identical results to Travis, so I ran
`npm run lint-fix`, then saved the `git diff` results and have applied this
locally.

This should allow us to re-enable `prettier` in CI, though I have plans to
separate that from the actual `npm test` runs.  This should result in a better
workflow for managing PRs.
2018-03-16 10:25:07 +02:00
Sashko Stubailo
489c418efb
Update example.md 2018-03-15 13:05:32 -07:00
apollo-bot[bot]
22e699018d
[apollo-bot] Update the Templates with docs label (#877) 2018-03-14 18:21:52 +00:00