Skip to content

Commit 4670f11

Browse files
authored
Clean up creation and migration scripts (#1409)
* Clean up package.json by removing dependencies Removed empty dependencies section from package.json. * Fix HTML and JSON formatting in new-sample.sh
1 parent 69034ea commit 4670f11

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

samples/migrate-sample.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ cat > "${OUTPUT_DIR}/${NAME}/package.json" << EOF
5353
"start": "tsc && vite build --base './' && vite",
5454
"build:vite": "vite build --base './'",
5555
"preview": "vite preview"
56-
},
57-
"dependencies": {
58-
5956
}
6057
}
6158
EOF
@@ -69,7 +66,7 @@ cat > "${OUTPUT_DIR}/${NAME}/tsconfig.json" << EOF
6966
"rootDir": "."
7067
},
7168
"include": [
72-
"./*.ts",
69+
"./*.ts"
7370
]
7471
}
7572
EOF

samples/new-sample.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ cat > "$NAME/index.html" << EOF
4343
4444
<link rel="stylesheet" type="text/css" href="./style.css" />
4545
<script type="module" src="./index.js"></script>
46-
<!-- prettier-ignore -->
4746
EOF
4847

4948
# Use 'EOF' to prevent expansion of the loader script
@@ -93,8 +92,7 @@ cat > "$NAME/package.json" << EOF
9392
"start": "tsc && vite build --base './' && vite",
9493
"build:vite": "vite build --base './'",
9594
"preview": "vite preview"
96-
},
97-
"dependencies": {}
95+
}
9896
}
9997
EOF
10098

@@ -106,7 +104,7 @@ cat > "$NAME/tsconfig.json" << 'EOF'
106104
"rootDir": "."
107105
},
108106
"include": [
109-
"./*.ts",
107+
"./*.ts"
110108
]
111109
}
112110
EOF

0 commit comments

Comments
 (0)