Skip to content

Commit 26a97ce

Browse files
author
Kelly Selden
committed
add ember-no-implicit-this-codemod
1 parent 67eeed7 commit 26a97ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manifest.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,13 @@
4141
"projectOptions": ["app", "addon"],
4242
"nodeVersion": "6.0.0",
4343
"commands": ["jscodeshift -t https://raw.githubusercontent.com/simplabs/qunit-dom-codemod/master/qunit-dom-codemod.js ./tests"]
44+
},
45+
"ember-no-implicit-this-codemod": {
46+
"versions": {
47+
"ember-source": "3.12.0"
48+
},
49+
"projectOptions": ["app", "addon"],
50+
"nodeVersion": "8.0.0",
51+
"script": "const execa = require('execa'); 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); }); } }"
4452
}
4553
}

0 commit comments

Comments
 (0)