Discourage dev dependencies.
parent
359acc60ac
commit
374ff28150
|
@ -12,11 +12,9 @@ WEB_TARGETS=()
|
|||
while IFS= read -r FILENAME
|
||||
do
|
||||
if [[ "$FILENAME" =~ .*\.exs? ]]; then
|
||||
MIX_TARGETS+=("${FILENAME}")
|
||||
elif
|
||||
[[ "$FILENAME" =~ assets/.*\.jsx? ]] ||
|
||||
[[ "$FILENAME" =~ assets/.*\.tsx? ]]; then
|
||||
WEB_TARGETS+=("${FILENAME#"assets/"}")
|
||||
MIX_TARGETS+=("$FILENAME")
|
||||
elif [[ "$FILENAME" =~ .*\.jsx? ]] || [[ "$FILENAME" =~ .*\.tsx? ]]; then
|
||||
WEB_TARGETS+=("$FILENAME")
|
||||
fi
|
||||
done <<< "$STAGED"
|
||||
|
||||
|
@ -26,7 +24,6 @@ if (( ${#MIX_TARGETS[@]} )); then
|
|||
fi
|
||||
|
||||
if (( ${#WEB_TARGETS[@]} )); then
|
||||
cd assets
|
||||
npx prettier --write "${WEB_TARGETS[@]}"
|
||||
prettier --write "${WEB_TARGETS[@]}"
|
||||
git add "${WEB_TARGETS[@]}"
|
||||
fi
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,13 +9,9 @@
|
|||
"react-router-dom": "^6.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@types/react": "^18.2.40",
|
||||
"@types/react-dom": "^18.2.17",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"eslint-plugin-tailwindcss": "^3.13.0",
|
||||
"prettier-plugin-tailwindcss": "^0.5.7"
|
||||
"@types/react-router-dom": "^5.3.3"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
|
|
@ -3,6 +3,5 @@ module.exports = {
|
|||
arrowParens: "always",
|
||||
semi: false,
|
||||
tabWidth: 2,
|
||||
trailingComma: "es5",
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
trailingComma: "es5"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue