0.2.0 • Published 5 years ago
petpal-pipeline v0.2.0
Welcome to your CDK TypeScript project!
This is a blank project for TypeScript development with CDK.
The cdk.json
file tells the CDK Toolkit how to execute your app.
Useful commands
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
Creating a new lerna module:
lerna create <module_name> <package_name>
creates a new module called <module_name> under the folder <package_name>lerna add <module_name>
adds <module_name> as a dependency to all other moduleslerna add apple banana --scope=grocery
the grocery package will depend on both the apple and banana packages
After creating a new lerna module, add in the module's root directory the following tsconfig:
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib"
},
"include": [
"./src"
]
}
Create a ./src directory in the new module's root directory.
register the tsc
script in the package.json of every lerna module:
{
"scripts": {
"tsc": "tsc",
"test": "echo \"Error: run tests from root\" && exit 1"
},
}