Pascal Birchler
77d4a505f0
Update test
2026-05-04 20:07:27 +02:00
d731474fc9
feat: migrate workbox-webpack-plugin to typescript ( #2882 )
...
* feat: migrate workbox-webpack-plugin to typescript
* progress on typescript migration
* 15e from ts lint
* draft
* fixing webpack version
* running tests
* running tests
* eslint
* passing tests for workbox webpack plugin
* passing tests for wb wpp
* passing tests for workbox webpack plugin
passing tests for wb wpp
cleaning imports
* cleaning some eslint messages
* keeping the checkConditions method signature for backward compatibility
* fixing documentation
* commiting package-lock
* updating the webpack plugin package-lock
* Fixing typescript typing issues
Co-authored-by: Adriana Jara Salazar <[email protected] >
Co-authored-by: Adriana Jara <[email protected] >
2022-02-18 15:57:25 -05:00
Jeffrey Posnick and GitHub
7d4c4434a4
Enable prettier ( #2929 )
...
* Deps and config
* Prettier output
* Update hardcoded file sizes
* More file size updates
2021-08-26 14:57:20 -07:00
cb618332d2
Migrate workbox-build to TypeScript ( #2867 )
...
* WIP
* Finished getManifest
* GenerateSW migrated
* Getting there
* WIP
* Runtime caching TS
* More WIP
* More WIP
* Validation, type fixes
* Builds!
* No default exports
* null support in optional strings
* Accept string or buffer again
* Fix JSDocs
* CanIUse update
* test/additional-manifest-entries-transform
* lib/bundle
* cdnUtils test
* Switched to esModuleInterop
* Still WIP
* get-file-size migration
* get-string-details test migration
* A few more
* populateSWTemplate changes
* A few more
* validate options
* Update ts-auto-guard
* Fix dependency-check
* Swapped the exports
* JSON Schema + ajv
* TS 4.1.5
* Getting closer to validation
* Some default logic
* Switched default quotes
* Cleanup optional types
* Figuring out errors
* Refactor
* Update validate-options test
* Started integration test migration
* Remove joi schema
* Fixed some swDest logic
* Closer to webpack tests working
* Fix transformManifest usage
* Use a copy of the exclude array
* More include/exclude fun
* swDest default fix
* Function support?
* modifyURLPrefix workaround
* Fix an import
* Improve error messages
* Fix test string
* New validation unit test
* getManifest working
* Working through generateSW
* Function massaging
* Cleanup of exclude/include
* Fix a few more gSW tests
* RouteMatchCallback function
* Expiration w/cacheName check
* Optional globDirectory
* InjectManifest tests
* Test cleanup
* Fix a test
* Fix a config modification
* v5 injectmanifest test
* esModuleInterop support
* Fixes for proxied build
* Final tweaks
* Linting
* Automated linting fixes
* Tweak linting rules
* Update packages/workbox-build/src/lib/get-file-details.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update test/workbox-build/node/generate-sw.js
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/additional-manifest-entries-transform.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/additional-manifest-entries-transform.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/cdn-utils.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/get-file-manifest-entries.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/stringify-without-comments.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/validate-options.ts
Co-authored-by: Adriana Jara <[email protected] >
* Update packages/workbox-build/src/lib/additional-manifest-entries-transform.ts
Co-authored-by: Adriana Jara <[email protected] >
Co-authored-by: Adriana Jara <[email protected] >
2021-06-17 09:41:49 -04:00
Jeffrey Posnick and GitHub
259418c754
Fix quotation chars when eval-cheap-source-map is used ( #2847 )
...
* Fix some quotation characters
* Don't use ?.
* Linying
2021-06-02 08:11:18 -07:00
Jeffrey Posnick and GitHub
5199a318b3
Misc. webpack changes ( #2683 )
2020-11-30 12:13:47 -05:00
Jeffrey Posnick and GitHub
9a2fcae67b
Update the stage at which the webpack plugin runs ( #2675 )
...
* WIP
* Switch the webpack stage
2020-11-13 19:22:23 -05:00
Jeffrey Posnick and GitHub
4c058e054b
Make use of AssetInfo in webpack build ( #2673 )
...
* Make use of AssetInfo
* Updated JSDoc
2020-11-13 16:31:54 -05:00
Jeffrey Posnick and GitHub
7f3d8965f2
Updates for html-webpack-plugin and webpack v5 ( #2651 )
...
* Fix for some plugin weirdness
* v4/v5 fixes
2020-11-06 11:55:00 -08:00
Jeffrey Posnick and GitHub
9c1db880e9
webpack v5 compatibility ( #2641 )
...
* WIP webpack v5 migration
* Linting
* WIP again
* Linting
* Remove all: false
* webpack dep bump
* InjectManifest remediation
* Linting.
* Require 4.40
* Still WIP
* WIP
* Redo the asset/chunk mapping
* Fixed some test cases
* Another test fix
* Get assets from child compilations
* Tests pass
* Re-arranged some thing.
* Re-arranging things
* Good webpack v4/v5 testing setup
* Review feedback
2020-10-12 11:10:06 -04:00
Jeffrey Posnick and GitHub
fca3e4bcb8
Bump top-level deps ( #2603 )
2020-08-14 14:06:41 -04:00
Jeffrey Posnick and GitHub
bf4da89a7f
Log inject warning once per webpack compilation ( #2538 )
...
* Warn once per compilation
* Linting
* More linting
2020-06-11 14:13:45 -04:00
Jeffrey Posnick and GitHub
9c2b740e89
workbox-build dependency updates ( #2481 )
...
* workbox-build deps update
* Linting
* Bump yarn timeout
2020-04-29 16:23:51 -04:00
Jeffrey Posnick and GitHub
2a1d97c7fe
Add compileSrc option to InjectManifet webpack plugin ( #2412 )
...
* WIP
* Support for compileSrc
* Linting
2020-03-19 09:56:53 -04:00
Prateek Bhatnagar and GitHub
fbe994fd23
Fix/plugins workbox webpack plugin ( #2400 )
...
* fixing application of plugins in inject-manifest-plugin
* lint fixes
* Update inject-manifest.js
* fixing windows and reverting package-lock.json
* Update sw-src-define-plugin.js
* lint fixes
2020-03-10 21:58:40 -04:00
Jeffrey Posnick and GitHub
9d468809f4
Enable Windows tests on GH Actions ( #2391 )
...
* Enable Windows CI
* WIP
* Move to chaiMatchPattern
* Linting
* More Windows tweaks
* globby changes
* Just run test-node
* gulp build
2020-03-03 12:00:51 -08:00
Jeffrey Posnick and GitHub
4f3a17ad54
Add memory-fs test ( #2370 )
2020-02-14 16:34:30 -05:00
Jeffrey Posnick and GitHub
6ffe5176cf
Loosen the hash validation in our integration tests ( #2368 )
...
* Looser hash validation
* Linting
* Further loosening comparisons
* Linting
2020-02-13 20:40:57 -05:00
Jeffrey Posnick and GitHub
506093c4b7
Switch to allow/denylist ( #2325 )
2020-01-13 14:56:59 -05:00
Jeffrey Posnick and GitHub
b3254e36df
Set revision: null instead of deleting revision ( #2326 )
...
* Set revision: null
* Fix tests
2020-01-13 14:53:00 -05:00
Jeffrey Posnick and GitHub
5216979714
Replace " with ' when stringifying the manifest ( #2264 )
...
* Swtich " for ' when injecting the manifest
* Tweaks
2019-10-24 14:58:36 -04:00
Jeffrey Posnick and GitHub
e8ceda6970
Don't treat lack of sourcemap asset as a fatal error ( #2251 )
...
* Don't treat a missing sourcemap as an error
* Linting.
2019-10-11 11:53:23 -04:00
Jeffrey Posnick and GitHub
870fac8ca9
Warn during multi-compilation scenarios ( #2245 )
2019-10-04 14:03:21 -04:00
Jeffrey Posnick and GitHub
935a707183
Account for injectManifest replacements in sourcemaps ( #2239 )
...
* Fix sourcemaps in injectManifest mode
* Linting workaround
* config => options
2019-10-01 14:47:42 -04:00
Jeffrey Posnick and GitHub
09ee53c0aa
Exclude assets from other plugin instances ( #2182 )
2019-08-13 14:24:52 -04:00
Jeffrey Posnick and GitHub
4718c80e22
Fix for multiple compilations ( #2167 )
2019-08-05 13:50:25 -04:00
Jeffrey Posnick and GitHub
cb3335d88e
importScriptsViaChunks checks for .js extension ( #2164 )
...
* importScriptsViaChunks filters on .js
* Remove •
2019-08-02 17:30:45 -04:00
Jeffrey Posnick and GitHub
9e92b2c24a
Upgrade test suite to use selenium-webdriver v4 ( #2151 )
...
* Upgrade selenium to v4
* Add back gulp-cli
* xcode11
* selenium-assistant v6
2019-08-01 13:39:23 -04:00
Jeffrey Posnick and GitHub
6a3db29617
Move to upath, honor swDest subdirs ( #2140 )
2019-07-23 13:52:00 -04:00
Jeffrey Posnick and GitHub
c8ca2b117b
Adds importScriptsViaChunks option ( #2131 )
2019-07-19 13:42:44 -04:00
Jeffrey Posnick and GitHub
77996ad2c7
Adds support for additionalManifestEntries build option ( #2124 )
...
* Adds support for additionalManifestEntries
* Fix a too-greedy gitignore
* Review feedback
2019-07-18 15:35:10 -04:00
Jeff Posnick
42b868b661
Use a .js extension when creating swDest
2019-07-16 13:30:40 -04:00
Jeffrey Posnick
6329addb4a
webpack plugin updates for v5 ( #2087 )
...
* Initial GenerateSW changes.
* WIP.
* Basic InjectManifest functionality.
* Normalize webpack option validation.
* Working-ish?
* Copy over some compiler options.
* More mode magic
* Manifest transformations should work
* Normalized error reporting a bit.
* Switch to Proxx's loadz0r config
* Tweak the default exclude
* Play nicely with SplitChunkPlugin
* Add a warning about missing chunks.
* Rename a test.
* Updated a few comments.
* Test-related updates
* Further test fixes.
* Pretty complete GenerateSW test suite.
* InjectManifest tests.
* Linting.
* Copyright dates.
* Update jsdoc-baseline
* lockfile update
* Fix the generate-sw test on Windows.
* Switch to upath
* Fix a proxied call to upath
* Missed a @private
* A few nits.
2019-07-12 14:30:02 -04:00
Eliz and Jeffrey Posnick
461283b631
Make the sw imports sorted ( #1973 )
...
* Make the sw imports sorted
* Make eslint happy :)
* Make eslint happy
* Move the sorting fix to stringify
* Fixed tests.
2019-03-20 15:09:01 -04:00
Masahiro Miyashiro (3846masa) and Jeffrey Posnick
95695d8c48
Convert source to Buffer when getting asset's hash ( #1966 )
...
* Convert to Buffer when getting asset's hash
* Add a test
* Loosened the test case.
2019-03-19 13:34:54 -04:00
Philip Walton and Jeffrey Posnick
1dff0ed868
Add an mjs build transpiled to ES5 ( #1899 )
...
* Add a module build transpiled to ES5
* Update package.json and fix failing tests
* Transpile the UMD version to ES5
2019-02-13 10:40:02 -05:00
Philip Walton and Jeffrey Posnick
f3b808e33c
Add a UMD build for workbox-window ( #1895 )
2019-02-12 09:48:14 -05:00
Philip Walton and Jeffrey Posnick
150a9de3dd
Rename packeges to match browser namesapces ( #1879 )
2019-02-01 15:32:27 -05:00
Jeffrey Posnick and GitHub
da579cb910
wb-build support for cleanupOutdatedCaches ( #1863 )
2019-01-28 15:52:50 -05:00
Prateek Bhatnagar and Jeffrey Posnick
e84d02b199
adding swSrc as webpack asset capability ( #1763 )
...
* adding swSrc as webpack asset capability
* Update inject-manifest.js
* Update inject-manifest.js
* adding test
* removing unwanted code
* lint fixes
2019-01-18 14:46:28 -05:00
Jeffrey Posnick and GitHub
dd7395fc74
Url to URL renaming for build interfaces ( #1841 )
...
* WIP.
* WIP.
* Tests.
* Renamed a module.
2019-01-15 13:04:01 -05:00
Jeffrey Posnick and GitHub
cb5b7cbe26
Fixes for workbox-precaching issues in recent PRs ( #1835 )
...
* Fixes some issues with recent PRs.
* More fixes.
* One more change
* Another change!
* Another one.
* Post-merge cleanup.
2019-01-14 16:14:49 -05:00
Jeffrey Posnick and GitHub
18face0355
concat to self.__precacheManifest ( #1775 )
2018-12-12 12:42:28 -05:00
Philip Walton and Jeffrey Posnick
da1a078f8c
Rename the workbox-google-analytics output file ( #1688 )
2018-10-09 12:14:49 -04:00
Jeff Posnick
b513ad24f7
Update tests for license headers.
2018-10-08 12:49:30 -04:00
Philip Walton
77e1c99ebe
Add license headers to all files
2018-10-07 10:54:22 -07:00
Jeffrey Posnick and GitHub
029365944e
Whitespace changes for eslint ( #1680 )
2018-10-04 19:16:23 -04:00
Jeffrey Posnick and GitHub
60eb74aa34
Stop excluding manifest.json ( #1679 )
2018-10-04 19:15:25 -04:00
Jeffrey Posnick and Philip Walton
f0113ee6ad
Fix for the workbox-webpack-plugin tests ( #1676 )
...
* Fixed some webpack hashes.
* Explicitly install gulp-cli
2018-10-04 12:36:55 -07:00
Jeffrey Posnick and GitHub
6be8449f62
Updates to latest dependencies, and transpilation targets ( #1658 )
...
* WIP.
* WIP.
* Linting.
* Removing browser-sync.
* Fixes workbox dependencies (#1667 )
* Fixes workbox dependencies
* Fixes the depcheck
* v3.6.2
* 3.6.2 metadata (#1669 )
2018-10-03 12:27:07 -04:00