Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix(pwa): upgrade forked plugin + fix manifests
Browse files Browse the repository at this point in the history
they worked only for the last locale in the provided array
  • Loading branch information
CanRau committed Apr 22, 2019
1 parent 43a6a39 commit 50aae3d
Show file tree
Hide file tree
Showing 20 changed files with 2,832 additions and 206 deletions.
35 changes: 27 additions & 8 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,39 @@ module.exports = {
resolve: `gatsby-plugin-canonical-urls`,
options: { siteUrl: homepage },
},
// {
// resolve: `@gaiama/gatsby-plugin-manifest`,
// options: {
// manifests: [
// Object.assign({}, sharedManifestProperties, {
// start_url: `/en/?ref=a2hs`,
// // pattern: `^/en/.*$`,
// language: `en`,
// }),
// Object.assign({}, sharedManifestProperties, {
// start_url: `/de/?ref=a2hs`,
// // pattern: `^/de/.*$`,
// language: `de`,
// }),
// ],
// },
// },
{
resolve: `@gaiama/gatsby-plugin-manifest`,
options: {
manifests: [
Object.assign({}, sharedManifestProperties, {
start_url: `/en/?ref=a2hs`,
// pattern: `^/en/.*$`,
language: `en`,
}),
Object.assign({}, sharedManifestProperties, {
{
...sharedManifestProperties,
start_url: `/de/?ref=a2hs`,
// pattern: `^/de/.*$`,
regex: `^/de/.*`,
language: `de`,
}),
},
{
...sharedManifestProperties,
start_url: `/en/?ref=a2hs`,
regex: `^/en/.*`,
language: `en`,
},
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@fortawesome/free-regular-svg-icons": "5.8.1",
"@fortawesome/free-solid-svg-icons": "5.8.1",
"@fortawesome/react-fontawesome": "0.1.4",
"@gaiama/gatsby-plugin-manifest": "2.0.5",
"@gaiama/gatsby-plugin-manifest": "2.0.29",
"@gaiama/query-string": "0.1.0",
"@gaiama/react-video-player": "0.3.0",
"@mdx-js/mdx": "^0.20.3",
Expand Down
6 changes: 6 additions & 0 deletions packages/gatsby-plugin-manifest/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
["babel-preset-gatsby-package", { "browser": true }]
]
}

34 changes: 34 additions & 0 deletions packages/gatsby-plugin-manifest/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
*.un~
yarn.lock
src
flow-typed
coverage
decls
examples
234 changes: 234 additions & 0 deletions packages/gatsby-plugin-manifest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.0.29](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.28...gatsby-plugin-manifest@2.0.29) (2019-04-10)

### Bug Fixes

- **gatsby-plugin-manifest:** fix regression with sharp failing to load ([#13271](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/13271)) ([c264a85](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/c264a85)), closes [#13055](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/13264)

## [2.0.28](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.27...gatsby-plugin-manifest@2.0.28) (2019-04-09)

### Bug Fixes

- **gatsby-plugin-manifest:** allow multiple icon paths ([#13059](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/13059)) ([5dcde0d](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/5dcde0d)), closes [#13055](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/13055)

## [2.0.27](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.26...gatsby-plugin-manifest@2.0.27) (2019-04-08)

**Note:** Version bump only for package gatsby-plugin-manifest

## [2.0.26](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.25...gatsby-plugin-manifest@2.0.26) (2019-03-29)

### Bug Fixes

- **gatsby-plugin-manifest:** ensure icon_options is stripped ([#12907](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12907)) ([201a4f5](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/201a4f5))

## [2.0.25](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.24...gatsby-plugin-manifest@2.0.25) (2019-03-27)

### Bug Fixes

- **gatsby-plugin-manifest:** Fix incorrect favicons size bug ([#12081](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12081)) ([366980b](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/366980b)), closes [#12051](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12051) [#12051](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12051)

### Features

- **gatsby-plugin-manifest:** add icon_options as an option to support the purpose property ([#12794](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12794)) ([127f232](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/127f232)), closes [#12793](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12793)

## [2.0.24](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.23...gatsby-plugin-manifest@2.0.24) (2019-03-12)

### Features

- **gatsby-plugin-manifest:** add cache busting to icon url ([#8343](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/8343)) ([5f656f8](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/5f656f8))

## [2.0.23](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.22...gatsby-plugin-manifest@2.0.23) (2019-03-11)

**Note:** Version bump only for package gatsby-plugin-manifest

## [2.0.22](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.21...gatsby-plugin-manifest@2.0.22) (2019-03-05)

### Bug Fixes

- don't crash if cpu-core-count is not available ([#12332](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/12332)) ([412217d](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/412217d))

## [2.0.21](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.20...gatsby-plugin-manifest@2.0.21) (2019-03-04)

### Features

- **gatsby:** configure physical cores, logical_cores or fixed number ([#10257](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/10257)) ([c51440e](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/c51440e))

## [2.0.20](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.19...gatsby-plugin-manifest@2.0.20) (2019-02-28)

**Note:** Version bump only for package gatsby-plugin-manifest

## [2.0.19](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.18...gatsby-plugin-manifest@2.0.19) (2019-02-22)

### Features

- **gatsby-plugin-manifest:** add option for crossorigin in manifest ([#11953](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/11953)) ([1a16600](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/1a16600))

## [2.0.18](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.17...gatsby-plugin-manifest@2.0.18) (2019-02-19)

### Bug Fixes

- **gatsby-plugin-manifest:** improve SVG->PNG fidelity ([#11608](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/11608)) ([e9345cd](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/e9345cd))

## [2.0.17](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.16...gatsby-plugin-manifest@2.0.17) (2019-02-01)

**Note:** Version bump only for package gatsby-plugin-manifest

## [2.0.16](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.15...gatsby-plugin-manifest@2.0.16) (2019-01-31)

### Features

- **gatsby-plugin-manifest:** make favicon link tag optional ([#11414](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/11414)) ([1af42bc](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/1af42bc))

## [2.0.15](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.14...gatsby-plugin-manifest@2.0.15) (2019-01-29)

**Note:** Version bump only for package gatsby-plugin-manifest

## [2.0.14](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.13...gatsby-plugin-manifest@2.0.14) (2019-01-28)

### Bug Fixes

- **gatsby-plugin-manifest:** Legacy default to true ([#11203](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/11203)) ([7e84613](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/7e84613))

<a name="2.0.13"></a>

## [2.0.13](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.12...gatsby-plugin-manifest@2.0.13) (2018-12-29)

### Features

- **gatsby-plugin-manifest:** add option to remove the "theme color" meta tag ([#10440](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/10440)) ([129c5d8](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/129c5d8))

<a name="2.0.12"></a>

## [2.0.12](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.11...gatsby-plugin-manifest@2.0.12) (2018-12-11)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.11"></a>

## [2.0.11](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.10...gatsby-plugin-manifest@2.0.11) (2018-11-29)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.10"></a>

## [2.0.10](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.9...gatsby-plugin-manifest@2.0.10) (2018-11-21)

### Features

- **gatsby-plugin-manifest:** don't output `theme-color` meta tag if it's not defiened ([#10069](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/10069)) ([7802470](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/7802470))

<a name="2.0.9"></a>

## [2.0.9](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.8...gatsby-plugin-manifest@2.0.9) (2018-11-12)

### Features

- **gatsby-plugin-manifest:** add option to generate apple-touch-icons links ([#7256](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/7256)) ([0b9d656](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/0b9d656)), closes [#5887](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/5887)

<a name="2.0.8"></a>

## [2.0.8](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.7...gatsby-plugin-manifest@2.0.8) (2018-11-08)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.7"></a>

## [2.0.7](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.6...gatsby-plugin-manifest@2.0.7) (2018-10-29)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.6"></a>

## [2.0.6](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.5...gatsby-plugin-manifest@2.0.6) (2018-10-24)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.5"></a>

## [2.0.5](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.4...gatsby-plugin-manifest@2.0.5) (2018-10-09)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.4"></a>

## [2.0.4](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.3...gatsby-plugin-manifest@2.0.4) (2018-09-26)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.3"></a>

## [2.0.3](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-rc.1...gatsby-plugin-manifest@2.0.3) (2018-09-24)

### Bug Fixes

- **gatsby-plugin-manifest:** favicon path respects hybrid mode ([#8315](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/issues/8315)) ([05e7ccd](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/commit/05e7ccd))

<a name="2.0.2"></a>

## [2.0.2](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-rc.1...gatsby-plugin-manifest@2.0.2) (2018-09-17)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-rc.1"></a>

## [2.0.2-rc.1](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-rc.0...gatsby-plugin-manifest@2.0.2-rc.1) (2018-08-29)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-rc.0"></a>

## [2.0.2-rc.0](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.7...gatsby-plugin-manifest@2.0.2-rc.0) (2018-08-21)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.7"></a>

## [2.0.2-beta.7](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.6...gatsby-plugin-manifest@2.0.2-beta.7) (2018-08-20)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.6"></a>

## [2.0.2-beta.6](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.5...gatsby-plugin-manifest@2.0.2-beta.6) (2018-08-15)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.5"></a>

## [2.0.2-beta.5](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.4...gatsby-plugin-manifest@2.0.2-beta.5) (2018-08-10)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.4"></a>

## [2.0.2-beta.4](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.3...gatsby-plugin-manifest@2.0.2-beta.4) (2018-08-07)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.3"></a>

## [2.0.2-beta.3](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.2...gatsby-plugin-manifest@2.0.2-beta.3) (2018-07-21)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.2"></a>

## [2.0.2-beta.2](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.1...gatsby-plugin-manifest@2.0.2-beta.2) (2018-06-20)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.1"></a>

## [2.0.2-beta.1](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@2.0.2-beta.0...gatsby-plugin-manifest@2.0.2-beta.1) (2018-06-17)

**Note:** Version bump only for package gatsby-plugin-manifest

<a name="2.0.2-beta.0"></a>

## [2.0.2-beta.0](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest/compare/gatsby-plugin-manifest@1.0.27...gatsby-plugin-manifest@2.0.2-beta.0) (2018-06-17)

**Note:** Version bump only for package gatsby-plugin-manifest
Loading

0 comments on commit 50aae3d

Please sign in to comment.