parent
1d071e4789
commit
8095304710
@ -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…
Reference in new issue