0.2.0 • Published 6 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 buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits 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=grocerythe 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"
},
}