' + codeToInclude + '
';
- type(`Please ensure that ${strict} is enabled on: ${files}`);
- }
-};
-
-const authors = commits.map(x => x.author && x.author.login);
-const isBot = authors.some(x => ['greenkeeper', 'renovate'].indexOf(x) > -1);
-
-if (!isBot) {
- // Rules
- // When there are app-changes and it's not a PR marked as trivial, expect
- // there to be CHANGELOG changes.
- const changelogChanges = includes(modified, 'Changelog.md');
- if (modifiedAppFiles.length > 0 && !trivialPR && !changelogChanges) {
- fail('No CHANGELOG added.');
- }
-
- // No PR is too small to warrant a paragraph or two of summary
- if (pr.body.length === 0) {
- fail('Please add a description to your PR.');
- }
-
- const hasAppChanges = modifiedAppFiles.length > 0;
-
- const hasTestChanges = modifiedTestFiles.length > 0;
-
- // Warn when there is a big PR
- const bigPRThreshold = 500;
- if (danger.github.pr.additions + danger.github.pr.deletions > bigPRThreshold) {
- warn(':exclamation: Big PR');
- }
-
- // Warn if there are library changes, but not tests
- if (hasAppChanges && !hasTestChanges) {
- warn(
- "There are library changes, but not tests. That's OK as long as you're refactoring existing code",
- );
- }
-
- // Be careful of leaving testing shortcuts in the codebase
- const onlyTestFiles = modifiedTestFiles.filter(x => {
- const content = fs.readFileSync(x).toString();
- return (
- content.includes('it.only') ||
- content.includes('describe.only') ||
- content.includes('fdescribe') ||
- content.includes('fit(')
- );
- });
- raiseIssueAboutPaths(fail, onlyTestFiles, 'an `only` was left in the test');
-}
diff --git a/examples/base/.env b/examples/base/.env
new file mode 100644
index 0000000000..6f809cc254
--- /dev/null
+++ b/examples/base/.env
@@ -0,0 +1 @@
+SKIP_PREFLIGHT_CHECK=true
diff --git a/examples/base/README.md b/examples/base/README.md
index 8266b6cf1c..52a99fc141 100644
--- a/examples/base/README.md
+++ b/examples/base/README.md
@@ -4,5 +4,3 @@
npm install
npm start
```
-
-This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
diff --git a/examples/base/package.json b/examples/base/package.json
index 5a987a4596..c3cc5b5e08 100644
--- a/examples/base/package.json
+++ b/examples/base/package.json
@@ -3,10 +3,10 @@
"version": "0.1.0",
"private": true,
"dependencies": {
+ "@apollo/react-hoc": "beta",
"apollo-boost": "^0.4.0",
- "react": "^16.3.0",
- "react-apollo": "../../lib",
- "react-dom": "^16.3.0",
+ "react": "../../node_modules/react",
+ "react-dom": "../../node_modules/react-dom",
"react-scripts": "2.1.8"
},
"scripts": {
diff --git a/examples/base/public/favicon.ico b/examples/base/public/favicon.ico
deleted file mode 100644
index 5c125de5d8..0000000000
Binary files a/examples/base/public/favicon.ico and /dev/null differ
diff --git a/examples/base/public/index.html b/examples/base/public/index.html
index 7bee027101..f93133dc78 100644
--- a/examples/base/public/index.html
+++ b/examples/base/public/index.html
@@ -1,24 +1,12 @@
-
+
-
-
-
-
-
-
-
+
+
+
Loading ...
+ ) : ( +Model | +Year | +Stock | +
---|---|---|
{inventory.model} | +{inventory.year} | +{inventory.stock} | +
- stub -
++ stub +
+