Skip to content

Commit 0db212f

Browse files
authored
Update to Next (#74)
* improve styling for general purpose blog * remove relay generated files from repo * put generated files in gitignore * update netlify build to build relay files * move image-proxy to cloud function * add image proxy to netlify paths * make imageProxy work with Netlify * hack to make image proxy work with netlify * remove unnecessary logging * put .env in .env.example * ignore .env * add missing imageProxy file * cleanup * remove netlify state * add missing file * base64 encode (with url-safe encoding) images * handle emoji names between colons, improve startup * improvements for firebase deploy * handle title * fix flow errors * update .nvmrc * fix netlify.toml redirects * share auth with server * Add issue template * Update issue templates * cleanup * fix Blog title * cleanup * use URL env var if RAZZLE_SITE_HOSTNAME is missing * Better embeds * fix twitter embed on mobile * better routing handling * allow paragraphs in lis * better handling for expired auth * simplify layout * better cache invalidation on login/logout * move cache option to directive * idx -> optional chaining * login/logout in header * fix title * stepan feedback * better handling for avatar query * more margin for reaction smiley * stepan's feedback on button styles * stepan's feedback on button styles * add edit post to options for admins * update deps * update relay to v8 * relay with hooks * Show helpful error message on CORs errors * fix gif handling * don't memoize route to allow refetch on login * add redirects for medium * update netlify redirects to handle medium redirects * reduce header level * fix title and description for rss feed * Slim the build by not including now and firebase deps by default * disable gc * add note about node engine for firebase config * add alias for reason * setup next.js * fixup deploy to netlify * add attribution * add attribution and cleanup flow/eslint * cleanup * better medium redirect * scroll position improvements, comments link, tippy update * cleanup * cleanup scroll handler and meta tags * update onegraph auth for better auth redirects, flow/lint fixes, better reactions on mobile * slightly better scrolling on reactions * better handling of cors error, better link in attribution * google analtyics * update schema * improve head and author * sitemap and robots.txt * better handling of vercel url * add client-only fields * add welcome page * update welcome * update readme * some welcome page improvements * work in progress on vercel deploy button * some improvements for the deploy button * update readme * ensure the repo has a publish label * use sourcecodeshots to build opengraph images * better source code highlighting * simplify highlighting * default to dark-plus, match og:image theme * don't bother with highlighting in rss feeds * fix fallback and twitterUsername lookup * add basepath support * markdown cleanup * prettier * flow/lint fixes, basePath fixes * better description * cleanup description * highlighting for inline code * update with staging deploy * prepare changelog * check in env.local with public env vars * set up full deploy pipeline * fixup cloudbuild yaml * commit changes * try cache-from * cache-from is too complicated for multi-stage builds
1 parent 7d8f42a commit 0db212f

File tree

117 files changed

+191215
-109958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+191215
-109958
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"plugins": ["macros", "babel-plugin-idx"],
3-
"presets": ["razzle/babel", "@babel/preset-flow"]
2+
"plugins": ["macros", "@babel/plugin-proposal-optional-chaining"],
3+
"presets": ["next/babel", "@babel/preset-flow"]
44
}

.circleci/config.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
node_modules
2+
.next
3+
build
4+
.github/
5+
.git/
6+
dist
27
build

.env

Lines changed: 0 additions & 4 deletions
This file was deleted.

.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NEXT_PUBLIC_ONEGRAPH_APP_ID="Your OneGraph App ID"
2+
NEXT_PUBLIC_GITHUB_REPO_OWNER="The owner of the GitHub repo that the issues are stored under"
3+
NEXT_PUBLIC_GITHUB_REPO_NAME="The name of the GitHub repo that the issues are stored under"
4+
NEXT_PUBLIC_TITLE="Title for your blog"
5+
NEXT_PUBLIC_DESCRIPTION="Description for your blog"
6+
NEXT_PUBLIC_SITE_HOSTNAME="Hostname for your blog, e.g. https://example.com"
7+
NEXT_PUBLIC_DEFAULT_GITHUB_LOGIN="The github login for the owner of the blog"
8+
NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID="Optional google analytics id, e.g. UA-28732921-1"
9+
OG_GITHUB_TOKEN="The OneGraph server-side auth token created with OneGraph that has access to GitHub"
10+
OG_DASHBOARD_ACCESS_TOKEN="The OneGraph API token that is allowed to create persisted queries"

.env.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
NEXT_PUBLIC_ONEGRAPH_APP_ID="570a3d6b-6ff3-4b7a-9b0d-fe4cf6384388"
2+
NEXT_PUBLIC_GITHUB_REPO_OWNER="onegraph"
3+
NEXT_PUBLIC_GITHUB_REPO_NAME="onegraph-changelog"
4+
NEXT_PUBLIC_TITLE="OneGraph Product Updates"
5+
NEXT_PUBLIC_DESCRIPTION="Follow along with OneGraph as we take over the world with GraphQL."
6+
NEXT_PUBLIC_SITE_HOSTNAME="https://onegraph.com"
7+
NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID="UA-122815795-1"

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "react-app"
3+
}

.firebaserc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.firebaserc.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"staging": "adslkjflsakdjfklsdjfka"
4+
}
5+
}

.flowconfig

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,44 @@
11
[ignore]
2+
module.system=haste
3+
module.system.haste.use_name_reducers=true
4+
# get basename
5+
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
6+
# strip .js or .js.flow suffix
7+
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
28

3-
[include]
9+
module.system.haste.paths.excludes=.*/__tests__/.*
10+
module.system.haste.paths.excludes=.*/__mocks__/.*
11+
module.system.haste.paths.includes=<PROJECT_ROOT>/node_modules/fbjs/lib/.*
412

5-
[libs]
13+
esproposal.class_static_fields=enable
14+
esproposal.class_instance_fields=enable
15+
esproposal.optional_chaining=enable
616

7-
[lints]
17+
munge_underscores=true
18+
19+
suppress_type=$FlowIssue
20+
suppress_type=$FlowFixMe
21+
suppress_type=$FlowFixMeProps
22+
suppress_type=$FlowFixMeState
23+
24+
well_formed_exports=true
25+
types_first=true
26+
experimental.abstract_locations=true
827

9-
[options]
28+
esproposal.optional_chaining=enable
29+
30+
[lints]
31+
untyped-type-import=error
1032

1133
[strict]
34+
deprecated-type
35+
nonstrict-import
36+
sketchy-null
37+
unclear-type
38+
unsafe-getters-setters
39+
untyped-import
40+
untyped-type-import
41+
42+
[declarations]
43+
<PROJECT_ROOT>/node_modules/.*
44+
.*/__generated__/.*

0 commit comments

Comments
 (0)