Skip to content

Commit

Permalink
Merge pull request #101 from embroider-build/create-new-output-command
Browse files Browse the repository at this point in the history
Create new 'output' script for a short way to run the generator
  • Loading branch information
NullVoxPopuli authored Oct 7, 2024
2 parents 117c16d + 1697736 commit 9506e01
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 9506e01

Please sign in to comment.