A bundle of simple repository libraries for yingyeothon's infrastructure.
Many of things would be deployed to npmjs.
It uses pnpm
to manage multiple packages.
- Execute
create
command and copytsconfig.json
file from any other project.
mkdir -p packages/new-package
cd packages/new-package
pnpm init
cp ../codec/tsconfig.json .
ln -s ../../.eslint* .
cp ../../jest.config.js .
- Fill
package.json
file referencing any other project. Should fill uptypings
,publishConfig
andscripts.[tsc, build, test]
.
Please use pnpm build
in the specific package directory.
Write some test codes that import a library from JavaScript that built by tsc
. Run pnpm test
.
We can use pnpm add @yingyeothon/package-name
to add a dependency. Please leave its version as *
to use the latest version.
- Check if its
README.md
is proper. - Check if it can build to JavaScript properly.
- Check if it passes all tests we write.
- Check the version of this package.
pnpm publish
.
MIT