Although I have many cheatsheets covering specifics of some of the below stacks (E.g. TypeScript), I wanted a single cheatsheet that covers quick init methods that you might need when setting up a project. This is that cheatsheet.
Scaffolding in General
- Ultimate project scaffolder: Yeoman (aka yo)
- Scratchpad-Playgrounds - Collection of prebuilt workspaces and online sandboxes so you can quickly try out different languages and frameworks!
- anyfiddle/starter-template-images - Collection of Docker images for various programming languages and frameworks
Elevator Pitches -> Online Sandboxes
- Sites where you can play around with code, and often quickly initialize a "playground" from a template.
Web Stack
package.json
/ dependencies- to create
package.json
(use-y
for no questions)- Yarn:
yarn init -y
- NPM:
npm init -y
- Yarn:
- to create
- TypeScript
- To create config and init:
npx tsc --init
- Also see tsconfig/bases for common starter configs
- To create config and init:
- Prettiers / formatters
- TSLint:
tslint --init
- (remember, eslint is now recommended over tslint)
- ESLint:
npx eslint --init
- Prettier
- There is no built-in tool - see config file docs
- You can use
prettier-init
module:npx prettier-init
- XO
npm init xo
- TSLint:
Version Control - Git
- Initialize a new local repo:
git init
- Scaffold a gitignore file from a template
- Use
gitignore
NPM package:npx gitignore python
- Use
IDEs
- VSCode
mkdir .vscode
- Local settings
touch .vscode/settings.json
- Debug / commands / etc
touch .vscode/launch.json