-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigrate.tape
More file actions
76 lines (64 loc) · 1.41 KB
/
migrate.tape
File metadata and controls
76 lines (64 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Output migrate.gif
Set FontSize 18
Set Width 1000
Set Height 550
Set Padding 25
Set Theme "Catppuccin Mocha"
Set TypingSpeed 30ms
# Setup a fake legacy project (Hidden)
Hide
Type "rm -rf legacy-demo"
Enter
Type "mkdir -p legacy-demo && cd legacy-demo"
Enter
# Create valid package.json
Type "npm init -y > /dev/null 2>&1"
Enter
Type "npm pkg set devDependencies.eslint=^8.0.0 devDependencies.prettier=^3.0.0 > /dev/null 2>&1"
Enter
# Create valid .prettierrc JSON
Type 'echo '"'"'{"semi": true, "singleQuote": true}'"'"' > .prettierrc'
Enter
# Create .eslintrc.js
Type 'echo "module.exports = { rules: {} };" > .eslintrc.js'
Enter
# Initialize git with a commit so no uncommitted changes prompt
Type "git init -q && git add -A && git commit -m 'init' -q"
Enter
Type "clear"
Enter
Sleep 500ms
Show
# Run migration
Type "npx zero-setup-biome migrate"
Sleep 200ms
Enter
# Wait for analysis and first prompt
Sleep 2s
# Confirm "Ready to migrate?" - Yes
Type "y"
Enter
# Wait and handle "Use relaxed lint rules?" prompt
Sleep 3s
Enter
# Wait and handle "Remove ESLint/Prettier packages?" prompt
Sleep 3s
Enter
# Wait and handle "Update package.json scripts?" prompt
Sleep 3s
Enter
# Wait and handle "Apply Biome formatting now?" prompt
Sleep 3s
Enter
# Wait for all operations to complete
Sleep 6s
# Show the created biome.json
Type "cat biome.json"
Enter
Sleep 4s
# Cleanup (Hidden)
Hide
Type "cd .."
Enter
Type "rm -rf legacy-demo"
Enter