ember
Version:
A framework for creating ambitious web applications.
34 lines (28 loc) • 867 B
JavaScript
const { spawn } = require('child_process');
const [_node, _bin, ...args] = process.argv;
console.log(
'===================================================================='
);
console.log('');
console.log(
' The `ember` node module is a placeholder, you may be looking for:'
);
console.log('');
console.log(' * `ember-cli` (the command line tool) ');
console.log(' * `ember-source` (the framework code) ');
console.log('');
console.log(' Visit https://emberjs.com/ for more details');
console.log('');
console.log(
'===================================================================='
);
if (args.includes('--postinstall')) {
return;
}
console.log('');
console.log(
` Forwarding request to ember-cli via \`npx ember-cli ${args.join(' ')}\``
);
spawn('npx', ['ember-cli', ...args], {
stdio: 'inherit',
}).on('exit', code => process.exit(code));