progress on migrating to heex templates and font-icons
This commit is contained in:
parent
d43daafdb7
commit
3eff955672
21793 changed files with 2161968 additions and 16895 deletions
assets_old/node_modules/@webpack-cli/configtest
18
assets_old/node_modules/@webpack-cli/configtest/CHANGELOG.md
generated
vendored
Normal file
18
assets_old/node_modules/@webpack-cli/configtest/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/configtest@1.0.0...@webpack-cli/configtest@1.0.1) (2021-02-02)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- improve description for 'configtest' command ([#2379](https://github.com/webpack/webpack-cli/issues/2379)) ([311bae3](https://github.com/webpack/webpack-cli/commit/311bae336d83424c800e553b6ef40242d967685c))
|
||||
|
||||
# 1.0.0 (2021-01-19)
|
||||
|
||||
### Features
|
||||
|
||||
- `configtest` validate default configuration ([#2354](https://github.com/webpack/webpack-cli/issues/2354)) ([487691a](https://github.com/webpack/webpack-cli/commit/487691abc8d817f5b3c1ab87743d7235ff15d956))
|
||||
- added the `watch` command ([#2357](https://github.com/webpack/webpack-cli/issues/2357)) ([9693f7d](https://github.com/webpack/webpack-cli/commit/9693f7d9543a8fce610c4ef903ccca0d12d229a1))
|
||||
- new `configtest` command ([#2303](https://github.com/webpack/webpack-cli/issues/2303)) ([eb7b189](https://github.com/webpack/webpack-cli/commit/eb7b18937d045261a5b20ca8356e8b4ae4dfcaad))
|
20
assets_old/node_modules/@webpack-cli/configtest/LICENSE
generated
vendored
Normal file
20
assets_old/node_modules/@webpack-cli/configtest/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
Copyright JS Foundation and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
4
assets_old/node_modules/@webpack-cli/configtest/lib/index.d.ts
generated
vendored
Normal file
4
assets_old/node_modules/@webpack-cli/configtest/lib/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
declare class ConfigTestCommand {
|
||||
apply(cli: any): Promise<void>;
|
||||
}
|
||||
export default ConfigTestCommand;
|
62
assets_old/node_modules/@webpack-cli/configtest/lib/index.js
generated
vendored
Normal file
62
assets_old/node_modules/@webpack-cli/configtest/lib/index.js
generated
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class ConfigTestCommand {
|
||||
async apply(cli) {
|
||||
const { logger, webpack } = cli;
|
||||
await cli.makeCommand({
|
||||
name: 'configtest [config-path]',
|
||||
alias: 't',
|
||||
description: 'Validate a webpack configuration.',
|
||||
pkg: '@webpack-cli/configtest',
|
||||
}, [], async (configPath) => {
|
||||
const config = await cli.resolveConfig(configPath ? { config: [configPath] } : {});
|
||||
const configPaths = new Set();
|
||||
if (Array.isArray(config.options)) {
|
||||
config.options.forEach((options) => {
|
||||
if (config.path.get(options)) {
|
||||
configPaths.add(config.path.get(options));
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
if (config.path.get(config.options)) {
|
||||
configPaths.add(config.path.get(config.options));
|
||||
}
|
||||
}
|
||||
if (configPaths.size === 0) {
|
||||
logger.error('No configuration found.');
|
||||
process.exit(2);
|
||||
}
|
||||
logger.info(`Validate '${Array.from(configPaths).join(' ,')}'.`);
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const error = webpack.validate(config.options);
|
||||
// TODO remove this after drop webpack@4
|
||||
if (error && error.length > 0) {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
||||
// @ts-ignore
|
||||
throw new webpack.WebpackOptionsValidationError(error);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const isValidationError = (error) => {
|
||||
// https://github.com/webpack/webpack/blob/master/lib/index.js#L267
|
||||
// https://github.com/webpack/webpack/blob/v4.44.2/lib/webpack.js#L90
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const ValidationError = (webpack.ValidationError || webpack.WebpackOptionsValidationError);
|
||||
return error instanceof ValidationError;
|
||||
};
|
||||
if (isValidationError(error)) {
|
||||
logger.error(error.message);
|
||||
}
|
||||
else {
|
||||
logger.error(error);
|
||||
}
|
||||
process.exit(2);
|
||||
}
|
||||
logger.success('There are no validation errors in the given webpack configuration.');
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.default = ConfigTestCommand;
|
19
assets_old/node_modules/@webpack-cli/configtest/package.json
generated
vendored
Normal file
19
assets_old/node_modules/@webpack-cli/configtest/package.json
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name": "@webpack-cli/configtest",
|
||||
"version": "1.0.1",
|
||||
"description": "Validate a webpack configuration.",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"webpack": "4.x.x || 5.x.x",
|
||||
"webpack-cli": "4.x.x"
|
||||
},
|
||||
"gitHead": "3bbda71e9637b7d20f3f49f9e080e27d8d8ae929"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue