create scripts

pull/3939/head
bunsenstraat 1 year ago committed by bunsenstraat
parent d5edd7f130
commit aec6e78b2e
  1. 23
      lint-fix-targets.js
  2. 3
      lintfix.sh
  3. 9593
      projects.json

@ -0,0 +1,23 @@
const { spawnSync, execSync } = require('child_process')
const fs = require('fs')
const { exit } = require('process')
execSync('yarn nx graph --file=./projects.json')
const file = fs.readFileSync('projects.json')
const projects = JSON.parse(file)
console.log(Object.keys(projects.graph.nodes))
for(let node of Object.keys(projects.graph.nodes)){
if(projects.graph.nodes[node].data.targets.lint){
console.log(projects.graph.nodes[node].data.name)
const result = spawnSync('yarn', ['lint', projects.graph.nodes[node].data.name], '--fix')
if(result.status == 0){
console.log('success')
}else{
console.log(result.stdout.toString())
console.log(result.stderr.toString())
}
}
}

@ -0,0 +1,3 @@
yarn nx run remix-ui:lint --fix
yarn nx run remix-ide:lint --fix

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save