File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if [ $# -ne 1 ]; then
88fi
99
1010COMPONENT=$1
11- TARGET=" src/Components /$COMPONENT "
11+ TARGET=" src/components /$COMPONENT "
1212
1313if [ -e " $TARGET " ]; then
1414 echo " ディレクトリ'$TARGET 'は既に存在します。" 1>&2
@@ -19,9 +19,6 @@ mkdir "$TARGET"
1919touch " $TARGET /index.tsx"
2020echo " 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
2624sed -i -e " s/DISPLAY_NAME/\'$COMPONENT \'/" " $TARGET /$COMPONENT .tsx"
27- rm " $TARGET /$COMPONENT .tsx-e"
You can’t perform that action at this time.
0 commit comments