Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-meta
Commits
fbc56ee8
Commit
fbc56ee8
authored
1 year ago
by
Ole Langbehn
Browse files
Options
Downloads
Patches
Plain Diff
HOLI-7700 remove yarn global
parent
4db2ccb1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.envrc
+0
-3
0 additions, 3 deletions
.envrc
.husky/pre-commit
+0
-4
0 additions, 4 deletions
.husky/pre-commit
.pre-commit-config.yaml
+9
-0
9 additions, 0 deletions
.pre-commit-config.yaml
init.sh
+9
-7
9 additions, 7 deletions
init.sh
with
18 additions
and
14 deletions
.envrc
+
0
−
3
View file @
fbc56ee8
...
...
@@ -14,6 +14,3 @@ export PATH=./helpers:"$PATH"
source_env_if_exists .envrc.local
source_env_if_exists .envrc.local.backends
type
yarn
>
/dev/null 2>&1
&&
PATH
=
"
$PATH
:
$(
yarn global bin
)
"
export
PATH
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.husky/pre-commit
deleted
100755 → 0
+
0
−
4
View file @
4db2ccb1
#!/bin/sh
.
"
$(
dirname
"
$0
"
)
/_/husky.sh"
gitleaks protect
--staged
-v
-c
.gitleaks.toml
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
0 → 100644
+
9
−
0
View file @
fbc56ee8
repos
:
-
repo
:
local
hooks
:
-
id
:
gitleaks
name
:
gitleaks
language
:
system
entry
:
gitleaks protect --staged -v -c .gitleaks.toml
pass_filenames
:
false
always_run
:
true
This diff is collapsed.
Click to expand it.
init.sh
+
9
−
7
View file @
fbc56ee8
...
...
@@ -34,8 +34,10 @@ checkoutAndPrepare() {
pushd
"
$2
"
direnv allow
.
eval
"
$(
direnv
export
bash
)
"
# install git hooks via husky
husky
install
# disable husky, this can be removed after a while, let's say april 2024
git config
--unset-all
core.hooksPath
||
true
# install git hooks via pre-commit
pre-commit
install
[
-x
./init.sh
]
&&
./init.sh
popd
}
...
...
@@ -87,11 +89,11 @@ brewInstall libmagic # needed by okuna, missing on mac, we just install it indep
# install velociraptor for deno projects
isAvailable vr
||
deno
install
-qAn
vr
-f
https://deno.land/x/velociraptor@1.5.0/cli.ts
# we want to use mprocs for running the development environments
isAvailable mprocs
||
yarn global add
mprocs
#
we want to us
e
h
us
ky for pre-commit hooks
isAvailable
husky
||
yarn global add husky
# in husky pre-commit hooks, we're using gitleaks for secret detection
b
re
wInstall gitleaks
isAvailable mprocs
||
brewInstall
mprocs
#
in pre-commit hooks, we'r
e us
ing gitleaks for secret detection
isAvailable
pre-commit
||
brewInstall pre-commit
isAvailable gitleaks
||
brewInstall gitleaks
p
re
-commit
install
# in holi-meta. The other repositories are initialized during checkout
# check out and initialize the repositories
checkoutAndPrepare git@gitlab.holi.team:app/holi-frontends.git holi-frontends
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment