David Darnes 1/12/2022

Using a GitHub repo directory as an npm package

Read Original

The article details a solution for using only a specific subdirectory (CSS for Ghost cards) from a large GitHub repository as an npm package. It describes using the 'degit' tool within an npm 'postinstall' script to clone just the required folder into node_modules, avoiding the need to install the entire parent package.

Using a GitHub repo directory as an npm package

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week