Skip to content

Commit

Permalink
add ember-no-implicit-this-codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Nov 3, 2019
1 parent a1031d3 commit 3693727
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,13 @@
"projectOptions": ["app", "addon"],
"nodeVersion": "6.0.0",
"commands": ["ember-3x-codemods cp-property-map app/**/*.js"]
},
"ember-no-implicit-this-codemod": {
"versions": {
"ember-source": "3.12.0"
},
"projectOptions": ["app", "addon"],
"nodeVersion": "8.0.0",
"script": "let ps = execa.command('ember s', { stderr: 'inherit' }); ps.stdout.pipe(process.stdout); try { let url = await new Promise((resolve, reject) => { ps.stdout.on('data', data => { let str = data.toString(); let matches = str.match(/^Build successful \\(\\d+ms\\) – Serving on (.*)$/m); if (matches) { resolve(matches[1]); } }); ps.once('error', reject); ps.once('exit', reject); }); await execa.command(`npx ember-no-implicit-this-codemod ${url} app/`, { stdio: 'inherit' }); } finally { if (!ps.exitCode) { ps.kill(); await new Promise(resolve => { ps.once('exit', resolve); }); } }"
}
}

0 comments on commit 3693727

Please sign in to comment.