Allow custom cli parameters for 'remix.init' #7181
KnisterPeter
started this conversation in
Proposals
Replies: 1 comment
-
In the meantime, a workaround is to use environment variables. REMIX_INIT_ARG="Hello World" npx create-remix --template PATH // remix.init/index.js
async function main({ isTypeScript, packageManager, rootDirectory }) {
const arg = process.env.REMIX_INIT_ARG ?? "some default";
console.log("remix.init", arg);
}
module.exports = main; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are building a stack for our company internal apps. This stack has some options devs need to answer during the stack initialization. So far so good, we use inquirer for that.
But for the sake of automating this (e.g. to use it in e2e tests for the stack) we would like to have an option to add custom cli parameters to the
create-remix
command. Like--install
or--typescript
these could be used instead of asking with inquirer.Currently the create command fails with the error
unknown or unexpected option
and does not execute at all.Beta Was this translation helpful? Give feedback.
All reactions