Skip to content

Commit

Permalink
Create new 'output' script for a short way to run the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 4, 2024
1 parent ec657eb commit 1697736
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/bin/new-app.mjs
Original file line number Diff line number Diff line change
@@ -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}
`);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 1697736

Please sign in to comment.