diff --git a/lib/bin/new-app.mjs b/lib/bin/new-app.mjs new file mode 100644 index 0000000..9b1ed36 --- /dev/null +++ b/lib/bin/new-app.mjs @@ -0,0 +1,24 @@ +/** + * Usage: + * + * pnpm output:new [...flags] + * + * Example: + * + * pnpm output --typescript + * + * + */ + +import { newApp } from '../new-app.mjs'; + +const [, , ...args] = process.argv; + +let name = `my-ember-vite-app`; +let info = await newApp({ name, flags: args }); + +console.info(` + + New app created in ${info.dir} + +`); diff --git a/package.json b/package.json index 2e3a3f9..4db6198 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "scripts": { "lint": "eslint .", "test": "vitest", + "output": "node ./lib/bin/new-app.mjs", "output:fixture": "node ./lib/bin/output-fixture.mjs" }, "dependencies": {