Setup a Template-CLI for Quickly Instantiating Projects

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 18

  • @MrPeepa
    @MrPeepa 5 месяцев назад

    Exactly what i was looking for! You've just earned a subscriber my dude!

  • @danieltkach2330
    @danieltkach2330 Год назад

    Awesome stuff!!! Please keep up the good work. You do "different" kind of stuff. I was bored of basic beginner tutorials. Thank you for this.

  • @muratasarslan2359
    @muratasarslan2359 3 года назад +1

    Awesome Leo! Your effort on these videos are really of the highest appreciation and helped me a lot. Please continue :-)

  • @j.erlandsson
    @j.erlandsson Год назад

    Very well explained. Cheers for this video. I'll definitely use your GH project as base for mine. 👍

  • @emersonjjsouza
    @emersonjjsouza 2 года назад

    Awesome tutorial! Everthing works on my setup serverless-template thanks :)

  • @dimitrisqq
    @dimitrisqq Год назад

    Hey Leo thanks for the video! I have 2 questions: 1) how does someone changes that "?" to "✅" and I have prepared a template (GitHub repo) with JS/TS, Playwright, GSAP. I want to create a CLI, which actually will "create" a template based on user input: 1. JS or TS? 2. Install GSAP? 3. Install Playwright? The thing is, that I don't know how to create it: from within the CLI or fetch the files based on user input, example jsconfig.json or tsconfig.json with options? Also common files like .prettierrc.json, .eslintrc.json etc.. If I create it from within (for example having a folder "template" with "common", "javascript", "typescript" subfolders and pick the files needed, i'm afraid that It will be very difficult to debug only @ 1 place (I suppose I will have to debug my end-template and then go and "copy" "paste" parts of code inside my CLI's code & templates folder). But if I "fetch" files then the CLI is not actually versioning correctly since it will only fetch the latest files. I'm superconfused...

  • @mehdiasadli5329
    @mehdiasadli5329 2 года назад

    On mac, when i enter "create-my-app" (that is my cli app name) on the terminal it says command not found, and then i tried it with npx, but then it gives me the error that says "/usr/local/bin/create-my-app: bad interpreter: Permission denied"

  • @ndstephens
    @ndstephens 3 года назад +1

    i'm on a mac and for some reason running "npm install -g" wasn't working for me. i added a " . " at the end to say "this directory" and it then installed "template-cli" in my PATH. so if you're having issues try "npm install -g ."

    • @CodeDunks
      @CodeDunks  3 года назад

      Hmm thats strange, sorry unfortunately I do most of my personal stuff on Windows and WSL2 as I don't have a personal Mac :/. Glad you got it to work though and thanks for letting others know in case they experience the same.

    • @joemorcullo5928
      @joemorcullo5928 Год назад +1

      tried doing it with "." on the end but I'm still getting "zsh: command not found: template-cli". After the "npm install -g ." all I'm getting is "up to date", do I need to uninstall first?

  • @riteshgoswami1596
    @riteshgoswami1596 Год назад +1

    can we be get source code from github?

  • @amirhosseinmahdioun6450
    @amirhosseinmahdioun6450 Год назад

    when I install my cli app, get an error that says:
    /c/Users/User/AppData/Roaming/npm/alpha-create-app: line 9: C:\Users\User\AppData\Roaming
    pm//: Is a directory
    /c/Users/User/AppData/Roaming/npm/alpha-create-app: line 9: exec: C:\Users\User\AppData\Roaming
    pm//: cannot execute: Is a directory
    what should I do? may help me please

  • @huizhong3713
    @huizhong3713 3 года назад

    nice tutorial

  • @ABCshake
    @ABCshake Год назад

    For anyone using this on windows, the shebang line doesn't work. You'll need a bat file to be able to run the cli using a node interpreter.

  • @huscachafe
    @huscachafe 2 года назад

    Awsome!

  • @thebetacoders4738
    @thebetacoders4738 2 года назад

    Awesome content,But your thumbnails are not so attractive that's why your channel is not ranked.