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