0.2.0 • Published 5 years ago

petpal-pipeline v0.2.0

Weekly downloads
9
License
-
Repository
-
Last release
5 years ago

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 js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk 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 modules
  • lerna 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"
  },
}
0.2.0

5 years ago

0.1.0

5 years ago