Using a GitHub repo directory as an npm package
Read OriginalThe 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.
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
No top articles yet