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

docs(Ads): fix rendering in SSR #3218

Merged
merged 4 commits into from
Oct 20, 2018
Merged

docs(Ads): fix rendering in SSR #3218

merged 4 commits into from
Oct 20, 2018

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Oct 15, 2018

Fixes #3225.

This PR:

@codecov-io
Copy link

codecov-io commented Oct 15, 2018

Codecov Report

Merging #3218 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3218   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files         169      169           
  Lines        2790     2790           
=======================================
  Hits         2788     2788           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79fa053...6bebdea. Read the comment docs.

@@ -10,7 +10,7 @@ const Document = ({ Body, children, Head, Html, siteData: { dev, versions } }) =
<meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no' />

<link rel='shortcut icon' type='image/x-icon' href='/logo.png' />
<link rel='stylesheet' href='/style.css' />
<link rel='stylesheet' href={`/style.css?${versions.suir}`} />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We added changes to styles in #3215, but they can be cached because we don't manage these styles by Webpack (i.e. content hash or other hash).

@@ -15,7 +15,8 @@
"scripts": {
"build": "cross-env NODE_ENV=production gulp build",
"build:changelog": "github_changelog_generator --no-issues --no-unreleased --release-branch master --since-tag $(git describe --abbrev=0 --tags $(git rev-parse HEAD~300))",
"build:docs": "gulp --series build:docs",
"build:docs": "cross-env NODE_ENV=production gulp build:docs",
"build:docs:staging": "cross-env STAGING=true yarn build:docs && yarn serve docs/dist",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this for local development? If so, should it be NODE_ENV=development? If not, why not NODE_ENV=staging?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This for testing production build of docs locally

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NODE_ENV=test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main idea that build will be production, so you will have the same result as will be on react.semantic-ui.com, i.e. manual predeployment check.

The current production build cannot be tested locally because it has hardcoded links to react.semantic-ui.com.

So we can't use there NODE_ENV variable, however we can remove this change at all. I thought that it would be useful for you.

Copy link
Member

@levithomason levithomason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted

Signed-off-by: Oleksandr Fediashov <ofediashov@exadel.com>
@@ -1,5 +1,5 @@
require('@babel/register')({
ignore: [/node_modules/, /docs\/dist/],
ignore: [/node_modules/, /docs[\\/]dist/],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added a fix for build on Windows

@layershifter layershifter merged commit d7afd42 into master Oct 20, 2018
@layershifter layershifter deleted the fix/ads branch October 20, 2018 07:44
@layershifter
Copy link
Member Author

@levithomason I merged this PR, feel free to add any changes 👍

@levithomason
Copy link
Member

Released in semantic-ui-react@0.83.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build: A fresh build fails locally
3 participants