@hsds/colorway
Advanced tools
Comparing version 5.1.0 to 7.0.0
{ | ||
"name": "@hsds/colorway", | ||
"version": "5.1.0", | ||
"version": "7.0.0", | ||
"main": "src/index.js", | ||
@@ -18,10 +18,11 @@ "bin": { | ||
], | ||
"typings": "./src/index.d.ts", | ||
"types": "./src/index.d.ts", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"fast-glob": "^3.2.4", | ||
"minimist": "^1.2.5", | ||
"mkdirp": "^1.0.4", | ||
"tslib": "^2.0.0" | ||
"fast-glob": "3.2.7", | ||
"minimist": "1.2.6", | ||
"mkdirp": "1.0.4", | ||
"util": "0.11.1", | ||
"tslib": "2.4.1" | ||
} | ||
} |
const tslib_1 = require("tslib"); | ||
const { manifestSepToken, readFile, writeClientFile, prettyLog, here, there, } = require('./utils'); | ||
exports.get = (mod) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.get = (mod) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return readFile(here(`./manifests/${mod}`)); | ||
@@ -13,3 +13,3 @@ }); | ||
}; | ||
exports.compile = (mod) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.compile = (mod) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
if (!mod) | ||
@@ -16,0 +16,0 @@ return; |
const tslib_1 = require("tslib"); | ||
const { prettyLog } = require('./utils'); | ||
const { colorConfig } = require('./templates/shared/hsds-react-config'); | ||
exports.find = (color) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.find = (color) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
if (!color) | ||
@@ -23,3 +23,3 @@ return; | ||
}); | ||
exports.closest = (color) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.closest = (color) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
if (!color) | ||
@@ -26,0 +26,0 @@ return; |
@@ -32,3 +32,3 @@ const tslib_1 = require("tslib"); | ||
}; | ||
exports.generate = (props) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.generate = (props) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
try { | ||
@@ -46,3 +46,3 @@ const { name, dest, content } = props; | ||
}); | ||
exports.generateTemplates = () => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.generateTemplates = () => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
console.log(''); | ||
@@ -49,0 +49,0 @@ console.log('Generating hsds template...'); |
@@ -33,3 +33,3 @@ const tslib_1 = require("tslib"); | ||
}; | ||
exports.generate = (props) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.generate = (props) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
try { | ||
@@ -59,3 +59,3 @@ const { name, dest, content } = props; | ||
}); | ||
exports.generateTemplates = () => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
exports.generateTemplates = () => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
console.log(''); | ||
@@ -62,0 +62,0 @@ console.log('Generating templates...'); |
@@ -1,1 +0,1 @@ | ||
export var colorConfig: any; | ||
export const colorConfig: any; |
@@ -1,2 +0,2 @@ | ||
export var warning: string; | ||
export const warning: string; | ||
export { warning as content }; |
@@ -8,3 +8,3 @@ export function inspect(obj: any): void; | ||
export function writeClientFile(dest: any, content: any): void; | ||
export var manifestSepToken: string; | ||
export const manifestSepToken: "\n==COLORWAY-MANIFEST==================\n"; | ||
export function prettyLog(...args: any[]): void; |
44111
5