@powerlines/plugin-stylelint 0.1.3 → 0.1.4
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-DqjEOcWu.d.cts +1345 -0
- package/dist/index-DqjEOcWu.d.ts +1345 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +30 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +22 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +22 -0
- package/dist/types/plugin.d.ts +22 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +9 -9
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var types$1=require('@storm-software/config-tools/types'),getParentPath=require('@stryke/fs/get-parent-path'),writeFile=require('@stryke/fs/write-file'),append=require('@stryke/path/append'),join=require('@stryke/path/join'),defu=require('defu'),p=require('stylelint'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var p__default=/*#__PURE__*/_interopDefault(p);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var r=Object.defineProperty;var s=(l,t)=>r(l,"name",{value:t,configurable:true});function a(l={}){return {name:"stylelint",async config(){this.log(types$1.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `stylelint` build plugin.");const t=getParentPath.getParentPath(["stylelint.config.js","stylelint.config.mjs","stylelint.config.cjs","stylelint.config.ts","stylelint.config.mts","stylelint.config.cts",".stylelintrc.js",".stylelintrc.cjs",".stylelintrc.yaml",".stylelintrc.yml",".stylelintrc.json",".stylelintrc"],this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true});return {lint:{stylelint:defu.defu(l,{configFile:t,cwd:join.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel!==null,fix:true})}}},async lint(){this.log(types$1.LogLevelLabel.TRACE,"Linting project files with Stylelint.");const t=await p__default.default.lint(l);if(this.config.lint.stylelint.outputFile&&await writeFile.writeFile(append.appendPath(this.config.lint.stylelint.outputFile,this.config.projectRoot),t.report),!this.config.lint.stylelint.silent){this.log(types$1.LogLevelLabel.INFO,t.report);const o=t.results.map(n=>n.warnings.filter(e=>e.severity==="warning")).reduce((n,e)=>n+e.length,0);o>0?this.log(types$1.LogLevelLabel.WARN,`${o} Stylelint linting warnings found in the listed files.`):t.errored?this.log(types$1.LogLevelLabel.ERROR,"Stylelint linting errors found in the listed files."):this.log(types$1.LogLevelLabel.INFO,"All files pass Stylelint linting.");}}}}s(a,"plugin");var A=a;exports.default=A;exports.plugin=a;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { S as StylelintPluginOptions, P as Plugin, a as StylelintPluginContext } from '../index-DqjEOcWu.cjs';
|
|
2
|
+
export { c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig } from '../index-DqjEOcWu.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
23
|
+
import 'stylelint';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to assist in linting stylesheets with Stylelint.
|
|
27
|
+
*/
|
|
28
|
+
declare function plugin(options?: StylelintPluginOptions): Plugin<StylelintPluginContext>;
|
|
29
|
+
|
|
30
|
+
export { StylelintPluginContext, StylelintPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { S as StylelintPluginOptions, P as Plugin, a as StylelintPluginContext } from '../index-DqjEOcWu.js';
|
|
2
|
+
export { c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig } from '../index-DqjEOcWu.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
23
|
+
import 'stylelint';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to assist in linting stylesheets with Stylelint.
|
|
27
|
+
*/
|
|
28
|
+
declare function plugin(options?: StylelintPluginOptions): Plugin<StylelintPluginContext>;
|
|
29
|
+
|
|
30
|
+
export { StylelintPluginContext, StylelintPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {LogLevelLabel}from'@storm-software/config-tools/types';import {getParentPath}from'@stryke/fs/get-parent-path';import {writeFile}from'@stryke/fs/write-file';import {appendPath}from'@stryke/path/append';import {joinPaths}from'@stryke/path/join';import {defu}from'defu';import p from'stylelint';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var r=Object.defineProperty;var s=(l,t)=>r(l,"name",{value:t,configurable:true});function a(l={}){return {name:"stylelint",async config(){this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `stylelint` build plugin.");const t=getParentPath(["stylelint.config.js","stylelint.config.mjs","stylelint.config.cjs","stylelint.config.ts","stylelint.config.mts","stylelint.config.cts",".stylelintrc.js",".stylelintrc.cjs",".stylelintrc.yaml",".stylelintrc.yml",".stylelintrc.json",".stylelintrc"],this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true});return {lint:{stylelint:defu(l,{configFile:t,cwd:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel!==null,fix:true})}}},async lint(){this.log(LogLevelLabel.TRACE,"Linting project files with Stylelint.");const t=await p.lint(l);if(this.config.lint.stylelint.outputFile&&await writeFile(appendPath(this.config.lint.stylelint.outputFile,this.config.projectRoot),t.report),!this.config.lint.stylelint.silent){this.log(LogLevelLabel.INFO,t.report);const o=t.results.map(n=>n.warnings.filter(e=>e.severity==="warning")).reduce((n,e)=>n+e.length,0);o>0?this.log(LogLevelLabel.WARN,`${o} Stylelint linting warnings found in the listed files.`):t.errored?this.log(LogLevelLabel.ERROR,"Stylelint linting errors found in the listed files."):this.log(LogLevelLabel.INFO,"All files pass Stylelint linting.");}}}}s(a,"plugin");var N=a;export{N as default,a as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { a as StylelintPluginContext, S as StylelintPluginOptions, c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig } from '../index-DqjEOcWu.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
22
|
+
import 'stylelint';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { a as StylelintPluginContext, S as StylelintPluginOptions, c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig } from '../index-DqjEOcWu.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
22
|
+
import 'stylelint';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { a as StylelintPluginContext, S as StylelintPluginOptions, c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig } from '../index-DqjEOcWu.cjs';
|
|
2
|
+
import 'stylelint';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { a as StylelintPluginContext, S as StylelintPluginOptions, c as StylelintPluginResolvedConfig, b as StylelintPluginUserConfig } from '../index-DqjEOcWu.js';
|
|
2
|
+
import 'stylelint';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-stylelint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Stylelint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
"powerlines-plugin"
|
|
94
94
|
],
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@storm-software/config-tools": "^1.188.
|
|
97
|
-
"@stryke/fs": "^0.32.
|
|
98
|
-
"@stryke/path": "^0.
|
|
96
|
+
"@storm-software/config-tools": "^1.188.19",
|
|
97
|
+
"@stryke/fs": "^0.32.10",
|
|
98
|
+
"@stryke/path": "^0.18.5",
|
|
99
99
|
"defu": "^6.1.4",
|
|
100
|
-
"powerlines": "^0.
|
|
100
|
+
"powerlines": "^0.15.0",
|
|
101
101
|
"stylelint": "^16.25.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@powerlines/nx": "^0.
|
|
105
|
-
"@storm-software/tsup": "^0.2.
|
|
106
|
-
"@types/node": "^22.
|
|
104
|
+
"@powerlines/nx": "^0.10.0",
|
|
105
|
+
"@storm-software/tsup": "^0.2.17",
|
|
106
|
+
"@types/node": "^22.19.0"
|
|
107
107
|
},
|
|
108
108
|
"publishConfig": { "access": "public" },
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "b64f9a9d53b6eb8054c361da347f6623a7ba9e45"
|
|
110
110
|
}
|