Skip to content

Commit

Permalink
Fix typescript tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkleemans committed Nov 21, 2023
1 parent 0c19a45 commit d87a8ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions create-test-app.sh
Expand Up @@ -4,16 +4,17 @@ $1 # Install vue command, project name should be `test-app`

# Copy example code and SVGs
cp ./example/src/App.vue ./test-app/src/App.vue
cp ./example/vite.config.ts ./test-app/vite.config.js
cp ./example/vite.config.ts ./test-app/vite.config.ts
cp ./example/src/vite-env.d.ts ./test-app/src/vite-env.d.ts
cp ./example/src/assets/test.svg ./test-app/src/assets/test.svg
cp ./example/src/assets/style.svg ./test-app/src/assets/style.svg
cp ./example/src/assets/circle.svg ./test-app/src/assets/circle.svg
cp ./example/public/root.svg ./test-app/public/root.svg

# TypeScript only commands
# Commands when not using typescript
if [[ "$2" != "--typescript" ]]; then
mv ./test-app/vite.config.ts ./test-app/vite.config.js # Rename `.ts` to `.js`
sed -i 's/ lang="ts"//' ./test-app/src/App.vue # Remove `lang="ts"` from `<script>`
cp ./example/src/vite-env.d.ts ./test-app/src/vite-env.d.ts
fi

# Install and build app
Expand Down

0 comments on commit d87a8ab

Please sign in to comment.