Skip to content

Commit 3a72faf

Browse files
committed
Read logoHref from snow res.locals for apple-touch-icon for PWAs
1 parent b883a3d commit 3a72faf

File tree

5 files changed

+95
-7
lines changed

5 files changed

+95
-7
lines changed

CHANGELOG-FRONTIER.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 8.10.5
2+
3+
- Add intelligence to `layout.ejs` to use the correct icon for PWAs saved to homescreen.
4+
- Update package.json to use `prepublishOnly` to run modernizr on layout.
5+
- Update `README-FRONTIER.md` to reflect the correct steps for testing local changes to `react-scripts`.
6+
17
## 8.10.4
28

39
- Add @emotion/babel-plugin for cypress tests in apps

README-FRONTIER.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ That being said, if you want to use our fork "manually", then here is how you do
1616
If you have cloned this repo and made changes locally and want to test them before committing and publishing here is how.
1717

1818
1. Clone this repo and make any changes needed in `./packages/react-scripts/`
19-
2. Change directories to where you want a brand new app to be created in (don't run step 3 in an existing repo)
20-
3. Run the following command
19+
2. In the `react-scripts` directory run `npm install`.
20+
3. Change directories to where you want a brand new app to be created in (don't run step 4 in an existing repo)
21+
4. Run the following command
2122
`npx create-react-app --use-npm --template @fs/cra-template --scripts-version file:${relativePathToYourClonedCreateReactAppRepo}/packages/react-scripts ${your-app-name} `
2223

24+
2325
## Development and Cutting a Release
2426

2527
- All development will be done from the frontierMaster branch

package-lock.json

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-scripts/layout/views/layout.ejs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
<meta name="description" content="Discover your family history. Explore the world’s largest collection of free family trees, genealogy records and resources.">
1515
<meta name="google-site-verification" content="VJlFQrAXTCBy0PqVi23EsGD-mpA5KaBhIt8LkrcRbP0" />
1616
<link href="https://edge.fscdn.org/assets/docs/fs_logo_favicon_sq.png" rel="icon" type="image/x-icon" />
17-
<link rel="apple-touch-icon" href="https://edge.fscdn.org/assets/components/hf/assets/img/tree-touch-icon-11024a277f1fda5735de5a9f0f4f75ca.png" />
18-
17+
18+
<!-- icon used for PWAs saved to homescreen -->
19+
<link rel="apple-touch-icon" href="<%= typeof logoHref !== 'undefined' ? logoHref : 'https://edge.fscdn.org/assets/components/hf/assets/img/tree-touch-icon-11024a277f1fda5735de5a9f0f4f75ca.png' %>" />
20+
1921
<% if (typeof manifestJsonExists === 'undefined' || manifestJsonExists) { %>
2022
<link rel="manifest" href="<%= typeof appPathOverride !== 'undefined' ? appPathOverride : appPath('') %>/manifest.json" type="application/manifest+json" crossorigin="use-credentials" />
2123
<% } %>

packages/react-scripts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fs/react-scripts",
3-
"version": "8.10.4",
3+
"version": "8.10.5",
44
"upstreamVersion": "5.0.1",
55
"description": "Configuration and scripts for Create React App.",
66
"repository": {
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"prettier": "npx prettier --arrow-parens always --single-quote --trailing-comma es5 --print-width 120 --no-semi --write \"template*/**/*.js\"",
2020
"fs-publish": "npmPublish",
21-
"prepare": "modernizr -c modernizr-config.json -d layout"
21+
"prepublishOnly": "npx modernizr -c modernizr-config.json -d layout"
2222
},
2323
"files": [
2424
"bin",

0 commit comments

Comments
 (0)