0.0.2 • Published 5 years ago
my_math_library v0.0.2
package-publishing-using-lerna-yarn-jest-typescript
Package development and Publishing using lerna with yarn workspaces
#####Features List:
- Lerna version manager
- Yarn Workspaces
- Typescript
- Eslint(airbnb/browser)
- Prettier
- Jest unit test
- Auto ChangeLog
- Husky (Husky can prevent bad git commit, git push and more 🐶 woof!)
#####Todo List:
- tsconfig.build.json
- jest.config.js
- scss(use-follow instead of @import)
- config .npmrc for Verdaccio
#How to use this:
- Step1:
git clone https://github.com/SeyyedKhandon/yarn_lerna_jest_typescript.git my_packages- consider that you should change all
yarn_lerna_jest_typescriptoccurrences to what-ever scope you like, e.gmy_packages
- consider that you should change all
- Step2:
cd my_packages - Step3:
yarn install - Step4: now you can remove package1/2 and create new packages based on these two samples.
- Step4: finally you have to create a github repo
- remove
.gitfolder - use
git initto create a new git history for you newmy_packages - use
git add . - use
git commit -m "first commit" - use
git remote add origin https://github.com/SeyyedKhandon/my_packages.git - use
git push --set-upstream origin master
- remove
- Step5: create a npm account
- create org by the name of
my_packages, because you have usedmy_packagesfor scope
- create org by the name of
- Step6:
lerna publish
0.0.2
5 years ago