Current Behavior
As mentioned in #7774, a full npm run lint fails on windows due to non-cross platform implementation
npm run lint
> @flowfuse/flowfuse@2.32.0 lint
> npm-run-all --sequential lint:eslint lint:colors
> @flowfuse/flowfuse@2.32.0 lint:eslint
> eslint forge frontend test
> @flowfuse/flowfuse@2.32.0 lint:colors
> node scripts/lint-colors.js
:[;]*#[0-9A-Fa-f]{3 was unexpected at this time.
'text-' is not recognized as an internal or external command,
operable program or batch file.
.\packages\flowfuse\scripts\lint-colors.js:57
throw e
^
Error: Command failed: grep -rnE '(:?class)\s*=\s*"[^"]*\b(bg-black|text-(red|yellow|blue|green|indigo|teal|purple|gray|grey)-(50|100|200))\b[^"]*"' --include='*.vue' ".\packages\flowfuse\frontend\src"
'text-' is not recognized as an internal or external command,
operable program or batch file.
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:916:11)
at execSync (node:child_process:988:15)
at checkTemplateClasses (.\packages\flowfuse\scripts\lint-colors.js:51:15)
at run (.\packages\flowfuse\scripts\lint-colors.js:109:29)
at Object.<anonymous> (.\packages\flowfuse\scripts\lint-colors.js:163:1)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
at Object..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32) {
status: 255,
signal: null,
output: [
null,
'',
"'text-' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n'
],
pid: 29064,
stdout: '',
stderr: "'text-' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n'
}
Node.js v22.22.0
ERROR: "lint:colors" exited with 1.
Expected Behavior
developers should be able to run lint locally
Steps To Reproduce
run lint on windows dev machine
Environment
- FlowFuse version:
- Node.js version:
- npm version:
- Platform/OS: windows 11
- Browser:
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
Current Behavior
As mentioned in #7774, a full
npm run lintfails on windows due to non-cross platform implementationExpected Behavior
developers should be able to run lint locally
Steps To Reproduce
run lint on windows dev machine
Environment
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate