Skip to content

Commit b8e106d

Browse files
author
Kelly Selden
committed
add ember-no-implicit-this-codemod
1 parent 7d80776 commit b8e106d

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
@@ -121,5 +121,13 @@
121121
"projectOptions": ["app", "addon"],
122122
"nodeVersion": "6.0.0",
123123
"commands": ["ember-3x-codemods fpe-computed app/**/*.js"]
124+
},
125+
"ember-no-implicit-this-codemod": {
126+
"versions": {
127+
"ember-source": "3.12.0"
128+
},
129+
"projectOptions": ["app", "addon"],
130+
"nodeVersion": "8.0.0",
131+
"script": "let ps = execa.command(\"ember s\", { stderr: \"inherit\", preferLocal: true }); 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); }); } }"
124132
}
125133
}

0 commit comments

Comments
 (0)