A bundle of small libraries for yingyeothon's infrastructure.
Many of things would be deployed to npmjs.
It uses yarn workspace for monorepo.
- Execute
createcommand and copytsconfig.jsonfile from any other project.
mkdir -p packages/new-package
cd packages/new-package
yarn init
cp ../codec/tsconfig.json .
ln -s ../../.eslint* .
cp ../../jest.config.js .
cp -r ../../.vscode .- Fill
package.jsonfile referencing any other project. Should fill uptypings,publishConfigandscripts.[build, test].
- Write its codes.
- Add a shortcut
yarn workspace package-nameintopackage.jsonat root directory. - Build with
yarn package-name build.
If you want to build the only one package, please use yarn build in the specific package directory.
Write some test codes that import a library from JavaScript that built by tsc. Run yarn package-name test.
If you want to test the only one package, please use yarn test in the specific package directory.
If a package would reference other packages, do yarn add @yingyeothon/package-name@version.
- Check if its
README.mdis proper. - Check if it can build to JavaScript properly.
- Check if it passes all tests we write.
- Check the version of this package.
yarn publishIf you want to deploy it as alone.- Or if you want to deploy all of them, do
yarn workspaces run publishat the root directory that deploy all things after build and test them.
MIT