Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-community/pwa-module
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0-beta.16
Choose a base ref
...
head repository: nuxt-community/pwa-module
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0-beta.17
Choose a head ref

Commits on May 11, 2019

  1. chore(deps): update dependency fs-extra to v8 (#189)

    renovate[bot] authored and Pooya Parsa committed May 11, 2019
    Copy the full SHA
    453008a View commit details

Commits on May 28, 2019

  1. docs(icon): fix default sizes (#190)

    kaave authored and TheAlexLichter committed May 28, 2019
    Copy the full SHA
    225a299 View commit details
  2. updated docs with typo in code example (#191)

    bartdominiak authored and Pooya Parsa committed May 28, 2019
    Copy the full SHA
    c9daeb9 View commit details

Commits on May 30, 2019

  1. chore(deps): update all non-major dependencies (#186)

    renovate[bot] authored and Pooya Parsa committed May 30, 2019
    Copy the full SHA
    8d811db View commit details
  2. update yarn.lock

    pooya parsa committed May 30, 2019
    Copy the full SHA
    b992235 View commit details

Commits on Jun 8, 2019

  1. refactor: refactor to single package

    pooya parsa committed Jun 8, 2019
    Copy the full SHA
    1e1ae7b View commit details
  2. feat: pwa. scopped options

    pooya parsa committed Jun 8, 2019
    Copy the full SHA
    010fe0e View commit details
  3. chore: update all dependencies

    pooya parsa committed Jun 8, 2019
    Copy the full SHA
    83f68c4 View commit details

Commits on Jun 29, 2019

  1. chore(deps): update dependency hash-sum to v2 (#201)

    renovate[bot] authored and Pooya Parsa committed Jun 29, 2019
    Copy the full SHA
    c2533f1 View commit details

Commits on Jul 4, 2019

  1. chore(deps): update all non-major dependencies (#194)

    renovate[bot] authored and Pooya Parsa committed Jul 4, 2019
    Copy the full SHA
    1b2a3ca View commit details
  2. chore: update all dependencies

    except execa for node version support
    pi0 committed Jul 4, 2019
    Copy the full SHA
    4386ed0 View commit details
  3. chore: update test snapshots

    pi0 committed Jul 4, 2019
    Copy the full SHA
    83a660f View commit details

Commits on Jul 22, 2019

  1. Add version note

    This commit adds a note to the docs specifying what version of the module they're for.
    
    Fixes #206
    spaceninja authored Jul 22, 2019
    Copy the full SHA
    4f8e212 View commit details

Commits on Jul 23, 2019

  1. Copy the full SHA
    e85940a View commit details
  2. Merge pull request #212 from spaceninja/patch-1

    Add version note
    atinux authored Jul 23, 2019
    Copy the full SHA
    1accb07 View commit details
  3. Copy the full SHA
    fb19c19 View commit details
  4. Copy the full SHA
    06eaeec View commit details
  5. Merge pull request #205 from nuxt-community/renovate/eslint-config-st…

    …andard-13.x
    
    chore(deps): update devdependency eslint-config-standard to v13
    atinux authored Jul 23, 2019
    Copy the full SHA
    166991e View commit details
  6. Copy the full SHA
    4e76581 View commit details
  7. Merge pull request #203 from nuxt-community/renovate/all-minor-patch

    chore(deps): update all non-major dependencies
    atinux authored Jul 23, 2019
    Copy the full SHA
    1b8f7c3 View commit details
  8. chore(deps): bump lodash from 4.17.11 to 4.17.15 (#214)

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.11...4.17.15)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and atinux committed Jul 23, 2019
    Copy the full SHA
    45aa63d View commit details
  9. chore(deps): bump lodash from 4.17.11 to 4.17.15 in /docs (#213)

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.11...4.17.15)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and atinux committed Jul 23, 2019
    Copy the full SHA
    9e10fef View commit details
  10. chore(deps): bump lodash.template from 4.4.0 to 4.5.0 in /docs (#208)

    Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.4.0...4.5.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and atinux committed Jul 23, 2019
    Copy the full SHA
    e653419 View commit details
  11. chore(deps): bump lodash.template from 4.4.0 to 4.5.0 (#207)

    Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.4.0...4.5.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and atinux committed Jul 23, 2019
    Copy the full SHA
    45e986a View commit details

Commits on Aug 20, 2019

  1. Copy the full SHA
    be9c2ae View commit details
  2. Copy the full SHA
    5e4f0d7 View commit details
  3. Copy the full SHA
    30ac33b View commit details
  4. chore(deps): update nuxt-edge to 2.9.2

    pooya parsa committed Aug 20, 2019
    Copy the full SHA
    39b3279 View commit details

Commits on Aug 22, 2019

  1. feat: use jimp-compact

    pooya parsa committed Aug 22, 2019
    Copy the full SHA
    5e37b58 View commit details
  2. chore: fix lint error

    pooya parsa committed Aug 22, 2019
    Copy the full SHA
    b098f6e View commit details

Commits on Sep 1, 2019

  1. Copy the full SHA
    25efaf1 View commit details
  2. Copy the full SHA
    9370c2a View commit details

Commits on Sep 5, 2019

  1. Copy the full SHA
    c5b4450 View commit details
  2. chore: update dependencies

    pi0 committed Sep 5, 2019
    Copy the full SHA
    4e6999d View commit details
  3. test: update snapshot

    pi0 committed Sep 5, 2019
    Copy the full SHA
    e87a5aa View commit details
  4. Copy the full SHA
    622f8ce View commit details
  5. chore(release): 3.0.0-beta.17

    pi0 committed Sep 5, 2019
    Copy the full SHA
    def02bc View commit details
Showing with 4,801 additions and 6,672 deletions.
  1. +1 −1 .circleci/config.yml
  2. +1 −1 .eslintignore
  3. +10 −3 CHANGELOG.md
  4. +2 −2 README.md
  5. +1 −0 docs/README.md
  6. +6 −4 docs/modules/icon.md
  7. +6 −4 docs/modules/manifest.md
  8. +3 −3 docs/modules/meta.md
  9. +7 −4 docs/modules/workbox.md
  10. +1 −1 docs/package.json
  11. +1,480 −2,097 docs/yarn.lock
  12. +11 −0 jest.config.js
  13. +0 −15 lerna.json
  14. +7 −10 packages/icon/index.js → lib/icon/module.js
  15. 0 {packages → lib}/icon/plugin.js
  16. +1 −1 {packages → lib}/icon/resize.js
  17. +7 −8 packages/manifest/index.js → lib/manifest/module.js
  18. +5 −7 packages/meta/index.js → lib/meta/module.js
  19. +16 −0 lib/module.js
  20. +8 −10 packages/onesignal/index.js → lib/onesignal/module.js
  21. 0 {packages/onesignal/templates → lib/onesignal}/plugin.js
  22. 0 {packages/pwa-utils → lib/utils}/index.js
  23. 0 {packages/workbox/lib → lib/workbox}/defaults.js
  24. +9 −11 {packages/workbox/lib → lib/workbox}/module.js
  25. +4 −5 {packages/workbox/lib → lib/workbox}/options.js
  26. 0 {packages → lib}/workbox/templates/sw.disable.js
  27. 0 {packages → lib}/workbox/templates/sw.js
  28. 0 {packages → lib}/workbox/templates/workbox.js
  29. +36 −0 lib/workbox/utils.js
  30. +37 −41 package.json
  31. +0 −174 packages/icon/CHANGELOG.md
  32. +0 −1 packages/icon/README.md
  33. +0 −18 packages/icon/package.json
  34. +0 −159 packages/manifest/CHANGELOG.md
  35. +0 −1 packages/manifest/README.md
  36. +0 −14 packages/manifest/package.json
  37. +0 −155 packages/meta/CHANGELOG.md
  38. +0 −1 packages/meta/README.md
  39. +0 −13 packages/meta/package.json
  40. +0 −164 packages/onesignal/CHANGELOG.md
  41. +0 −1 packages/onesignal/README.md
  42. +0 −2 packages/onesignal/dist/OneSignalSDK.js
  43. +0 −13 packages/onesignal/package.json
  44. +0 −129 packages/pwa-utils/CHANGELOG.md
  45. +0 −1 packages/pwa-utils/README.md
  46. +0 −10 packages/pwa-utils/package.json
  47. +0 −137 packages/pwa/CHANGELOG.md
  48. +0 −1 packages/pwa/README.md
  49. +0 −14 packages/pwa/index.js
  50. +0 −17 packages/pwa/package.json
  51. +0 −236 packages/workbox/CHANGELOG.md
  52. +0 −1 packages/workbox/README.md
  53. +0 −18 packages/workbox/lib/utils.js
  54. +0 −14 packages/workbox/package.json
  55. +2 −1 test/__snapshots__/pwa.test.js.snap
  56. +1 −2 test/fixture/nuxt.config.js
  57. +12 −14 test/pwa.test.js
  58. +3,127 −3,133 yarn.lock
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -26,4 +26,4 @@ jobs:
# Test
- run:
name: Tests
command: yarn test && yarn codecov
command: yarn test --coverage && yarn codecov
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@
**/dist

# Contains Lodash templates
packages/icon/plugin.js
**/plugin.js
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Change Log
# Changelog

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.0.0-beta.17](https://github.com/nuxt-community/pwa-module/compare/v3.0.0-beta.16...v3.0.0-beta.17) (2019-09-05)


### Features

* `pwa.` scopped options ([010fe0e](https://github.com/nuxt-community/pwa-module/commit/010fe0e))
* use `jimp-compact` ([5e37b58](https://github.com/nuxt-community/pwa-module/commit/5e37b58))

# [3.0.0-beta.16](https://github.com/nuxt-community/pwa-module/compare/v3.0.0-beta.15...v3.0.0-beta.16) (2019-05-07)

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@

> Progressive Web Apps (PWA) are reliable, fast, and engaging, although there are many things that can take a PWA from a baseline to exemplary experience. ([learn more](https://developers.google.com/web/progressive-web-apps))
Using Nuxt PWA you can supercharge your current or next Nuxt project with a heavily tested, updated and stable PWA solution and zero-config!
Supercharge Nuxt with a heavily tested, updated, zero-config and stable PWA solution!

📖 [**Read Documentation**](https://pwa.nuxtjs.org)

## License

MIT - Nuxt Community - Pooya Parsa
MIT - Nuxt Community - Pooya Parsa
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ actionLink: /setup.html

Progressive Web Apps (PWA) are reliable, fast, and engaging, although there are many things that can take a PWA from a baseline to exemplary experience. ([learn more](https://developers.google.com/web/progressive-web-apps))

Note: These docs are for version 3

## Modules

10 changes: 6 additions & 4 deletions docs/modules/icon.md
Original file line number Diff line number Diff line change
@@ -10,11 +10,13 @@ sidebar: auto
This module automatically generates app icons and favicon with different sizes using [jimp](https://github.com/oliver-moran/jimp) and fills `manifest.icons[]` with proper paths to generated assets that is used by manifest module. Source icon is being resized using *cover* method.


You can pass options to `icon` section in `nuxt.config.js` to override defaults.
You can pass options to `pwa.icon` in `nuxt.config.js` to override defaults.

```js
icon: {
// Icon options
pwa: {
icon: {
/* icon options */
}
}
```

@@ -27,7 +29,7 @@ icon: {
- Default: `icon.png`

**sizes**
- Default: `[16, 120, 144, 152, 192, 384, 512]`
- Default: `[64, 120, 144, 152, 192, 384, 512]`

**targetDir**
- Default: `icons`
10 changes: 6 additions & 4 deletions docs/modules/manifest.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,13 @@ sidebar: auto

Manifest adds [Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) with no pain.

You can pass options to `manifest` section in `nuxt.config.js` to override defaults.
You can pass options to `pwa.manifest` in `nuxt.config.js` to override defaults.

```js
manifest: {
name: 'My Awesome App',
lang: 'fa'
pwa: {
manifest: {
name: 'My Awesome App',
lang: 'fa'
}
}
```
6 changes: 3 additions & 3 deletions docs/modules/meta.md
Original file line number Diff line number Diff line change
@@ -8,12 +8,12 @@ sidebar: auto
[![npm (scoped with tag)](https://img.shields.io/npm/v/@nuxtjs/meta/latest.svg?style=flat-square)](https://npmjs.com/package/@nuxtjs/meta)

Meta easily adds common meta tags into your project with zero-config needed.
You can optionally override meta using either `manifest` or `meta` section of `nuxt.config.js`:
You can optionally override meta using `pwa.meta` in `nuxt.config.js`:

```js
{
pwa: {
meta: {
// ...
/* meta options */
}
}
```
11 changes: 7 additions & 4 deletions docs/modules/workbox.md
Original file line number Diff line number Diff line change
@@ -10,11 +10,13 @@ sidebar: auto
Workbox is a collection of JavaScript libraries for Progressive Web Apps.
([Learn more](https://developers.google.com/web/tools/workbox)). This module adds full offline support using workbox.

You can pass options to `workbox` section in `nuxt.config.js` to override the [defaults](https://github.com/nuxt-community/pwa-module/blob/master/packages/workbox/lib/defaults.js).
You can pass options to `pwa.workbox` in `nuxt.config.js` to override the [defaults](https://github.com/nuxt-community/pwa-module/blob/dev/lib/workbox/defaults.js).

```js
workbox: {
// Workbox options
pwa: {
workbox: {
/* workbox options */
}
}
```

@@ -193,7 +195,7 @@ const workbox = await window.$workbox
if (workbox) {
// Service worker is available
}
```s
```

## Examples

@@ -206,6 +208,7 @@ If you have a custom CDN and need to cache requests for it, simply use `runtimeC
**IMPORTANT:** Please note that workbox will **not** cache opaque responses. So please only use either `networkFirst` or `staleWhileRevalidate` strategies. Please see [Handle Third Party Requests](https://developers.google.com/web/tools/workbox/guides/handle-third-party-requests).

nuxt.config.js

```js
workbox: {
runtimeCaching: [
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@
"build": "vuepress build"
},
"devDependencies": {
"vuepress": "^1.0.0-alpha.47"
"vuepress": "^1.0.3"
}
}
Loading