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:
root
2026-01-14 10:38:22 +00:00
parent bb9046af1b
commit d523f0f600
2355 changed files with 231384 additions and 32223 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "postcss-ordered-values",
"version": "5.1.3",
"version": "7.0.2",
"description": "Ensure values are ordered consistently in your CSS.",
"main": "src/index.js",
"types": "types/index.d.ts",
@@ -23,20 +23,19 @@
},
"repository": "cssnano/cssnano",
"dependencies": {
"cssnano-utils": "^3.1.0",
"postcss-value-parser": "^4.2.0"
"postcss-value-parser": "^4.2.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": {
"postcss": "^8.2.15",
"undici": "^5.0.0"
"postcss": "^8.5.3"
},
"peerDependencies": {
"postcss": "^8.2.15"
"postcss": "^8.4.32"
}
}

View File

@@ -3,10 +3,11 @@ const { unit } = require('postcss-value-parser');
const { getArguments } = require('cssnano-utils');
const addSpace = require('../lib/addSpace');
const getValue = require('../lib/getValue');
const mathFunctions = require('../lib/mathfunctions.js');
// animation: [ none | <keyframes-name> ] || <time> || <single-timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state>
const functions = new Set(['steps', 'cubic-bezier', 'frames']);
const keywords = new Set([
const timingFunctions = new Set(['steps', 'cubic-bezier', 'frames']);
const timingKeywords = new Set([
'ease',
'ease-in',
'ease-in-out',
@@ -28,11 +29,35 @@ const timeUnits = new Set(['ms', 's']);
/**
* @param {string} value
* @param {string} type
* @param {import('postcss-value-parser').Node} node
* @return {false | import('postcss-value-parser').Dimension}
*/
function unitFromNode(value, node) {
if (node.type !== 'function') {
return unit(value);
}
if (mathFunctions.has(value)) {
// If it is a math function, it checks the unit of the parameter and returns it.
for (const param of node.nodes) {
const paramUnit = unitFromNode(param.value.toLowerCase(), param);
if (paramUnit && paramUnit.unit && paramUnit.unit !== '%') {
return paramUnit;
}
}
}
return false;
}
/**
* @param {string} value
* @param {import('postcss-value-parser').Node} node
* @return {boolean}
*/
const isTimingFunction = (value, type) => {
return (type === 'function' && functions.has(value)) || keywords.has(value);
const isTimingFunction = (value, { type }) => {
return (
(type === 'function' && timingFunctions.has(value)) ||
timingKeywords.has(value)
);
};
/**
* @param {string} value
@@ -57,19 +82,21 @@ const isPlayState = (value) => {
};
/**
* @param {string} value
* @param {import('postcss-value-parser').Node} node
* @return {boolean}
*/
const isTime = (value) => {
const quantity = unit(value);
const isTime = (value, node) => {
const quantity = unitFromNode(value, node);
return quantity && timeUnits.has(quantity.unit);
};
/**
* @param {string} value
* @param {import('postcss-value-parser').Node} node
* @return {boolean}
*/
const isIterationCount = (value) => {
const quantity = unit(value);
const isIterationCount = (value, node) => {
const quantity = unitFromNode(value, node);
return value === 'infinite' || (quantity && !quantity.unit);
};
@@ -113,7 +140,7 @@ function normalize(args) {
value = value.toLowerCase();
const hasMatch = stateConditions.some(({ property, delegate }) => {
if (delegate(value, type) && !state[property].length) {
if (delegate(value, node) && !state[property].length) {
state[property] = [node, addSpace()];
return true;
}

View File

@@ -3,7 +3,8 @@ export = pluginCreator;
* @type {import('postcss').PluginCreator<void>}
* @return {import('postcss').Plugin}
*/
declare function pluginCreator(): import('postcss').Plugin;
declare function pluginCreator(): import("postcss").Plugin;
declare namespace pluginCreator {
const postcss: true;
let postcss: true;
}
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAkHA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CA2CnC"}

View File

@@ -1,2 +1,3 @@
declare function _exports(): import('postcss-value-parser').SpaceNode;
declare function _exports(): import("postcss-value-parser").SpaceNode;
export = _exports;
//# sourceMappingURL=addSpace.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"addSpace.d.ts","sourceRoot":"","sources":["../../src/lib/addSpace.js"],"names":[],"mappings":"AAEiB,6BADJ,OAAO,sBAAsB,EAAE,SAAS,CAMpD"}

View File

@@ -1,2 +1,3 @@
declare function _exports(values: import('postcss-value-parser').Node[][]): string;
declare function _exports(values: import("postcss-value-parser").Node[][]): string;
export = _exports;
//# sourceMappingURL=getValue.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../src/lib/getValue.js"],"names":[],"mappings":"AAOiB,kCAHN,OAAO,sBAAsB,EAAE,IAAI,EAAE,EAAE,GACtC,MAAM,CAIjB"}

View File

@@ -1,2 +1,3 @@
declare function _exports(grid: string[]): string;
export = _exports;
//# sourceMappingURL=joinGridValue.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"joinGridValue.d.ts","sourceRoot":"","sources":["../../src/lib/joinGridValue.js"],"names":[],"mappings":"AAKiB,gCAHN,MAAM,EAAE,GACP,MAAM,CAIjB"}

View File

@@ -1,14 +1,3 @@
declare const _exports: {
add(value: string): Set<string>;
clear(): void;
delete(value: string): boolean;
forEach(callbackfn: (value: string, value2: string, set: Set<string>) => void, thisArg?: any): void;
has(value: string): boolean;
readonly size: number;
entries(): IterableIterator<[string, string]>;
keys(): IterableIterator<string>;
values(): IterableIterator<string>;
[Symbol.iterator](): IterableIterator<string>;
readonly [Symbol.toStringTag]: string;
};
declare const _exports: Set<string>;
export = _exports;
//# sourceMappingURL=mathfunctions.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"mathfunctions.d.ts","sourceRoot":"","sources":["../../src/lib/mathfunctions.js"],"names":[],"mappings":""}

View File

@@ -4,3 +4,4 @@ export = vendorUnprefixed;
* @return {string}
*/
declare function vendorUnprefixed(prop: string): string;
//# sourceMappingURL=vendorUnprefixed.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"vendorUnprefixed.d.ts","sourceRoot":"","sources":["../../src/lib/vendorUnprefixed.js"],"names":[],"mappings":";AACA;;;GAGG;AACH,wCAHW,MAAM,GACL,MAAM,CAIjB"}

View File

@@ -1,2 +1,3 @@
declare function _exports(parsed: import('postcss-value-parser').ParsedValue): string;
declare function _exports(parsed: import("postcss-value-parser").ParsedValue): string;
export = _exports;
//# sourceMappingURL=animation.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../src/rules/animation.js"],"names":[],"mappings":"AA0KiB,kCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,CAMjB"}

View File

@@ -1,2 +1,3 @@
declare function _exports(border: import('postcss-value-parser').ParsedValue): string;
declare function _exports(border: import("postcss-value-parser").ParsedValue): string;
export = _exports;
//# sourceMappingURL=border.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../src/rules/border.js"],"names":[],"mappings":"AA2BiB,kCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,CAkCjB"}

View File

@@ -1,2 +1,3 @@
declare function _exports(parsed: import('postcss-value-parser').ParsedValue): string;
declare function _exports(parsed: import("postcss-value-parser").ParsedValue): string;
export = _exports;
//# sourceMappingURL=boxShadow.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"boxShadow.d.ts","sourceRoot":"","sources":["../../src/rules/boxShadow.js"],"names":[],"mappings":"AAciB,kCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,CAYjB"}

View File

@@ -1,2 +1,3 @@
declare function _exports(columns: import('postcss-value-parser').ParsedValue): import('postcss-value-parser').ParsedValue | string;
declare function _exports(columns: import("postcss-value-parser").ParsedValue): import("postcss-value-parser").ParsedValue | string;
export = _exports;
//# sourceMappingURL=columns.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../src/rules/columns.js"],"names":[],"mappings":"AAgBiB,mCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,OAAO,sBAAsB,EAAE,WAAW,GAAG,MAAM,CAwB9D"}

View File

@@ -1,2 +1,3 @@
declare function _exports(flexFlow: import('postcss-value-parser').ParsedValue): string;
declare function _exports(flexFlow: import("postcss-value-parser").ParsedValue): string;
export = _exports;
//# sourceMappingURL=flexFlow.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"flexFlow.d.ts","sourceRoot":"","sources":["../../src/rules/flexFlow.js"],"names":[],"mappings":"AAgBiB,oCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,CAqBjB"}

View File

@@ -2,14 +2,15 @@
* @param {import('postcss-value-parser').ParsedValue} gridAutoFlow
* @return {import('postcss-value-parser').ParsedValue | string}
*/
export function normalizeGridAutoFlow(gridAutoFlow: import('postcss-value-parser').ParsedValue): import('postcss-value-parser').ParsedValue | string;
export function normalizeGridAutoFlow(gridAutoFlow: import("postcss-value-parser").ParsedValue): import("postcss-value-parser").ParsedValue | string;
/**
* @param {import('postcss-value-parser').ParsedValue} gridGap
* @return {import('postcss-value-parser').ParsedValue | string}
*/
export function normalizeGridColumnRowGap(gridGap: import('postcss-value-parser').ParsedValue): import('postcss-value-parser').ParsedValue | string;
export function normalizeGridColumnRowGap(gridGap: import("postcss-value-parser").ParsedValue): import("postcss-value-parser").ParsedValue | string;
/**
* @param {import('postcss-value-parser').ParsedValue} grid
* @return {string | string[]}
*/
export function normalizeGridColumnRow(grid: import('postcss-value-parser').ParsedValue): string | string[];
export function normalizeGridColumnRow(grid: import("postcss-value-parser").ParsedValue): string | string[];
//# sourceMappingURL=grid.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/rules/grid.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,oDAHW,OAAO,sBAAsB,EAAE,WAAW,GACzC,OAAO,sBAAsB,EAAE,WAAW,GAAG,MAAM,CAoB9D;AAED;;;GAGG;AACH,mDAHW,OAAO,sBAAsB,EAAE,WAAW,GACzC,OAAO,sBAAsB,EAAE,WAAW,GAAG,MAAM,CAkB9D;AAED;;;GAGG;AACH,6CAHW,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,GAAG,MAAM,EAAE,CA0C5B"}

View File

@@ -1,2 +1,3 @@
declare function _exports(listStyle: import('postcss-value-parser').ParsedValue): string;
declare function _exports(listStyle: import("postcss-value-parser").ParsedValue): string;
export = _exports;
//# sourceMappingURL=listStyle.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"listStyle.d.ts","sourceRoot":"","sources":["../../src/rules/listStyle.js"],"names":[],"mappings":"AAYiB,qCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,CAiCjB"}

View File

@@ -1,2 +1,3 @@
declare function _exports(parsed: import('postcss-value-parser').ParsedValue): string;
declare function _exports(parsed: import("postcss-value-parser").ParsedValue): string;
export = _exports;
//# sourceMappingURL=transition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../src/rules/transition.js"],"names":[],"mappings":"AAuEiB,kCAHN,OAAO,sBAAsB,EAAE,WAAW,GACzC,MAAM,CAMjB"}