tailwindcss-patch
Advanced tools
Comparing version 2.0.0-alpha.0 to 2.0.0
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
@@ -79,9 +79,16 @@ import { Rule, Node } from 'postcss'; | ||
filename?: string; | ||
loose?: boolean; | ||
/** | ||
* @description remove * in output json | ||
*/ | ||
removeUniversalSelector?: boolean; | ||
}; | ||
postcss?: { | ||
configDir?: string; | ||
loose?: boolean; | ||
}; | ||
tailwindcss?: {}; | ||
} | ||
type DeepRequired<T> = { | ||
[K in keyof T]: Required<DeepRequired<T[K]>>; | ||
}; | ||
@@ -121,9 +128,6 @@ declare function getCacheOptions(options?: CacheOptions | boolean): InternalCacheOptions; | ||
cacheStrategy?: CacheStrategy; | ||
removeUniversalSelector?: boolean; | ||
}): Set<string>; | ||
getContexts(basedir?: string): TailwindcssRuntimeContext[]; | ||
extract(options: { | ||
configDir: string; | ||
filename: string; | ||
loose: boolean; | ||
}): Promise<string[]>; | ||
extract(options: DeepRequired<UserConfig>): Promise<string | undefined>; | ||
} | ||
@@ -134,3 +138,5 @@ | ||
declare function getClassCaches(basedir?: string): TailwindcssClassCache[]; | ||
declare function getClassCacheSet(basedir?: string): Set<string>; | ||
declare function getClassCacheSet(basedir?: string, options?: { | ||
removeUniversalSelector?: boolean; | ||
}): Set<string>; | ||
@@ -155,3 +161,3 @@ declare function inspectProcessTailwindFeaturesReturnContext(content: string): { | ||
declare function getConfig(): Promise<c12.ResolvedConfig<UserConfig, c12.ConfigLayerMeta>>; | ||
declare function getConfig(): Promise<c12.ResolvedConfig<DeepRequired<UserConfig>, c12.ConfigLayerMeta>>; | ||
declare const defineConfig: c12.DefineConfig<UserConfig, c12.ConfigLayerMeta>; | ||
@@ -163,2 +169,2 @@ | ||
export { CacheManager, CacheOptions, CacheStrategy, InternalCacheOptions, InternalPatchOptions, PatchOptions, TailwindcssClassCache, TailwindcssPatcher, TailwindcssPatcherOptions, TailwindcssRuntimeContext, UserConfig, createPatch, defineConfig, ensureDir, ensureFileContent, getCacheOptions, getClassCacheSet, getClassCaches, getConfig, getContexts, getInstalledPkgJsonPath, getPatchOptions, getTailwindcssEntry, inspectPostcssPlugin, inspectProcessTailwindFeaturesReturnContext, internalPatch, monkeyPatchForExposingContext, requireResolve }; | ||
export { CacheManager, CacheOptions, CacheStrategy, DeepRequired, InternalCacheOptions, InternalPatchOptions, PatchOptions, TailwindcssClassCache, TailwindcssPatcher, TailwindcssPatcherOptions, TailwindcssRuntimeContext, UserConfig, createPatch, defineConfig, ensureDir, ensureFileContent, getCacheOptions, getClassCacheSet, getClassCaches, getConfig, getContexts, getInstalledPkgJsonPath, getPatchOptions, getTailwindcssEntry, inspectPostcssPlugin, inspectProcessTailwindFeaturesReturnContext, internalPatch, monkeyPatchForExposingContext, requireResolve }; |
{ | ||
"name": "tailwindcss-patch", | ||
"version": "2.0.0-alpha.0", | ||
"version": "2.0.0", | ||
"description": "patch tailwindcss for exposing context", | ||
@@ -78,4 +78,4 @@ "exports": { | ||
"test:dev": "vitest", | ||
"cli": "node bin/tw-patch.js" | ||
"cli": "node bin/tw-patch.js install" | ||
} | ||
} |
@@ -10,5 +10,7 @@ # tailwindcss-patch | ||
- [Init Config File](#init-config-file) | ||
- [extract all class into a json](#extract-all-class-into-a-json) | ||
- [Extract all class into a json](#extract-all-class-into-a-json) | ||
- [Nodejs](#nodejs) | ||
- [Migration form v1 to v2](#migration-form-v1-to-v2) | ||
- [2. cli command change](#2-cli-command-change) | ||
- [1. default remove `*` in json array result](#1-default-remove--in-json-array-result) | ||
- [Notice](#notice) | ||
@@ -55,3 +57,3 @@ | ||
### extract all class into a json | ||
### Extract all class into a json | ||
@@ -75,3 +77,3 @@ ```sh | ||
// get all class generated by tailwindcss utilities | ||
twPatcher.getClassCacheSet() | ||
twPatcher.getClassSet() | ||
``` | ||
@@ -81,2 +83,4 @@ | ||
### 2. cli command change | ||
```diff | ||
@@ -89,2 +93,12 @@ { | ||
### 1. default remove `*` in json array result | ||
```diff | ||
[ | ||
- "*", | ||
"text-[99px]", | ||
"text-[100px]" | ||
] | ||
``` | ||
## Notice | ||
@@ -91,0 +105,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
77220
1960
0
106
0