Skip to content

Commit

Permalink
Merge pull request #102 from Avivbens/git-npm-addons
Browse files Browse the repository at this point in the history
git npm addons
  • Loading branch information
Avivbens committed May 27, 2024
2 parents 9a1dcf7 + 4e7d5db commit 4c7ccf0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/commands/install/config/apps-groups/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,26 @@ export const GIT_APPS: Readonly<IAppSetup[]> = [
deps: ['Git'],
},
{
name: 'Increase credential cache timeout',
description: 'Increase the cache time for using your credentials from Keychain - 1 month',
name: 'MacOS Keychain store credentials for HTTPS remotes',
description: 'Use macOS Keychain to store credentials',
group: 'git',
openUrl: () => `open https://git-scm.com/docs/git-credential-cache`,
openUrl: () => `open https://git-scm.com/docs/gitcredentials`,
commands: () => [
// avoid lock for other `git config` options
'sleep 2',
`git config --global credential.helper 'cache --timeout 2592000'`,
`git config --global credential.helper osxkeychain`,
],
deps: ['Git'],
},
{
name: 'Disable SSL',
description: 'Disable SSL for Git operations',
group: 'git',
openUrl: () => `open https://git-scm.com/docs/git-config#Documentation/git-config.txt-httpsslVerify`,
commands: () => [
// avoid lock for other `git config` options
'sleep 3',
`git config http.sslVerify "false"`,
],
deps: ['Git'],
},
Expand All @@ -56,7 +68,7 @@ export const GIT_APPS: Readonly<IAppSetup[]> = [
openUrl: () => `open https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote`,
commands: () => [
// avoid lock for other `git config` options
'sleep 3',
'sleep 4',
`git config --global --bool push.autoSetupRemote true`,
],
deps: ['Git'],
Expand Down
7 changes: 7 additions & 0 deletions zsh/extends/.zshrc.extends.npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ alias nsd="npm run start:dev"
alias nb="npm run build"
alias nt="npm run test"
alias nte="npm run test:e2e"

# Get current working directory package name
function package_name () {
cat package.json | jq '.name' | pbcopy
}

# Clear all node_modules and reinstall
function cnodem() {
npm ci --only=prod
npm ci
Expand Down

0 comments on commit 4c7ccf0

Please sign in to comment.