ama
ama copied to clipboard
How do you create and publish repos efficiently?
You said that you create a lot of npm packages in order to never duplicate code. I want to have that same workflow, but I'm new to it. I have multiple projects which should share code. What tools do you use to be really efficient?
What I've found so far :
-
np
: CLI for publishing to npm efficiently -
npm link
: for development -
npm-base
: boilerplate repository
But even with all these tools, it is still much more painful to create a new repository than just creating a new file and copying the content from the other project.
Can you give us your full workflow? Typical use case : you have written a piece of software in a package and you want to extract it to an independent one to use it again somewhere else. How do you do that?
I've just discovered Lerna : https://github.com/lerna/lerna do you know about it? Do you recommend it?
Yeoman + generator-nm + np
equals new packages in minutes. Usually testing and docs takes most of the time.
I didn't know about Yeoman! If I can find good generators, it's going to save me a lot of time. Thanks a lot!