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

Overall infrastructure cleanup #3817

Merged
merged 61 commits into from
Aug 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4f7102c
Remove AppVeyor config and references, since it's no longer used
hwillson Aug 15, 2018
e6c9237
We're using codecov not coveralls, so switch the badge
hwillson Aug 15, 2018
82508b2
Designs are no longer managed in this repo
hwillson Aug 15, 2018
ba421c9
Upgrade from AC 1 to 2 is outlined in the official docs
hwillson Aug 15, 2018
429b900
License year update
hwillson Aug 15, 2018
bad4b4f
Move issue triage support png out of project root
hwillson Aug 15, 2018
dd94068
Move danger config into new `config` location
hwillson Aug 15, 2018
0f82a8a
Move codecov config into new config location
hwillson Aug 15, 2018
4d90fb1
Move renovate config into `package.json`
hwillson Aug 15, 2018
d79af16
Move base rollup config into new config location
hwillson Aug 15, 2018
6eb82dd
Move tsconfig.base into new config location
hwillson Aug 15, 2018
2b9efa9
Goodbye Travis badge; Hello Circle badge
hwillson Aug 15, 2018
f5ad982
Move pretter ignore config to new config location
hwillson Aug 15, 2018
a5200c4
Remove all traces of probot
hwillson Aug 15, 2018
355ead1
Dependency updates
hwillson Aug 15, 2018
8cd9380
Set `npm test` to use jest multi runner instead of lerna
hwillson Aug 15, 2018
7947c98
Start committing package lock files
hwillson Aug 15, 2018
e152626
Package lock update
hwillson Aug 15, 2018
48ef3e6
Remove un-needed postinstall (since we're dropping lerna bootstrap)
hwillson Aug 15, 2018
8878c97
Wire up npm file references; Consolidate dev deps
hwillson Aug 15, 2018
a52e759
Rename top level package to avoid name collisions
hwillson Aug 15, 2018
75c9268
Adjust postinstall to build all packages
hwillson Aug 15, 2018
2e6487c
Update and unify all tsconfig's, inheriting from base
hwillson Aug 15, 2018
23288bd
Adjust tslint approach to use one common config
hwillson Aug 15, 2018
716a524
Change tslint config name and wire linting into prepare
hwillson Aug 15, 2018
e721381
Remove redundant prepare step
hwillson Aug 15, 2018
260e4dc
Adjust to show new build/test steps
hwillson Aug 15, 2018
b74f3c1
Remove un-needed packages
hwillson Aug 15, 2018
1442f5a
Circle changes to DRY things up a bit, use lock files, and `npm ci`
hwillson Aug 15, 2018
1e2e682
Circle alias include adjustment
hwillson Aug 15, 2018
691a903
Disable all CI workflows as we troubleshoot them one at a time
hwillson Aug 15, 2018
093a841
Re-arrange CI steps
hwillson Aug 15, 2018
62f122b
Get rid of common CI steps because YAML array handling is grrr
hwillson Aug 15, 2018
4498706
Fix circle indentation
hwillson Aug 15, 2018
d096154
Bump to Node 10 for tests
hwillson Aug 15, 2018
c253d08
Adjust tsconfig to accommodate proper imports
hwillson Aug 15, 2018
fbbf811
Create a new code coverage specific job
hwillson Aug 15, 2018
0415528
Reduce CI jobs to better leverage `npm ci` speed
hwillson Aug 15, 2018
0d597a9
Rename main monorepo job
hwillson Aug 15, 2018
f191cf7
Adjust typescript module generation approach
hwillson Aug 15, 2018
00eac29
Adjust bundle size warning levels
hwillson Aug 15, 2018
bcc6356
Adjust docs job to fire from docs directory
hwillson Aug 15, 2018
e4828da
Update docs package lock
hwillson Aug 15, 2018
378f0f8
Add extra cd into docs
hwillson Aug 15, 2018
652dcc2
Disable coverage to test multi jest worker speed
hwillson Aug 15, 2018
276f9be
Coverage adjustments for CI leveraging jest workers
hwillson Aug 16, 2018
c52a786
Re-enable default jest reporter; adjust jest junit export dir
hwillson Aug 16, 2018
8b442e4
Switch typescript module handling back to `es2015` for rollup
hwillson Aug 16, 2018
c82282c
Use rollup for all packages, getting rid of browserify
hwillson Aug 16, 2018
54895bc
Make sure apollo-utilities are considered global for boost rollup
hwillson Aug 17, 2018
d746e54
Merge branch 'master' into hwillson/infra-cleanup
hwillson Aug 17, 2018
44f58a5
chore: Publish
hwillson Aug 17, 2018
b37faab
chore: Publish
hwillson Aug 17, 2018
8e825da
Adjust rollup configs; Wire up temporary `verify` tag for publish
hwillson Aug 17, 2018
ab7a785
Merge branch 'master' into hwillson/infra-cleanup
hwillson Aug 17, 2018
797a82a
chore: Publish
hwillson Aug 17, 2018
f0644be
Make sure `apollo-client` publish script replaces "file:" references
hwillson Aug 17, 2018
4524d36
chore: Publish
hwillson Aug 17, 2018
e2dfde4
Exclude all rollup configs from published `apollo-boost`
hwillson Aug 17, 2018
adb8ad8
Specify `graphql` as an `apollo-boost` peer dep
hwillson Aug 17, 2018
aa5d083
chore: Publish
hwillson Aug 17, 2018
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
243 changes: 61 additions & 182 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,213 +3,99 @@ version: 2
jobs:
Danger:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
keys:
# When lock file changes, use increasingly general patterns to
# restore cache
- npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-v2-{{ .Branch }}-
- npm-v2-
- run: npm --version
- run: npm ci
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
key: npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
# 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 danger

Docs:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: cd docs && npm install
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: cd docs && npm i && npm run build

Filesize:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: npm run filesize

Typecheck:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: npm run type-check

Apollo Client:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Jest suite
command: npx lerna run --scope=apollo-client -- coverage -- --ci --testResultsProcessor=jest-junit && npm run coverage:upload
environment:
JEST_JUNIT_OUTPUT: "../../reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Apollo Boost:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Jest suite
command: npx lerna run --scope=apollo-boost -- coverage -- --ci --testResultsProcessor=jest-junit && npm run coverage:upload
environment:
JEST_JUNIT_OUTPUT: "../../reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Apollo Cache:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
keys:
# When lock file changes, use increasingly general patterns to
# restore cache
- npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-v2-{{ .Branch }}-
- npm-v2-
- run: npm --version
- run: cd docs && npm ci
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
key: npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- run:
name: Jest suite
command: npx lerna run --scope=apollo-cache -- coverage -- --ci --testResultsProcessor=jest-junit && npm run coverage:upload
environment:
JEST_JUNIT_OUTPUT: "../../reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit
# 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: cd docs && npm run build

Apollo InMemory Cache:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Jest suite
command: npx lerna run --scope=apollo-cache-inmemory -- coverage -- --ci --testResultsProcessor=jest-junit && npm run coverage:upload
environment:
JEST_JUNIT_OUTPUT: "../../reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Apollo Utilities:
Filesize:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
keys:
# When lock file changes, use increasingly general patterns to
# restore cache
- npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-v2-{{ .Branch }}-
- npm-v2-
- run: npm --version
- run: npm ci
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
key: npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- run:
name: Jest suite
command: npx lerna run --scope=apollo-utilities -- coverage -- --ci --testResultsProcessor=jest-junit && npm run coverage:upload
environment:
JEST_JUNIT_OUTPUT: "../../reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit
# 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 filesize

GraphQL Anywhere:
Apollo Client Monorepo:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
- run:
name: install-npm
command: npm install
keys:
# When lock file changes, use increasingly general patterns to
# restore cache
- npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-v2-{{ .Branch }}-
- npm-v2-
- run: npm --version
- run: npm ci
- save_cache:
key: v1-dependency-cache-{{ checksum "package.json" }}
key: npm-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
# 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:
name: Jest suite
command: npx lerna run --scope=graphql-anywhere -- coverage -- --ci --testResultsProcessor=jest-junit && npm run coverage:upload
name: Jest suite with coverage
command: npm run test-ci && npm run coverage:upload
environment:
JEST_JUNIT_OUTPUT: "../../reports/junit/js-test-results.xml"
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- store_artifacts:
Expand All @@ -222,11 +108,4 @@ workflows:
- Danger
- Docs
- Filesize
# XXX fix issues and turn this back on
# - Typecheck
- Apollo Client
- Apollo Boost
- Apollo Cache
- Apollo InMemory Cache
- Apollo Utilities
- GraphQL Anywhere
- Apollo Client Monorepo
12 changes: 0 additions & 12 deletions .github/no-response.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/probot-snooze.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@ npm
# alm editor
.alm

# yarn
yarn.lock

# npm
package-lock.json

# docs
db.json
docs.json
*.log
docs/public/*
!docs/public/_redirects
.idea/

junit.xml
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
scripts
test
typings
.gitignore
.travis.yml
ambient.d.ts
CHANGELOG.md
design.md
Gruntfile.js
tsconfig.json
tslint.json
typings.json
config
17 changes: 0 additions & 17 deletions DESIGNS.md

This file was deleted.

2 changes: 1 addition & 1 deletion ISSUE_TRIAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ We would love to have more contributors who are willing to help out with triagin

All issues follow the flow outlined below. Your job as an issue maintainer is to work with the requester and others within the community towards the goal of having an issue either become 'claimable' or closed. Read on for more details on the process.

![Flowchart](IssueTriageFlow.png "Issue Lifecycle")
![Flowchart](./docs/assets/IssueTriageFlow.png "Issue Lifecycle")

The first step is in determining whether the issue is a bug, help question or feature request. Read on for more details.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 - 2016 Meteor Development Group, Inc.
Copyright (c) 2018 Meteor Development Group, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading