@techninja/clearstack 0.4.23 → 0.4.24
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/lib/spec-config.js +10 -2
- package/package.json +1 -1
package/lib/spec-config.js
CHANGED
|
@@ -110,8 +110,16 @@ export function buildCmds(projectDir, opts) {
|
|
|
110
110
|
const audit = runner === 'pnpm exec'
|
|
111
111
|
? 'pnpm audit --prod --ignore-registry-errors'
|
|
112
112
|
: 'npm audit --omit=dev';
|
|
113
|
-
const
|
|
114
|
-
const
|
|
113
|
+
const cfg = loadConfig(projectDir);
|
|
114
|
+
const extraIgnoreGlobs = cfg.rawEnv.SPEC_PRETTIER_IGNORE
|
|
115
|
+
? cfg.rawEnv.SPEC_PRETTIER_IGNORE.split(',').map((p) => `"!${p.trim()}"`).join(' ')
|
|
116
|
+
: '';
|
|
117
|
+
const prettier = (cmd) => `${runner} prettier --config .configs/.prettierrc --ignore-path .configs/.prettierignore --${cmd} "src/**/*.{js,css}" "!src/vendor/**" "!src/icons.json"${extraIgnoreGlobs ? ' ' + extraIgnoreGlobs : ''} scripts`;
|
|
118
|
+
const stylelintIgnore = cfg.ignore
|
|
119
|
+
.filter((d) => d.startsWith('src/'))
|
|
120
|
+
.map((d) => ` "!${d.endsWith('/**') ? d : d + '/**'}"`)
|
|
121
|
+
.join('');
|
|
122
|
+
const stylelint = (extra = '') => `${runner} stylelint --config .configs/.stylelintrc.json "src/**/*.css"${stylelintIgnore}${extra}`;
|
|
115
123
|
if (opts?.watch) return {
|
|
116
124
|
lint: `${runner} eslint --config .configs/eslint.config.js .`,
|
|
117
125
|
stylelint: stylelint(),
|
package/package.json
CHANGED