@design-sync/manager
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -1,2 +0,2 @@ | ||
import { TokensWalker, TokensWalkerExtension, TokensWalkerFilter } from '@design-sync/w3c-dtfm'; | ||
import { TokensWalker, TokensWalkerOptions } from '@design-sync/w3c-dtfm'; | ||
import * as consola_dist_core from 'consola/dist/core'; | ||
@@ -14,5 +14,7 @@ | ||
declare class TokensManager { | ||
private logger; | ||
private plugins; | ||
private walker; | ||
private config; | ||
constructor(logger?: consola_dist_core.ConsolaInstance); | ||
getWalker(): TokensWalker; | ||
@@ -22,3 +24,3 @@ getLogger(): consola_dist_core.ConsolaInstance; | ||
private fetch; | ||
private registerPluginsAndExtensions; | ||
private setWalkerOptions; | ||
run(configOverride?: Partial<DesignSyncConfig>, tokens?: Record<string, unknown>): Promise<void>; | ||
@@ -28,14 +30,33 @@ use(plugin: TokensManagerPlugin | TokensManagerPlugin[]): void; | ||
interface DesignSyncConfig { | ||
/** | ||
* Design Sync TokensManager configuration | ||
*/ | ||
interface DesignSyncConfig extends TokensWalkerOptions { | ||
/** | ||
* remote repository uri to fetch the tokens from | ||
*/ | ||
uri: string; | ||
/** | ||
* output directory for the generated files | ||
*/ | ||
out: string; | ||
/** | ||
* authentication token to be used for fetching the tokens from the remote repository (if needed) | ||
* @default undefined | ||
*/ | ||
auth?: string; | ||
/** | ||
* current working directory to be used for resolving the config file and the output directory | ||
* @default process.cwd() | ||
*/ | ||
cwd?: string; | ||
/** | ||
* plugins to be used during the build process | ||
*/ | ||
plugins: TokensManagerPlugin[]; | ||
schemaExtensions?: TokensWalkerExtension[]; | ||
disableDefaultSchemaExtensions?: boolean; | ||
/** | ||
* format the generated files using prettier | ||
* @default false | ||
*/ | ||
prettify?: boolean; | ||
requiredModes?: string[]; | ||
defaultMode?: string; | ||
filter?: TokensWalkerFilter; | ||
} | ||
@@ -42,0 +63,0 @@ |
{ | ||
"name": "@design-sync/manager", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Plugable design tokens manager", | ||
@@ -20,3 +20,3 @@ "repository": "salamaashoush/design-sync", | ||
"@design-sync/utils": "0.4.0", | ||
"@design-sync/w3c-dtfm": "0.7.0" | ||
"@design-sync/w3c-dtfm": "0.8.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "peerDependencies": { |
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
24709
441
+ Added@design-sync/w3c-dtfm@0.8.0(transitive)
- Removed@design-sync/w3c-dtfm@0.7.0(transitive)
Updated@design-sync/w3c-dtfm@0.8.0