Skip to content

Commit 3693727

Browse files
author
Kelly Selden
committed
add ember-no-implicit-this-codemod
1 parent a1031d3 commit 3693727

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
@@ -89,5 +89,13 @@
8989
"projectOptions": ["app", "addon"],
9090
"nodeVersion": "6.0.0",
9191
"commands": ["ember-3x-codemods cp-property-map app/**/*.js"]
92+
},
93+
"ember-no-implicit-this-codemod": {
94+
"versions": {
95+
"ember-source": "3.12.0"
96+
},
97+
"projectOptions": ["app", "addon"],
98+
"nodeVersion": "8.0.0",
99+
"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); }); } }"
92100
}
93101
}

0 commit comments

Comments
 (0)