Skip to content

Commit

Permalink
WIP: vite 導入
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshionoda committed Nov 22, 2024
1 parent 2ddc95e commit a422a82
Show file tree
Hide file tree
Showing 6 changed files with 643 additions and 36 deletions.
2 changes: 1 addition & 1 deletion doc/public/index.html → doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<script
id="api-reference"
data-url="./openapi3/openapi.yaml"></script>
data-url="/openapi3/openapi.yaml"></script>
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
</body>
</html>
23 changes: 16 additions & 7 deletions doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"clean": "run-func scripts/clean.js clean",
"build": "npm run clean && tsp compile src/main.tsp",
"dev": "tsp compile src/main.tsp --watch",
"bundle": "npm run build && run-func scripts/bundle.js bundle",
"format": "tsp format '**/*.tsp'"
"tsp:clean": "run-func scripts/clean.js clean",
"tsp:build": "npm run tsp:clean && tsp compile src/main.tsp",
"dsp:dev": "npm run tsp:clean && tsp compile src/main.tsp --watch",
"vite": "vite",
"vite:build": "vite build",
"format": "tsp format '**/*.tsp'",
"dev": "concurrently \"npm run dsp:dev\" \"npm run vite\"",
"bundle": "npm run tsp:build && npm run vite:build"
},
"peerDependencies": {
"@typespec/compiler": "latest",
Expand All @@ -25,9 +28,15 @@
"@typespec/prettier-plugin-typespec": "latest",
"@typespec/rest": "latest",
"@typespec/versioning": "latest",
"concurrently": "^9.1.0",
"consola": "^3.2.3",
"prettier": "^3.3.3",
"run-func": "^3.0.0"
"run-func": "^3.0.0",
"vite-multiple-assets": "^2.2.2",
"vite-plugin-full-reload": "^1.2.0"
},
"private": true
"private": true,
"dependencies": {
"vite": "^5.4.11"
}
}
Loading

0 comments on commit a422a82

Please sign in to comment.