Fix code quality violations and exclude Manifest from checks
Document application modes (development/debug/production) Add global file drop handler, order column normalization, SPA hash fix Serve CDN assets via /_vendor/ URLs instead of merging into bundles Add production minification with license preservation Improve JSON formatting for debugging and production optimization Add CDN asset caching with CSS URL inlining for production builds Add three-mode system (development, debug, production) Update Manifest CLAUDE.md to reflect helper class architecture Refactor Manifest.php into helper classes for better organization Pre-manifest-refactor checkpoint: Add app_mode documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
19
node_modules/postcss-merge-rules/package.json
generated
vendored
19
node_modules/postcss-merge-rules/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "postcss-merge-rules",
|
||||
"version": "5.1.4",
|
||||
"version": "7.0.7",
|
||||
"description": "Merge CSS rules with PostCSS.",
|
||||
"types": "types/index.d.ts",
|
||||
"main": "src/index.js",
|
||||
@@ -24,23 +24,24 @@
|
||||
},
|
||||
"repository": "cssnano/cssnano",
|
||||
"dependencies": {
|
||||
"browserslist": "^4.21.4",
|
||||
"browserslist": "^4.27.0",
|
||||
"caniuse-api": "^3.0.0",
|
||||
"postcss-selector-parser": "^6.0.5",
|
||||
"cssnano-utils": "^3.1.0"
|
||||
"postcss-selector-parser": "^7.1.0",
|
||||
"cssnano-utils": "^5.0.1"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssnano/cssnano/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14.0"
|
||||
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/caniuse-api": "^3.0.2",
|
||||
"postcss": "^8.2.15",
|
||||
"postcss-discard-comments": "^5.1.2"
|
||||
"@types/caniuse-api": "^3.0.6",
|
||||
"postcss": "^8.5.6",
|
||||
"postcss-simple-vars": "^7.0.1",
|
||||
"postcss-discard-comments": "^7.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
"postcss": "^8.4.32"
|
||||
}
|
||||
}
|
||||
39
node_modules/postcss-merge-rules/src/index.js
generated
vendored
39
node_modules/postcss-merge-rules/src/index.js
generated
vendored
@@ -1,4 +1,5 @@
|
||||
'use strict';
|
||||
const { dirname } = require('path');
|
||||
const browserslist = require('browserslist');
|
||||
const { sameParent } = require('cssnano-utils');
|
||||
const {
|
||||
@@ -84,9 +85,19 @@ function canMerge(ruleA, ruleB, browsers, compatibilityCache) {
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
if (ruleA.some(isRuleOrAtRule) || ruleB.some(isRuleOrAtRule)) {
|
||||
return false;
|
||||
}
|
||||
return parent && (selectors.every(noVendor) || sameVendor(a, b));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('postcss').ChildNode} node
|
||||
* @return {boolean}
|
||||
*/
|
||||
function isRuleOrAtRule(node) {
|
||||
return node.type === 'rule' || node.type === 'atrule';
|
||||
}
|
||||
/**
|
||||
* @param {import('postcss').ChildNode} node
|
||||
* @return {node is import('postcss').Declaration}
|
||||
@@ -307,7 +318,7 @@ function partialMerge(first, second) {
|
||||
|
||||
/**
|
||||
* @param {function(import('postcss').Declaration):void} callback
|
||||
* @this {import('postcss').Rule}
|
||||
* @this void
|
||||
* @return {function(import('postcss').Declaration)}
|
||||
*/
|
||||
function moveDecl(callback) {
|
||||
@@ -396,21 +407,31 @@ function selectorMerger(browsers, compatibilityCache) {
|
||||
cache = partialMerge(cache, rule);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<void>}
|
||||
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
||||
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
||||
* @typedef {AutoprefixerOptions & BrowserslistOptions} Options
|
||||
*/
|
||||
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Options>}
|
||||
* @param {Options} opts
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
function pluginCreator() {
|
||||
function pluginCreator(opts = {}) {
|
||||
return {
|
||||
postcssPlugin: 'postcss-merge-rules',
|
||||
|
||||
/**
|
||||
* @param {import('postcss').Result & {opts: BrowserslistOptions & {file?: string}}} result
|
||||
*/
|
||||
prepare(result) {
|
||||
/** @type {typeof result.opts & browserslist.Options} */
|
||||
const resultOpts = result.opts || {};
|
||||
const browsers = browserslist(null, {
|
||||
stats: resultOpts.stats,
|
||||
path: __dirname,
|
||||
env: resultOpts.env,
|
||||
const { stats, env, from, file } = result.opts || {};
|
||||
const browsers = browserslist(opts.overrideBrowserslist, {
|
||||
stats: opts.stats || stats,
|
||||
path: opts.path || dirname(from || file || __filename),
|
||||
env: opts.env || env,
|
||||
});
|
||||
|
||||
const compatibilityCache = new Map();
|
||||
|
||||
20
node_modules/postcss-merge-rules/types/index.d.ts
generated
vendored
20
node_modules/postcss-merge-rules/types/index.d.ts
generated
vendored
@@ -1,9 +1,23 @@
|
||||
export = pluginCreator;
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<void>}
|
||||
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
||||
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
||||
* @typedef {AutoprefixerOptions & BrowserslistOptions} Options
|
||||
*/
|
||||
/**
|
||||
* @type {import('postcss').PluginCreator<Options>}
|
||||
* @param {Options} opts
|
||||
* @return {import('postcss').Plugin}
|
||||
*/
|
||||
declare function pluginCreator(): import('postcss').Plugin;
|
||||
declare function pluginCreator(opts?: Options): import("postcss").Plugin;
|
||||
declare namespace pluginCreator {
|
||||
const postcss: true;
|
||||
export { postcss, AutoprefixerOptions, BrowserslistOptions, Options };
|
||||
}
|
||||
declare var postcss: true;
|
||||
type AutoprefixerOptions = {
|
||||
overrideBrowserslist?: string | string[];
|
||||
};
|
||||
type BrowserslistOptions = Pick<browserslist.Options, "stats" | "path" | "env">;
|
||||
type Options = AutoprefixerOptions & BrowserslistOptions;
|
||||
import browserslist = require("browserslist");
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/postcss-merge-rules/types/index.d.ts.map
generated
vendored
Normal file
1
node_modules/postcss-merge-rules/types/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AA0ZA;;;;GAIG;AAEH;;;;GAIG;AACH,sCAHW,OAAO,GACN,OAAO,SAAS,EAAE,MAAM,CAyBnC;;;;;2BAjCY;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;eACpD,mBAAmB,GAAG,mBAAmB"}
|
||||
1
node_modules/postcss-merge-rules/types/lib/ensureCompatibility.d.ts
generated
vendored
1
node_modules/postcss-merge-rules/types/lib/ensureCompatibility.d.ts
generated
vendored
@@ -69,3 +69,4 @@ export const pseudoElements: {
|
||||
* @return {boolean}
|
||||
*/
|
||||
export function ensureCompatibility(selectors: string[], browsers?: string[] | undefined, compatibilityCache?: Map<string, boolean> | undefined): boolean;
|
||||
//# sourceMappingURL=ensureCompatibility.d.ts.map
|
||||
1
node_modules/postcss-merge-rules/types/lib/ensureCompatibility.d.ts.map
generated
vendored
Normal file
1
node_modules/postcss-merge-rules/types/lib/ensureCompatibility.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ensureCompatibility.d.ts","sourceRoot":"","sources":["../../src/lib/ensureCompatibility.js"],"names":[],"mappings":"AAqCA;;;;GAIG;AACH,uCAJW,MAAM,EAAE,cACR,MAAM,EAAE,GACP,OAAO,CAWlB;AAED;;;GAGG;AACH,mCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDE;AAqCF;;;;;GAKG;AACH,+CALW,MAAM,EAAE,aACT,MAAM,EAAE,YAAC,uBACT,GAAG,CAAC,MAAM,EAAC,OAAO,CAAC,YAAC,GAClB,OAAO,CA0ElB"}
|
||||
Reference in New Issue
Block a user