@functionless/projen provides a projen project and component for configuring new and existing projects to use Functionless.
To create a new FunctionlessProject, which wraps a AwsCdkTypeScriptApp configured with the Functionless compiler plugin, run:
npx projen new --from @functionless/projen
Install the dependency in your application
npm install --save-dev @functionless/projen
OR
yarn add -D @functionless/projen
Then apply the Functionless component to your project.
const{ TypescriptProject }=require("projen");const{ Functionless }=require("@functionless/projen");constproject=newTypescriptProject({
...
});newFunctionless(project);project.synth();