postcss-style-docs
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -26,2 +26,3 @@ import { Message, Plugin } from 'postcss'; | ||
} | ||
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage; | ||
/** | ||
@@ -31,2 +32,1 @@ * A PostCSS plugin for generating style documentation from source code | ||
export declare const styleDocsPlugin: (opts?: StyleDocsOptions) => Plugin; | ||
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getDocsMessage = exports.styleDocsPlugin = exports.pluginName = void 0; | ||
exports.styleDocsPlugin = exports.getDocsMessage = exports.pluginName = void 0; | ||
/** Clean comments text */ | ||
@@ -24,2 +24,6 @@ function cleanComment(text, commentString, cleanWhitespace) { | ||
}; | ||
function getDocsMessage(messages) { | ||
return messages.find(message => message.plugin === exports.pluginName); | ||
} | ||
exports.getDocsMessage = getDocsMessage; | ||
/** | ||
@@ -87,5 +91,1 @@ * A PostCSS plugin for generating style documentation from source code | ||
exports.styleDocsPlugin = styleDocsPlugin; | ||
function getDocsMessage(messages) { | ||
return messages.find(message => message.plugin === exports.pluginName); | ||
} | ||
exports.getDocsMessage = getDocsMessage; |
@@ -26,2 +26,3 @@ import { Message, Plugin } from 'postcss'; | ||
} | ||
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage; | ||
/** | ||
@@ -31,2 +32,1 @@ * A PostCSS plugin for generating style documentation from source code | ||
export declare const styleDocsPlugin: (opts?: StyleDocsOptions) => Plugin; | ||
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage; |
@@ -21,2 +21,5 @@ /** Clean comments text */ | ||
}; | ||
export function getDocsMessage(messages) { | ||
return messages.find(message => message.plugin === pluginName); | ||
} | ||
/** | ||
@@ -83,4 +86,1 @@ * A PostCSS plugin for generating style documentation from source code | ||
}; | ||
export function getDocsMessage(messages) { | ||
return messages.find(message => message.plugin === pluginName); | ||
} |
{ | ||
"name": "postcss-style-docs", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "PostCSS plugin for dynamically adding documentation to styles", | ||
@@ -21,10 +21,7 @@ "keywords": [ | ||
}, | ||
"main": "lib/cjs/index.js", | ||
"module": "lib/mjs/index.js", | ||
"type": "module", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/mjs/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./lib/mjs/index.js", | ||
"require": "./lib/cjs/index.js" | ||
} | ||
"import": "./lib/cjs/index.js", | ||
"require": "./lib/cjs/index.js" | ||
}, | ||
@@ -31,0 +28,0 @@ "files": [ |
12836
No