
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
typescript-and-chill
Advanced tools
A CLI tool to automate setting up a TypeScript developer environment
TypeScript and Chill is an NPM package that automates the process of setting up a modern TypeScript development environment. Designed for developers working with AWS CDK, serverless applications, and microservices, this CLI tool ensures that every new project starts with a standardized and optimized development environment.
This tool eliminates the need for manually setting up ESLint, Prettier, Jest, AWS CDK, and CI/CD pipelines, saving time and reducing setup inconsistencies across projects.
✅ Interactive CLI Setup - Choose what to install based on project needs, or use the -y
flag for automatic setup
✅ Project Structure Creation - Automatically sets up directories for CDK and source code
✅ AWS CDK Initialization - Ensures an up-to-date cdk.json
configuration with the correct bin reference
✅ Linting & Formatting - Installs and configures Biome
✅ Testing - Configures Vitest for unit testing
✅ CI/CD Integration - Automatically sets up GitHub Actions for deployment
✅ Automatic TypeScript Compilation - Installs and configures esbuild
✅ Deployment Ready - Ensures TypeScript projects are ready for AWS deployments
To install and use this package in a new project:
npx typescript-and-chill
To automatically accept all default options and install everything:
npx typescript-and-chill -y
This will run the interactive CLI (or default to "yes" for all options if -y
is used), guiding you through the setup process.
When you run npx typescript-and-chill
, the CLI:
-y
is specified.aws-cdk
, biome
, vitest
, typescript
, esbuild
).cdk/
, cdk/stacks/
, src/
)..biome.json
, cdk.json
).cdk.json
is updated - The correct bin file reference is automatically set.esbuild
for efficient TS-to-JS compilation.After running the CLI, your project will have the following structure:
my-new-project/
├── bin/
│ ├── app.ts # CDK application entry file
├── cdk/
│ ├── stacks/ # CDK stacks directory
├── src/ # Application source code (Lambda functions, etc.)
├── .github/workflows/
│ ├── deploy.yml # CI/CD GitHub Actions workflow
├── package.json # Project dependencies and scripts
├── README.md # Documentation
├── tsconfig.json # TypeScript configuration
├── .biome.json # Biome configuration
├── cdk.json # AWS CDK configuration (correctly references bin/app.js)
└── .gitignore # Git ignore rules
You can choose which features to enable during setup:
cdk init
is automatically run for accuracy).esbuild
for deployments.-y
to skip prompts and install everything automatically.Unit tests ensure that all setup scripts function correctly:
npm test
This will run Vitest tests that validate the correct setup of Biome, Vitest, AWS CDK, CI/CD workflows, and TypeScript compilation.
Want to improve this package? Feel free to contribute by submitting a pull request!
MIT License
FAQs
A CLI tool to automate setting up a TypeScript developer environment
We found that typescript-and-chill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.