ama icon indicating copy to clipboard operation
ama copied to clipboard

How do you create and publish repos efficiently?

Open aymericbouzy opened this issue 6 years ago • 3 comments

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?

aymericbouzy avatar Jul 19 '17 12:07 aymericbouzy

I've just discovered Lerna : https://github.com/lerna/lerna do you know about it? Do you recommend it?

aymericbouzy avatar Jul 19 '17 16:07 aymericbouzy

Yeoman + generator-nm + np equals new packages in minutes. Usually testing and docs takes most of the time.

SamVerschueren avatar Jul 19 '17 16:07 SamVerschueren

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!

aymericbouzy avatar Jul 20 '17 08:07 aymericbouzy