mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 02:32:05 +02:00
vanilla 19.0
This commit is contained in:
parent
991d2234ca
commit
d1963a3c3a
3066 changed files with 1651266 additions and 922560 deletions
|
|
@ -8,13 +8,12 @@ if [[ $testRealPath == "" ]]; then
|
|||
fi
|
||||
|
||||
enableInDir () {
|
||||
cd $1
|
||||
cd "$1" || exit
|
||||
hooksPath="$(realpath --relative-to=. "$tooling/hooks")"
|
||||
git config core.hooksPath "$hooksPath"
|
||||
cp "$tooling/_eslintignore" .eslintignore
|
||||
cp "$tooling/_prettierignore" .prettierignore
|
||||
cp "$tooling/_eslintrc.json" .eslintrc.json
|
||||
cp "$tooling/_prettierrc.json" .prettierrc.json
|
||||
cp "$tooling/_jsconfig.json" jsconfig.json
|
||||
cp "$tooling/_package.json" package.json
|
||||
if [[ $2 == "copy" ]]; then
|
||||
# -i is not supported on mac
|
||||
|
|
@ -34,7 +33,7 @@ if [[ $willingToInstallToolingInEnterprise != "n" ]]
|
|||
then
|
||||
read -p "What is the relative path from community to enterprise ? (../enterprise)" pathToEnterprise
|
||||
pathToEnterprise=${pathToEnterprise:-../enterprise}
|
||||
pathToEnterprise=$(realpath $community/$pathToEnterprise)
|
||||
pathToEnterprise=$(realpath "$community/$pathToEnterprise")
|
||||
pathFromEnterpriseToCommunity=$(realpath --relative-to="$pathToEnterprise" "$community")
|
||||
fi
|
||||
|
||||
|
|
@ -47,6 +46,6 @@ fi
|
|||
|
||||
echo ""
|
||||
echo "JS tooling have been added to the roots"
|
||||
echo "Make sure to refresh the eslint service and configure your IDE so it uses the config files"
|
||||
echo "Make sure to refresh the eslint and typescript service and configure your IDE so it uses the config files"
|
||||
echo 'For VSCode, look inside your .vscode/settings.json file ("editor.defaultFormatter": "dbaeumer.vscode-eslint")'
|
||||
echo ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue