Discourage dev dependencies.

pull/3/head
Joshua Potter 2023-12-04 06:06:54 -07:00
parent 359acc60ac
commit 374ff28150
5 changed files with 8 additions and 2192 deletions

View File

@ -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

2178
assets/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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
}

View File

@ -3,6 +3,5 @@ module.exports = {
arrowParens: "always",
semi: false,
tabWidth: 2,
trailingComma: "es5",
plugins: ["prettier-plugin-tailwindcss"],
trailingComma: "es5"
}

View File

@ -25,8 +25,8 @@
tailwindcss = pkgs.nodePackages.tailwindcss.overrideAttrs (oa: {
plugins = [
pkgs.nodePackages.autoprefixer
pkgs.nodePackages."@tailwindcss/forms"
pkgs.nodePackages.autoprefixer
];
});
in