Comparing version 1.4.37 to 1.4.39
@@ -0,1 +1,2 @@ | ||
// eslint-disable-next-line import/unambiguous | ||
declare module '*.css' { | ||
@@ -2,0 +3,0 @@ export const className: Record<string, string>; |
@@ -0,5 +1,7 @@ | ||
// eslint-disable-next-line import/unambiguous | ||
declare module 'postcss-scss' { | ||
import type {Parser, Stringifier} from 'postcss'; | ||
export const parse: Parser; | ||
export const stringify: Stringifier; | ||
} |
@@ -12,3 +12,2 @@ export * from './minifier/ast'; | ||
export * from './minifier/types'; | ||
export * from './minifier/walker'; | ||
export * from './postcssPlugin/createTransformer'; | ||
@@ -27,6 +26,7 @@ export * from './postcssPlugin/getDependencies'; | ||
export * from './postcssPlugin/types'; | ||
export * from './runner/Session'; | ||
export * from './runner/extractPluginResult'; | ||
export * from './runner/generateScript'; | ||
export * from './runner/getCSSParserConfiguration'; | ||
export * from './runner/getChokidarOptions'; | ||
export * from './runner/getCSSParserConfiguration'; | ||
export * from './runner/getExtensionOption'; | ||
@@ -37,3 +37,2 @@ export * from './runner/getIncludePatterns'; | ||
export * from './runner/parseCSS'; | ||
export * from './runner/Session'; | ||
export * from './runner/types'; | ||
@@ -52,3 +51,2 @@ export * from './runner/waitForInitialScanCompletion'; | ||
export * from './util/normalizePath'; | ||
export * from './util/postcss'; | ||
export * from './util/runCode.for-test'; | ||
@@ -55,0 +53,0 @@ export * from './util/serialize'; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -24,3 +28,2 @@ if (k2 === undefined) k2 = k; | ||
__exportStar(require("./minifier/types"), exports); | ||
__exportStar(require("./minifier/walker"), exports); | ||
__exportStar(require("./postcssPlugin/createTransformer"), exports); | ||
@@ -39,6 +42,7 @@ __exportStar(require("./postcssPlugin/getDependencies"), exports); | ||
__exportStar(require("./postcssPlugin/types"), exports); | ||
__exportStar(require("./runner/Session"), exports); | ||
__exportStar(require("./runner/extractPluginResult"), exports); | ||
__exportStar(require("./runner/generateScript"), exports); | ||
__exportStar(require("./runner/getCSSParserConfiguration"), exports); | ||
__exportStar(require("./runner/getChokidarOptions"), exports); | ||
__exportStar(require("./runner/getCSSParserConfiguration"), exports); | ||
__exportStar(require("./runner/getExtensionOption"), exports); | ||
@@ -49,3 +53,2 @@ __exportStar(require("./runner/getIncludePatterns"), exports); | ||
__exportStar(require("./runner/parseCSS"), exports); | ||
__exportStar(require("./runner/Session"), exports); | ||
__exportStar(require("./runner/types"), exports); | ||
@@ -64,3 +67,2 @@ __exportStar(require("./runner/waitForInitialScanCompletion"), exports); | ||
__exportStar(require("./util/normalizePath"), exports); | ||
__exportStar(require("./util/postcss"), exports); | ||
__exportStar(require("./util/runCode.for-test"), exports); | ||
@@ -67,0 +69,0 @@ __exportStar(require("./util/serialize"), exports); |
import type * as acorn from 'acorn'; | ||
import type { ImportDeclaration, VariableDeclaration, FunctionDeclaration } from './walker'; | ||
export declare const normalizeHelperId: (id: string) => string; | ||
export declare const findAddStyleImport: (ast: acorn.Node, helperId: string, localName?: string | undefined) => { | ||
export declare const findAddStyleImport: (ast: acorn.Node, helperId: string, localName?: string) => { | ||
name: string; | ||
node: FunctionDeclaration | ImportDeclaration | VariableDeclaration; | ||
}; |
@@ -0,3 +1,3 @@ | ||
import type { IdGenerator } from '../util/createIdGenerator'; | ||
import type { CSSRange } from './types'; | ||
import type { IdGenerator } from '../util/createIdGenerator'; | ||
export declare const minifyCSSInScript: (script: string, cssRanges: Array<CSSRange>, idGenerator: IdGenerator) => string; |
@@ -5,2 +5,3 @@ "use strict"; | ||
const fs = require("fs"); | ||
const updateFile_1 = require("../util/updateFile"); | ||
const createOptimizedIdGenerator_1 = require("./createOptimizedIdGenerator"); | ||
@@ -10,3 +11,2 @@ const parseScripts_1 = require("./parseScripts"); | ||
const setDictionary_1 = require("./setDictionary"); | ||
const updateFile_1 = require("../util/updateFile"); | ||
const { readFile } = fs.promises; | ||
@@ -13,0 +13,0 @@ const minifyScripts = async (props) => { |
@@ -5,4 +5,4 @@ "use strict"; | ||
const fs = require("fs"); | ||
const tokenizeString_1 = require("../util/tokenizeString"); | ||
const parseCSSModuleScript_1 = require("./parseCSSModuleScript"); | ||
const tokenizeString_1 = require("../util/tokenizeString"); | ||
const cache = new Map(); | ||
@@ -9,0 +9,0 @@ const parseScripts = async ({ files, cssKey }) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createTransformer = void 0; | ||
const normalizePath_1 = require("../util/normalizePath"); | ||
const transformDeclarations_1 = require("./transformDeclarations"); | ||
@@ -10,3 +11,2 @@ const getImports_1 = require("./getImports"); | ||
const removeImportsAndRaws_1 = require("./removeImportsAndRaws"); | ||
const normalizePath_1 = require("../util/normalizePath"); | ||
const createTransformer = ({ mangler, rawPrefix }) => async (root, result) => { | ||
@@ -13,0 +13,0 @@ const id = (0, normalizePath_1.normalizePath)(result.opts.from || Date.now().toString(36)); |
import type { Plugin } from 'postcss'; | ||
import type { PluginOptions } from './types'; | ||
export declare const PluginName = "esifycss"; | ||
export declare const plugin: ((props?: PluginOptions | undefined) => Plugin) & { | ||
export declare const plugin: ((props?: PluginOptions) => Plugin) & { | ||
postcss: boolean; | ||
}; |
/// <reference types="node" /> | ||
import * as fs from 'fs'; | ||
import * as chokidar from 'chokidar'; | ||
import type { ExposedPromise } from '../util/createExposedPromise'; | ||
import type { SessionOptions, SessionConfiguration } from './types'; | ||
import type { ExposedPromise } from '../util/createExposedPromise'; | ||
export declare class Session { | ||
@@ -7,0 +7,0 @@ readonly configuration: Readonly<SessionConfiguration>; |
@@ -5,9 +5,4 @@ "use strict"; | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const chokidar = require("chokidar"); | ||
const path = require("path"); | ||
const getSessionConfiguration_1 = require("./getSessionConfiguration"); | ||
const parseCSS_1 = require("./parseCSS"); | ||
const extractPluginResult_1 = require("./extractPluginResult"); | ||
const generateScript_1 = require("./generateScript"); | ||
const waitForInitialScanCompletion_1 = require("./waitForInitialScanCompletion"); | ||
const minifyScripts_1 = require("../minifier/minifyScripts"); | ||
@@ -19,2 +14,7 @@ const createExposedPromise_1 = require("../util/createExposedPromise"); | ||
const serialize_1 = require("../util/serialize"); | ||
const waitForInitialScanCompletion_1 = require("./waitForInitialScanCompletion"); | ||
const generateScript_1 = require("./generateScript"); | ||
const extractPluginResult_1 = require("./extractPluginResult"); | ||
const parseCSS_1 = require("./parseCSS"); | ||
const getSessionConfiguration_1 = require("./getSessionConfiguration"); | ||
const { copyFile } = fs.promises; | ||
@@ -21,0 +21,0 @@ class Session { |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import type { Writable } from 'stream'; | ||
import type { Matcher } from 'anymatch'; | ||
import type { AwaitWriteFinishOptions, WatchOptions } from 'chokidar'; | ||
import type { Writable } from 'stream'; | ||
import type { AcceptedPlugin, ProcessOptions, SourceMapOptions } from 'postcss'; | ||
@@ -6,0 +7,0 @@ import type { PluginOptions } from '../postcssPlugin/types'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decodeString = exports.encodeString = void 0; | ||
const vlq = require("vlq"); | ||
const tokenizeString_1 = require("./tokenizeString"); | ||
const vlq = require("vlq"); | ||
const encodeString = (string, idGenerator) => { | ||
@@ -7,0 +7,0 @@ const encoded = []; |
@@ -1,1 +0,1 @@ | ||
export var postcss: typeof import("postcss"); | ||
export const postcss: typeof import("postcss"); |
@@ -8,3 +8,3 @@ "use strict"; | ||
const postcss = require("postcss"); | ||
const createSandbox_for_test_1 = require("../util/createSandbox.for-test"); | ||
const createSandbox_for_test_1 = require("./createSandbox.for-test"); | ||
const updateFile_1 = require("./updateFile"); | ||
@@ -11,0 +11,0 @@ const runCode = async (file) => { |
{ | ||
"name": "esifycss", | ||
"version": "1.4.37", | ||
"version": "1.4.39", | ||
"description": "Generates .js or .ts exports class names and custom properties", | ||
@@ -27,3 +27,3 @@ "author": { | ||
"build:cleanup": "rimraf lib src/helper/*.js", | ||
"build:index": "npx @nlib/indexen --input src --exclude '**/bin/*' --exclude '**/helper/*' --exclude '*.test.*' --exclude '*.d.ts' --output src/index.ts", | ||
"build:index": "nlib-indexen --exclude '**/bin/*' --exclude '**/helper/*' --exclude '**/*.(test|d).*' --exclude '*.d.ts' --output src/index.ts \"./**/*.ts\"", | ||
"build:tsc": "tsc --project tsconfig.build.json", | ||
@@ -49,4 +49,4 @@ "build:dts": "ts-node scripts/copy ./src/minifier/walker.d.ts ./lib/minifier/walker.d.ts", | ||
"test-client": "ava --config ava.config.client.cjs", | ||
"version": "run-s version:changelog version:add", | ||
"version:changelog": "npx @nlib/changelog --output CHANGELOG.md", | ||
"version": "run-s build:index version:*", | ||
"version:changelog": "nlib-changelog --output CHANGELOG.md", | ||
"version:add": "git add ." | ||
@@ -56,10 +56,10 @@ }, | ||
"@hookun/parse-animation-shorthand": "0.1.2", | ||
"acorn": "8.6.0", | ||
"acorn": "8.8.0", | ||
"acorn-walk": "8.2.0", | ||
"chokidar": "3.5.2", | ||
"commander": "8.3.0", | ||
"postcss": "8.4.1", | ||
"postcss-selector-parser": "6.0.6", | ||
"chokidar": "3.5.3", | ||
"commander": "9.4.0", | ||
"postcss": "8.4.16", | ||
"postcss-selector-parser": "6.0.10", | ||
"vlq": "2.0.4" | ||
} | ||
} |
102167
2022
+ Addedacorn@8.8.0(transitive)
+ Addedchokidar@3.5.3(transitive)
+ Addedcommander@9.4.0(transitive)
+ Addedpostcss@8.4.16(transitive)
+ Addedpostcss-selector-parser@6.0.10(transitive)
- Removedacorn@8.6.0(transitive)
- Removedchokidar@3.5.2(transitive)
- Removedcommander@8.3.0(transitive)
- Removedpostcss@8.4.1(transitive)
- Removedpostcss-selector-parser@6.0.6(transitive)
Updatedacorn@8.8.0
Updatedchokidar@3.5.3
Updatedcommander@9.4.0
Updatedpostcss@8.4.16