Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom templates #441

Open
MerrickGit opened this issue Jan 23, 2020 · 7 comments
Open

Custom templates #441

MerrickGit opened this issue Jan 23, 2020 · 7 comments
Labels
kind: feature New feature or request

Comments

@MerrickGit
Copy link

MerrickGit commented Jan 23, 2020

tsdx is't silver bullet, but it can be.

Current Behavior

May be I just did't find this feature, but tsdx can't create custom templates.

Suggested Solution

Create package based on remote template.

Example:
tsdx create your_new_package --remote-template=https://github.com/user/prototype

Step by step instruction:

  1. tsdx download template
  2. Find into repo config file.
  3. add template to templates and config to configs.
  4. do usual work

Who does this impact? Who is this for?

People are using monorepo.

Additional context

We create big monorepo(about 300 packages) and we use tsdx, but we spend a lot of time creating/copying the same type of files(configs/structure/libraries) instead of use template.

@ambroseus
Copy link
Contributor

+1
#409 (comment)

@MerrickGit
Copy link
Author

@jaredpalmer i see its so demanded features. What do you think about it?

@jaredpalmer
Copy link
Owner

Yeah, that’s fine. Probs can copy logic from create-react-app

@MerrickGit
Copy link
Author

@jaredpalmer @sw-yx can you see my comment in PR? What do you think?

@swyxio
Copy link
Collaborator

swyxio commented Jan 29, 2020

i'm fine with it, gonna leave this one up to jared to see if he wants to merge first and iterate or require remote

@benjlevesque
Copy link

I submitted another proposal for this, with support for remote templates (npm could be added easily I guess).
It reuses the --template option instead of introducing a new one.

See #502.

@ambroseus
Copy link
Contributor

🤔 what about this one: https://github.com/jondot/hygen

@agilgur5 agilgur5 added the kind: feature New feature or request label Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: feature New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants