Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace esno with tsx, migrate release script and playground to TypeScript #29

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
},
"scripts": {
"dev": "unbuild --stub",
"build": "unbuild && esno scripts/patchCJS.ts",
"build": "unbuild && tsx scripts/patchCJS.ts",
"test": "vitest run",
"release": "node scripts/release.js",
"release": "tsx scripts/release.ts",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"engines": {
Expand All @@ -40,16 +40,16 @@
"devDependencies": {
"conventional-changelog-cli": "^2.2.2",
"enquirer": "^2.4.1",
"esno": "^0.17.0",
"execa": "^4.1.0",
"minimist": "^1.2.8",
"node-forge": "^1.3.1",
"picocolors": "^1.0.0",
"prettier": "^2.8.8",
"rollup": "^2.79.1",
"semver": "^7.6.0",
"tsx": "^4.7.1",
"unbuild": "^2.0.0",
"vite": "^5.0.0",
"vitest": "^0.34.6",
"node-forge": "^1.3.1"
"vitest": "^0.34.6"
}
}
1 change: 1 addition & 0 deletions playground/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
2 changes: 1 addition & 1 deletion playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/main.js"></script>
<script type="module" src="/main.ts"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions playground/main.js → playground/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import './style.css'
import viteLogo from '/vite.svg'
import lockIcon from '/lock.svg'

document.querySelector('#app').innerHTML = `
const root = document.querySelector('#app')!

root.innerHTML = `
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="${viteLogo}" class="logo" alt="Vite logo" />
Expand All @@ -12,9 +14,7 @@ document.querySelector('#app').innerHTML = `
</a>
<h1>Hello Vite + Basic SSL!</h1>
<p class="read-the-docs">
Example of a basic ssl setup using an automatically generated self-signed certificate
Example of a basic ssl setup using an automatically generated self-signed certificate
</p>
</div>
`

setupCounter(document.querySelector('#counter'))
1 change: 1 addition & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"private": true,
"description": "Example of a basic ssl setup using an automatically generated self-signed certificate",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
Loading
Loading