mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-16 21:11:52 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
21
web/node_modules/workbox-build/build/options/schema/generate-sw.js
generated
vendored
Normal file
21
web/node_modules/workbox-build/build/options/schema/generate-sw.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
/*
|
||||
Copyright 2019 Google LLC
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
const joi = require('@hapi/joi');
|
||||
|
||||
const basePartial = require('../partials/base');
|
||||
|
||||
const generatePartial = require('../partials/generate');
|
||||
|
||||
const globPartial = require('../partials/glob');
|
||||
|
||||
const supportedOptions = Object.assign({
|
||||
swDest: joi.string().required().regex(/\.js$/)
|
||||
}, basePartial, generatePartial, globPartial);
|
||||
module.exports = joi.object().keys(supportedOptions);
|
17
web/node_modules/workbox-build/build/options/schema/get-manifest.js
generated
vendored
Normal file
17
web/node_modules/workbox-build/build/options/schema/get-manifest.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
"use strict";
|
||||
|
||||
/*
|
||||
Copyright 2019 Google LLC
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
const joi = require('@hapi/joi');
|
||||
|
||||
const basePartial = require('../partials/base');
|
||||
|
||||
const globPartial = require('../partials/glob');
|
||||
|
||||
const supportedOptions = Object.assign({}, basePartial, globPartial);
|
||||
module.exports = joi.object().keys(supportedOptions);
|
21
web/node_modules/workbox-build/build/options/schema/inject-manifest.js
generated
vendored
Normal file
21
web/node_modules/workbox-build/build/options/schema/inject-manifest.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
/*
|
||||
Copyright 2019 Google LLC
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
const joi = require('@hapi/joi');
|
||||
|
||||
const basePartial = require('../partials/base');
|
||||
|
||||
const globPartial = require('../partials/glob');
|
||||
|
||||
const injectPartial = require('../partials/inject');
|
||||
|
||||
const supportedOptions = Object.assign({
|
||||
swDest: joi.string().required().regex(/\.js$/)
|
||||
}, basePartial, globPartial, injectPartial);
|
||||
module.exports = joi.object().keys(supportedOptions);
|
24
web/node_modules/workbox-build/build/options/schema/webpack-generate-sw.js
generated
vendored
Normal file
24
web/node_modules/workbox-build/build/options/schema/webpack-generate-sw.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
|
||||
/*
|
||||
Copyright 2019 Google LLC
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
const joi = require('@hapi/joi');
|
||||
|
||||
const basePartial = require('../partials/base');
|
||||
|
||||
const defaults = require('../defaults');
|
||||
|
||||
const generatePartial = require('../partials/generate');
|
||||
|
||||
const webpackPartial = require('../partials/webpack');
|
||||
|
||||
const supportedOptions = Object.assign({
|
||||
importScriptsViaChunks: joi.array().items(joi.string()),
|
||||
swDest: joi.string().default(defaults.swDestFilename)
|
||||
}, basePartial, generatePartial, webpackPartial);
|
||||
module.exports = joi.object().keys(supportedOptions);
|
42
web/node_modules/workbox-build/build/options/schema/webpack-inject-manifest.js
generated
vendored
Normal file
42
web/node_modules/workbox-build/build/options/schema/webpack-inject-manifest.js
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
"use strict";
|
||||
|
||||
/*
|
||||
Copyright 2019 Google LLC
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
const joi = require('@hapi/joi');
|
||||
|
||||
const upath = require('upath');
|
||||
|
||||
const basePartial = require('../partials/base');
|
||||
|
||||
const defaults = require('../defaults');
|
||||
|
||||
const injectPartial = require('../partials/inject');
|
||||
|
||||
const webpackPartial = require('../partials/webpack'); // See https://github.com/hapijs/joi/blob/v16.0.0-rc2/API.md#anydefaultvalue-description
|
||||
|
||||
|
||||
const swSrcBasename = context => {
|
||||
const {
|
||||
name
|
||||
} = upath.parse(context.swSrc); // Always use the .js extension when generating a default filename.
|
||||
|
||||
return name + '.js';
|
||||
};
|
||||
|
||||
swSrcBasename.description = 'derived from the swSrc file name';
|
||||
const supportedOptions = Object.assign({
|
||||
compileSrc: joi.boolean().default(defaults.compileSrc),
|
||||
webpackCompilationPlugins: joi.array().items(joi.object()).when('compileSrc', {
|
||||
is: false,
|
||||
then: joi.forbidden()
|
||||
})
|
||||
}, basePartial, injectPartial, webpackPartial);
|
||||
module.exports = joi.object().keys(supportedOptions).keys({
|
||||
// List this separately, so that the swSrc validation happens first.
|
||||
swDest: joi.string().default(swSrcBasename)
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue