% cat ~/.scripts/cra.sh #!/bin/zsh if [ $# -eq 0 ] ; then echo "Pass the name of project" exit 1 fi NAME="$1" yarn dlx create-react-app $NAME --template typescript cd $NAME yarn dlx @yarnpkg/pnpify --sdk vscode yarn add react-refresh eslint-config-react-app TO_DECLARE="declare module '@testing-library/react';" printf $TO_DECLARE >> src/react-app-env.d.ts code-insiders .
Friday, February 5, 2021
create react app + typescript script
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment