⚠️ DEPRECATED — moved to yingyeothon/tslibThis repository is archived and no longer maintained. Its packages now live in the
tslibmonorepo and are published from there as v2.0.0+ with a redesigned API (see each package's README there for migration notes).
Package here (last release from this repo) Successor in tslib@yingyeothon/aws-lambda-custom-authorizer@yingyeothon/lambda-authorizer(renamed)@yingyeothon/aws-lambda-jwt-custom-authorizer@yingyeothon/lambda-authorizer-jwt(renamed)Versions published from this repository stay on npm but are marked deprecated.
A bundle of simple AWS Lambda custom authorizer libraries for yingyeothon's infrastructure.
Many of things would be deployed to npmjs.
It uses lerna to manage multiple packages.
- Execute
createcommand and copytsconfig.jsonfile from any other project.
lerna create new-package
cd packages/new-package
cp ../codec/tsconfig.json .
ln -s ../../tslint.json .
ln -s ../../jest.config.js .
ln -s ../../.vscode .- Fill
package.jsonfile referencing any other project. Should fill uptypings,publishConfigandscripts.[tsc, build, test].
- Write its codes.
- Build with
lerna run tsc.
If you want to build the only one package, please use npm run build in the specific package directory.
Write some test codes that import a library from JavaScript that built by tsc. Run npm run test command on its root directory.
If you want to test the only one package, please use npm run test in the specific package directory.
If a package would reference other packages,
- First,
npm i --save @yingyeothon/package-name. - And do
lerna bootstrap. It will make a symbolic link of a referenced package on itsnode_modulesdirectory.
- 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.
npm publishIf you want to deploy it as alone.- Or if you want to deploy all of them, do
npm run buildandnpm run deployat the root directory that deploy all things after build and test them.
MIT