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 Oct 10, 2019
1 parent d43451c commit de5900f
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 @@ -57,5 +57,13 @@
"projectOptions": ["app", "addon"],
"nodeVersion": "6.0.0",
"commands": ["ember-3x-codemods deprecate-merge 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 de5900f

Please sign in to comment.