Home > Mobile >  Can I run git clone via an NPX tool
Can I run git clone via an NPX tool

Time:10-22

Im in the process of building a custom NPX tool which will add my custom npm package into a local hosted server,

I have as of right now a template of the structure id like to replicate when other users run my NPX command, something along the lines of

src
    index.js
build
    built_js.js
styles
    styles.css

I understand when it comes to npm packages ill have to run these commands separately which is fine but im wondering how i can rebuild this directory on command npx create-my-app

CodePudding user response:

yes you can! try to use this package for it: https://www.npmjs.com/package/create-clone

  • Related