Skip to content

Commit 5256afc

Browse files
fix: remove bug from component script
1 parent 74ef990 commit 5256afc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changelog
22

3+
- fix: remove bug from component script
34
- improvement: Remove unused component
45
- improvement: Fix Next.js version as 9.5.3
56

scripts/component-maker.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ $# -ne 1 ]; then
88
fi
99

1010
COMPONENT=$1
11-
TARGET="src/Components/$COMPONENT"
11+
TARGET="src/components/$COMPONENT"
1212

1313
if [ -e "$TARGET" ]; then
1414
echo "ディレクトリ'$TARGET'は既に存在します。" 1>&2
@@ -19,9 +19,6 @@ mkdir "$TARGET"
1919
touch "$TARGET/index.tsx"
2020
echo "export { default } from './$COMPONENT'" > "$TARGET/index.tsx"
2121

22-
cp etc/scripts/templates/component-template.txt "$TARGET/$COMPONENT.tsx"
23-
24-
#touch "$TARGET/style.scss"
22+
cp scripts/templates/component-template.txt "$TARGET/$COMPONENT.tsx"
2523

2624
sed -i -e "s/DISPLAY_NAME/\'$COMPONENT\'/" "$TARGET/$COMPONENT.tsx"
27-
rm "$TARGET/$COMPONENT.tsx-e"

0 commit comments

Comments
 (0)