mirror of
https://github.com/jlengrand/create-1.git
synced 2026-03-10 08:11:25 +00:00
18 lines
533 B
JavaScript
18 lines
533 B
JavaScript
import { join } from 'path';
|
|
|
|
const COMMAND_PATH = join(__dirname, '../src/create.js');
|
|
|
|
export function generateCommand({ destinationPath = '.' } = {}) {
|
|
return `node -r @babel/register ${COMMAND_PATH} \
|
|
--destinationPath ${destinationPath} \
|
|
--type scaffold \
|
|
--scaffoldType app \
|
|
--features linting testing demoing building \
|
|
--scaffoldFilesFor testing demoing building \
|
|
--typescript false \
|
|
--tagName scaffold-app \
|
|
--writeToDisk true \
|
|
--installDependencies false
|
|
`;
|
|
}
|