Development Environment
Last updated
Last updated
Install Prerequesits Package Manger Homebrew and CLI Tools:
Install Runtime for Javascript and Python:
Install Python and Javascript packages / Dependencies:
Source:
Additional tools to improve the developer experience:
Make a directory for the template:
Install the hooks in the template directory:
Tell git to use it:
Install AWS patterns globally to be prevented to be checked in to git:
Check the list of secrets git secrets
will scan for:
It should return something like:
Now every time you run git init
or git clone
, your hooks will be copied into the .git
directory of your freshly created repo. If you don’t want to set the template globally, you can use it as needed with git init --template ’~/.git-template’
.
That covers new repo creation, and cloning, but we haven’t addressed the problem of existing repos that weren’t created with the template. Here we have a couple options:
git init
is a non-destructive operation, so feel free to run it in existing repos. It’s safe, and will retroactively apply the template you specify.
OR
List all my installed extensions:
Use Gitbooks:
Install gitbook CLI:
Initialize:
Generate output to custom folder
Merge multiple commits:
Modify the last two commits:
Or if they are the last two:
Use CircleCI as a SaaS as Pipeline:
Setup a project as described (e.g. add the folder .circleci
with the config.yml
file)
Link to config.yml file
for containers
for serverless
If you want to go “all in” and ensure that every repo has the proper hooks, here’s a that will recursively walk a directory, such as ~/Projects
and run git secrets --install
in all repos.
Code:
Use branches and if needed
Use git stash to switch change between branches -
Go to
Add the git repo to it: