@getkist/action-sass 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +311 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{actions/StyleProcessingAction/StyleProcessingAction.d.ts → index.d.cts} +77 -5
- package/dist/index.d.ts +153 -7
- package/dist/index.mjs +279 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +21 -13
- package/dist/actions/StyleProcessingAction/StyleProcessingAction.d.ts.map +0 -1
- package/dist/actions/StyleProcessingAction/StyleProcessingAction.js +0 -215
- package/dist/actions/StyleProcessingAction/StyleProcessingAction.js.map +0 -1
- package/dist/actions/StyleProcessingAction/index.d.ts +0 -3
- package/dist/actions/StyleProcessingAction/index.d.ts.map +0 -1
- package/dist/actions/StyleProcessingAction/index.js +0 -5
- package/dist/actions/StyleProcessingAction/index.js.map +0 -1
- package/dist/actions/StyleProcessingAction/postcss.config.compressed.d.ts +0 -11
- package/dist/actions/StyleProcessingAction/postcss.config.compressed.d.ts.map +0 -1
- package/dist/actions/StyleProcessingAction/postcss.config.compressed.js +0 -26
- package/dist/actions/StyleProcessingAction/postcss.config.compressed.js.map +0 -1
- package/dist/actions/StyleProcessingAction/postcss.config.expanded.d.ts +0 -11
- package/dist/actions/StyleProcessingAction/postcss.config.expanded.d.ts.map +0 -1
- package/dist/actions/StyleProcessingAction/postcss.config.expanded.js +0 -20
- package/dist/actions/StyleProcessingAction/postcss.config.expanded.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- package/dist/types/Action.d.ts +0 -70
- package/dist/types/Action.d.ts.map +0 -1
- package/dist/types/Action.js +0 -56
- package/dist/types/Action.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import autoprefixer from "autoprefixer";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration object for PostCSS that includes plugins for optimization and compression
|
|
4
|
-
* of CSS. This setup is typically used for production builds where minimized CSS is preferred
|
|
5
|
-
* to reduce file size and improve loading times.
|
|
6
|
-
*/
|
|
7
|
-
declare const postcssConfigCompressed: {
|
|
8
|
-
plugins: (typeof autoprefixer | import("postcss").Processor)[];
|
|
9
|
-
};
|
|
10
|
-
export default postcssConfigCompressed;
|
|
11
|
-
//# sourceMappingURL=postcss.config.compressed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcss.config.compressed.d.ts","sourceRoot":"","sources":["../../../src/actions/StyleProcessingAction/postcss.config.compressed.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,MAAM,cAAc,CAAC;AAOxC;;;;GAIG;AACH,QAAA,MAAM,uBAAuB;;CAO5B,CAAC;AAMF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// Import
|
|
3
|
-
// ============================================================================
|
|
4
|
-
import autoprefixer from "autoprefixer";
|
|
5
|
-
import cssnano from "cssnano";
|
|
6
|
-
// ============================================================================
|
|
7
|
-
// Constants
|
|
8
|
-
// ============================================================================
|
|
9
|
-
/**
|
|
10
|
-
* Configuration object for PostCSS that includes plugins for optimization and compression
|
|
11
|
-
* of CSS. This setup is typically used for production builds where minimized CSS is preferred
|
|
12
|
-
* to reduce file size and improve loading times.
|
|
13
|
-
*/
|
|
14
|
-
const postcssConfigCompressed = {
|
|
15
|
-
plugins: [
|
|
16
|
-
autoprefixer,
|
|
17
|
-
cssnano({
|
|
18
|
-
preset: "default",
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
21
|
-
};
|
|
22
|
-
// ============================================================================
|
|
23
|
-
// Export
|
|
24
|
-
// ============================================================================
|
|
25
|
-
export default postcssConfigCompressed;
|
|
26
|
-
//# sourceMappingURL=postcss.config.compressed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcss.config.compressed.js","sourceRoot":"","sources":["../../../src/actions/StyleProcessingAction/postcss.config.compressed.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,+EAA+E;AAC/E,YAAY;AACZ,+EAA+E;AAE/E;;;;GAIG;AACH,MAAM,uBAAuB,GAAG;IAC5B,OAAO,EAAE;QACL,YAAY;QACZ,OAAO,CAAC;YACJ,MAAM,EAAE,SAAS;SACpB,CAAC;KACL;CACJ,CAAC;AAEF,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import autoprefixer from "autoprefixer";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration object for PostCSS that focuses on generating expanded, readable CSS
|
|
4
|
-
* for development environments. Includes plugins that enhance CSS handling like nesting,
|
|
5
|
-
* variable support, and import inlining, alongside autoprefixer for browser compatibility.
|
|
6
|
-
*/
|
|
7
|
-
declare const postcssConfigExpanded: {
|
|
8
|
-
plugins: (typeof autoprefixer)[];
|
|
9
|
-
};
|
|
10
|
-
export default postcssConfigExpanded;
|
|
11
|
-
//# sourceMappingURL=postcss.config.expanded.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcss.config.expanded.d.ts","sourceRoot":"","sources":["../../../src/actions/StyleProcessingAction/postcss.config.expanded.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,MAAM,cAAc,CAAC;AAMxC;;;;GAIG;AACH,QAAA,MAAM,qBAAqB;;CAE1B,CAAC;AAMF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// Import
|
|
3
|
-
// ============================================================================
|
|
4
|
-
import autoprefixer from "autoprefixer";
|
|
5
|
-
// ============================================================================
|
|
6
|
-
// Constants
|
|
7
|
-
// ============================================================================
|
|
8
|
-
/**
|
|
9
|
-
* Configuration object for PostCSS that focuses on generating expanded, readable CSS
|
|
10
|
-
* for development environments. Includes plugins that enhance CSS handling like nesting,
|
|
11
|
-
* variable support, and import inlining, alongside autoprefixer for browser compatibility.
|
|
12
|
-
*/
|
|
13
|
-
const postcssConfigExpanded = {
|
|
14
|
-
plugins: [autoprefixer],
|
|
15
|
-
};
|
|
16
|
-
// ============================================================================
|
|
17
|
-
// Export
|
|
18
|
-
// ============================================================================
|
|
19
|
-
export default postcssConfigExpanded;
|
|
20
|
-
//# sourceMappingURL=postcss.config.expanded.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcss.config.expanded.js","sourceRoot":"","sources":["../../../src/actions/StyleProcessingAction/postcss.config.expanded.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,OAAO,YAAY,MAAM,cAAc,CAAC;AAExC,+EAA+E;AAC/E,YAAY;AACZ,+EAA+E;AAE/E;;;;GAIG;AACH,MAAM,qBAAqB,GAAG;IAC1B,OAAO,EAAE,CAAC,YAAY,CAAC;CAC1B,CAAC;AAEF,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,eAAe,qBAAqB,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,YAAY,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAM3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,QAAA,MAAM,MAAM,EAAE,YAWb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// Export
|
|
3
|
-
// ============================================================================
|
|
4
|
-
export { StyleProcessingAction } from "./actions/StyleProcessingAction/index.js";
|
|
5
|
-
export { Action } from "./types/Action.js";
|
|
6
|
-
import { StyleProcessingAction } from "./actions/StyleProcessingAction/index.js";
|
|
7
|
-
const plugin = {
|
|
8
|
-
version: "1.0.4",
|
|
9
|
-
description: "SASS/SCSS compilation with PostCSS processing for kist",
|
|
10
|
-
author: "kist",
|
|
11
|
-
repository: "https://github.com/getkist/kist-action-sass",
|
|
12
|
-
keywords: ["kist", "kist-action", "sass", "scss", "postcss", "css"],
|
|
13
|
-
registerActions() {
|
|
14
|
-
return {
|
|
15
|
-
StyleProcessingAction,
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export default plugin;
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAgB,MAAM,mBAAmB,CAAC;AAQzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,MAAM,GAAiB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,6CAA6C;IACzD,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC;IACnE,eAAe;QACX,OAAO;YACH,qBAAqB;SACxB,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/types/Action.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base Action types for kist action plugins
|
|
3
|
-
* These types match the kist Action interface for compatibility
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Action options type - a generic record of key-value pairs
|
|
7
|
-
*/
|
|
8
|
-
export type ActionOptionsType = Record<string, unknown>;
|
|
9
|
-
/**
|
|
10
|
-
* Abstract base class for all kist actions
|
|
11
|
-
* Provides logging and execution interface
|
|
12
|
-
*/
|
|
13
|
-
export declare abstract class Action<T extends ActionOptionsType = ActionOptionsType> {
|
|
14
|
-
/**
|
|
15
|
-
* Gets the unique name of the action.
|
|
16
|
-
*/
|
|
17
|
-
get name(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Validates options before execution
|
|
20
|
-
* Override in subclasses for specific validation
|
|
21
|
-
*/
|
|
22
|
-
validateOptions(_options: T): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Execute the action with given options
|
|
25
|
-
* Must be implemented by subclasses
|
|
26
|
-
*/
|
|
27
|
-
abstract execute(options: T): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Provides a description of the action
|
|
30
|
-
*/
|
|
31
|
-
describe(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Log an info message
|
|
34
|
-
*/
|
|
35
|
-
protected logInfo(message: string): void;
|
|
36
|
-
/**
|
|
37
|
-
* Log an error message
|
|
38
|
-
*/
|
|
39
|
-
protected logError(message: string, error?: unknown): void;
|
|
40
|
-
/**
|
|
41
|
-
* Log a debug message
|
|
42
|
-
*/
|
|
43
|
-
protected logDebug(message: string): void;
|
|
44
|
-
/**
|
|
45
|
-
* Log a warning message
|
|
46
|
-
*/
|
|
47
|
-
protected logWarning(message: string): void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Plugin interface for kist action packages
|
|
51
|
-
*/
|
|
52
|
-
export interface ActionPlugin {
|
|
53
|
-
/** Plugin name */
|
|
54
|
-
name?: string;
|
|
55
|
-
/** Plugin version */
|
|
56
|
-
version: string;
|
|
57
|
-
/** Plugin description */
|
|
58
|
-
description?: string;
|
|
59
|
-
/** Plugin author */
|
|
60
|
-
author?: string;
|
|
61
|
-
/** Repository URL */
|
|
62
|
-
repository?: string;
|
|
63
|
-
/** Keywords */
|
|
64
|
-
keywords?: string[];
|
|
65
|
-
/** Map of action names to action classes */
|
|
66
|
-
actions?: Record<string, new () => Action>;
|
|
67
|
-
/** Register actions method */
|
|
68
|
-
registerActions?: () => Record<string, new () => Action>;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=Action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/types/Action.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD;;;GAGG;AACH,8BAAsB,MAAM,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB;IACxE;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;OAGG;IACH,eAAe,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO;IAIrC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3C;;OAEG;IACH,QAAQ,IAAI,MAAM;IAIlB;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIxC;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAI1D;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAMzC;;OAEG;IACH,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG9C;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,MAAM,CAAC,CAAC;IAC3C,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,MAAM,CAAC,CAAC;CAC5D"}
|
package/dist/types/Action.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base Action types for kist action plugins
|
|
3
|
-
* These types match the kist Action interface for compatibility
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Abstract base class for all kist actions
|
|
7
|
-
* Provides logging and execution interface
|
|
8
|
-
*/
|
|
9
|
-
export class Action {
|
|
10
|
-
/**
|
|
11
|
-
* Gets the unique name of the action.
|
|
12
|
-
*/
|
|
13
|
-
get name() {
|
|
14
|
-
return this.constructor.name;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Validates options before execution
|
|
18
|
-
* Override in subclasses for specific validation
|
|
19
|
-
*/
|
|
20
|
-
validateOptions(_options) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Provides a description of the action
|
|
25
|
-
*/
|
|
26
|
-
describe() {
|
|
27
|
-
return `${this.name} action`;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Log an info message
|
|
31
|
-
*/
|
|
32
|
-
logInfo(message) {
|
|
33
|
-
console.log(`[${this.name}] ${message}`);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Log an error message
|
|
37
|
-
*/
|
|
38
|
-
logError(message, error) {
|
|
39
|
-
console.error(`[${this.name}] ERROR: ${message}`, error || "");
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Log a debug message
|
|
43
|
-
*/
|
|
44
|
-
logDebug(message) {
|
|
45
|
-
if (process.env.DEBUG) {
|
|
46
|
-
console.debug(`[${this.name}] DEBUG: ${message}`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Log a warning message
|
|
51
|
-
*/
|
|
52
|
-
logWarning(message) {
|
|
53
|
-
console.warn(`[${this.name}] WARNING: ${message}`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=Action.js.map
|
package/dist/types/Action.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../src/types/Action.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH;;;GAGG;AACH,MAAM,OAAgB,MAAM;IACxB;;OAEG;IACH,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACjC,CAAC;IAED;;;OAGG;IACH,eAAe,CAAC,QAAW;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAQD;;OAEG;IACH,QAAQ;QACJ,OAAO,GAAG,IAAI,CAAC,IAAI,SAAS,CAAC;IACjC,CAAC;IAED;;OAEG;IACO,OAAO,CAAC,OAAe;QAC7B,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACO,QAAQ,CAAC,OAAe,EAAE,KAAe;QAC/C,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,YAAY,OAAO,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACO,QAAQ,CAAC,OAAe;QAC9B,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,YAAY,OAAO,EAAE,CAAC,CAAC;QACtD,CAAC;IACL,CAAC;IAED;;OAEG;IACO,UAAU,CAAC,OAAe;QAChC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,cAAc,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ"}
|