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

Retire try.html and various frontend cleanup #1194

Merged
merged 14 commits into from
Oct 28, 2017
Merged

Retire try.html and various frontend cleanup #1194

merged 14 commits into from
Oct 28, 2017

Conversation

paulmelnikow
Copy link
Member

Followup from #1163

@paulmelnikow paulmelnikow added the developer-experience Dev tooling, test framework, and CI label Oct 21, 2017
Makefile Outdated
cat frontend/fragments/try-header.html build/badge-examples-fragment.html frontend/fragments/try-footer.html > try.html && \
cat try.html | $(SED) "s,(<img src=')(/[^'\?]+)',\1https://img.shields.io\2?maxAge=2592000'," \
cat frontend/fragments/try-header.html build/badge-examples-fragment.html frontend/fragments/try-footer.html \
| $(SED) "s,(<img src=')(/[^'\?]+)',\1https://img.shields.io\2?maxAge=2592000'," \
| $(SED) "s,(<img src=')(/[^'\?]+\?[^']+)',\1https://img.shields.io\2\&maxAge=2592000'," \
| $(SED) "s,<span id='imgUrlPrefix'>,&https://img.shields.io," \
Copy link
Member Author

Choose a reason for hiding this comment

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

Would be nice to make handle this in code, with a flag that indicates a dev or production build.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's clear that a flag needs to happen before this can be merged. These sed transforms shouldn't happen in development.

# Conflicts:
#	Makefile
#	try.html
- Move config for badge examples into the JS build
- Move the prod transform into npm scripts
    - I had trouble setting environment variables in make, and while I don’t love this it seems simpler than wrestling with make.
    - In the future this could be handled using a bundler plugin
- make website builds production build as before
@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 27, 2017 19:16 Inactive
@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 27, 2017 19:17 Inactive
@paulmelnikow paulmelnikow had a problem deploying to shields-staging-pr-1194 October 27, 2017 19:20 Failure
@paulmelnikow paulmelnikow had a problem deploying to shields-staging-pr-1194 October 27, 2017 19:24 Failure
@paulmelnikow paulmelnikow had a problem deploying to shields-staging-pr-1194 October 27, 2017 19:25 Failure
@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 27, 2017 19:27 Inactive
@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 27, 2017 19:27 Inactive
- It’s portable and tested, and sed in the package.json is not
@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 27, 2017 20:02 Inactive
@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 27, 2017 20:20 Inactive
@paulmelnikow
Copy link
Member Author

This is looking pretty good to me.

@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-1194 October 28, 2017 17:58 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer-experience Dev tooling, test framework, and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant