tailwind-unwind 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +157 -0
- package/bin/index.js +6 -0
- package/dist/chunk-N7HD4T2I.js +1469 -0
- package/dist/chunk-N7HD4T2I.js.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +63 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.d.ts +265 -0
- package/dist/index.js +69 -0
- package/dist/index.js.map +1 -0
- package/package.json +64 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CLASS_MERGE_CALLEES,
|
|
3
|
+
DEFAULT_CLASS_PREFIX,
|
|
4
|
+
IGNORED_DIRECTORIES,
|
|
5
|
+
IGNORE_PATTERNS,
|
|
6
|
+
analyzeCommand,
|
|
7
|
+
applyCommand,
|
|
8
|
+
assignComponentClassNames,
|
|
9
|
+
buildComponents,
|
|
10
|
+
calculatePotentialReduction,
|
|
11
|
+
dedupeSubsetCombinations,
|
|
12
|
+
extractClassesFromExpression,
|
|
13
|
+
extractFromJSXAttribute,
|
|
14
|
+
findFrequentPatterns,
|
|
15
|
+
findRepeatedClassSets,
|
|
16
|
+
generateCombinations,
|
|
17
|
+
generateCommand,
|
|
18
|
+
generateComponentCss,
|
|
19
|
+
isClassAttribute,
|
|
20
|
+
isStrictSubset,
|
|
21
|
+
normalizeClassPrefix,
|
|
22
|
+
normalizeClasses,
|
|
23
|
+
parseFile,
|
|
24
|
+
parseSource,
|
|
25
|
+
parseSourceToAst,
|
|
26
|
+
printConsoleReport,
|
|
27
|
+
printJsonReport,
|
|
28
|
+
replaceClassNamesInSource,
|
|
29
|
+
scanProject,
|
|
30
|
+
splitClassString,
|
|
31
|
+
suggestClassName,
|
|
32
|
+
walkSourceFiles,
|
|
33
|
+
withClassPrefix
|
|
34
|
+
} from "./chunk-N7HD4T2I.js";
|
|
35
|
+
export {
|
|
36
|
+
CLASS_MERGE_CALLEES,
|
|
37
|
+
DEFAULT_CLASS_PREFIX,
|
|
38
|
+
IGNORED_DIRECTORIES,
|
|
39
|
+
IGNORE_PATTERNS,
|
|
40
|
+
analyzeCommand,
|
|
41
|
+
applyCommand,
|
|
42
|
+
assignComponentClassNames,
|
|
43
|
+
buildComponents,
|
|
44
|
+
calculatePotentialReduction,
|
|
45
|
+
dedupeSubsetCombinations,
|
|
46
|
+
extractClassesFromExpression,
|
|
47
|
+
extractFromJSXAttribute,
|
|
48
|
+
findFrequentPatterns,
|
|
49
|
+
findRepeatedClassSets,
|
|
50
|
+
generateCombinations,
|
|
51
|
+
generateCommand,
|
|
52
|
+
generateComponentCss,
|
|
53
|
+
isClassAttribute,
|
|
54
|
+
isStrictSubset,
|
|
55
|
+
normalizeClassPrefix,
|
|
56
|
+
normalizeClasses,
|
|
57
|
+
parseFile,
|
|
58
|
+
parseSource,
|
|
59
|
+
parseSourceToAst,
|
|
60
|
+
printConsoleReport,
|
|
61
|
+
printJsonReport,
|
|
62
|
+
replaceClassNamesInSource,
|
|
63
|
+
scanProject,
|
|
64
|
+
splitClassString,
|
|
65
|
+
suggestClassName,
|
|
66
|
+
walkSourceFiles,
|
|
67
|
+
withClassPrefix
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tailwind-unwind",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Analyze Tailwind CSS class usage patterns in React/Next.js projects",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"tailwind-unwind": "./bin/index.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"dist",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsup",
|
|
18
|
+
"dev": "tsup --watch",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"test:watch": "vitest",
|
|
21
|
+
"analyze": "node bin/index.js analyze",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"tailwind",
|
|
26
|
+
"tailwindcss",
|
|
27
|
+
"react",
|
|
28
|
+
"nextjs",
|
|
29
|
+
"css",
|
|
30
|
+
"analyzer",
|
|
31
|
+
"cli"
|
|
32
|
+
],
|
|
33
|
+
"author": "AVPletnev",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/AVPletnev/tailwind-unwind.git"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/AVPletnev/tailwind-unwind#readme",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/AVPletnev/tailwind-unwind/issues"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@babel/generator": "^7.27.0",
|
|
48
|
+
"@babel/parser": "^7.27.0",
|
|
49
|
+
"@babel/traverse": "^7.27.0",
|
|
50
|
+
"@babel/types": "^7.27.0",
|
|
51
|
+
"chalk": "^5.4.1",
|
|
52
|
+
"cli-table3": "^0.6.5",
|
|
53
|
+
"commander": "^13.1.0",
|
|
54
|
+
"fast-glob": "^3.3.3"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/babel__generator": "^7.6.8",
|
|
58
|
+
"@types/babel__traverse": "^7.20.7",
|
|
59
|
+
"@types/node": "^22.15.3",
|
|
60
|
+
"tsup": "^8.4.0",
|
|
61
|
+
"typescript": "^5.8.3",
|
|
62
|
+
"vitest": "^3.1.2"
|
|
63
|
+
}
|
|
64
|
+
}
|