@cobalt-ui/core
Advanced tools
Comparing version 0.0.0 to 0.0.1
import type { Plugin } from './build'; | ||
export interface FigmaMapping { | ||
[url: string]: { | ||
[ComponentName: string]: { | ||
fill?: string | string[]; | ||
fills?: string | string[]; | ||
stroke?: string | string[]; | ||
strokes?: string | string[]; | ||
text?: string | string[]; | ||
}; | ||
}; | ||
} | ||
export interface Config { | ||
@@ -6,2 +17,3 @@ tokens: URL; | ||
plugins: Plugin[]; | ||
figma?: FigmaMapping; | ||
} | ||
@@ -15,2 +27,4 @@ export interface UserConfig { | ||
plugins: Plugin[]; | ||
/** add figma keys */ | ||
figma?: FigmaMapping; | ||
} | ||
@@ -17,0 +31,0 @@ export declare class ConfigLoader { |
@@ -29,3 +29,3 @@ import fs from 'fs'; | ||
async function loadDefaultPlugins() { | ||
return await Promise.all(['@cobalt-ui/plugin-json', '@cobalt-ui/plugin-sass', '@cobalt-ui/plugin-ts'].map((spec) => import(spec).then((m) => m.default()))); | ||
return await Promise.all(['@cobalt-ui/plugin-json'].map((spec) => import(spec).then((m) => m.default()))); | ||
} | ||
@@ -32,0 +32,0 @@ let m = await import(fileURLToPath(this.filePath)); |
{ | ||
"name": "@cobalt-ui/core", | ||
"description": "Schemas and tools for managing design tokens", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"author": { | ||
@@ -9,2 +9,8 @@ "name": "Drew Powers", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/drwpow/cobalt-ui.git", | ||
"directory": "packages/core" | ||
}, | ||
"homepage": "https://cobalt-ui.pages.dev", | ||
"license": "MIT", | ||
@@ -14,6 +20,2 @@ "type": "module", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc", | ||
"dev": "tsc -w" | ||
}, | ||
"dependencies": { | ||
@@ -29,3 +31,7 @@ "@cobalt-ui/plugin-json": "^0.0.0", | ||
"@types/node": "^16.11.7" | ||
}, | ||
"scripts": { | ||
"build": "rm -rf dist && tsc", | ||
"dev": "tsc -w" | ||
} | ||
} | ||
} |
@@ -6,2 +6,14 @@ import type { Plugin } from './build'; | ||
export interface FigmaMapping { | ||
[url: string]: { | ||
[ComponentName: string]: { | ||
fill?: string | string[]; | ||
fills?: string | string[]; | ||
stroke?: string | string[]; | ||
strokes?: string | string[]; | ||
text?: string | string[]; | ||
}; | ||
}; | ||
} | ||
export interface Config { | ||
@@ -11,2 +23,3 @@ tokens: URL; | ||
plugins: Plugin[]; | ||
figma?: FigmaMapping; | ||
} | ||
@@ -21,2 +34,4 @@ | ||
plugins: Plugin[]; | ||
/** add figma keys */ | ||
figma?: FigmaMapping; | ||
} | ||
@@ -50,3 +65,3 @@ | ||
async function loadDefaultPlugins(): Promise<Plugin[]> { | ||
return await Promise.all(['@cobalt-ui/plugin-json', '@cobalt-ui/plugin-sass', '@cobalt-ui/plugin-ts'].map((spec) => import(spec).then((m) => m.default()))); | ||
return await Promise.all(['@cobalt-ui/plugin-json'].map((spec) => import(spec).then((m) => m.default()))); | ||
} | ||
@@ -53,0 +68,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
42851
19
1065
1
3