52beb60a6b
#4678 ended up not working on account of the imports being incorrect. Unfortunately updating to use the dist directory still causes problems with ESM resolution (it attempts to import monaco editor since the playground website is bundled into a single file), so reverting to the hard-coded list for now to fix #4674 --------- Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com> |
||
---|---|---|
.. | ||
e2e | ||
samples | ||
src | ||
test | ||
.env | ||
.gitignore | ||
README.md | ||
index.html | ||
package.json | ||
tsconfig.config.json | ||
tsconfig.json | ||
vite.config.ts | ||
vite.lib.config.ts | ||
vitest.config.ts |
README.md
TypeSpec Playground Website
A self contained website for the TypeSpec Playground.
Use
npm start
to start in dev modenpm run preview
to build and preview prod modenpm run build
to build for production
Configuration
To change the default configuration add a .env.local
file in the root of this package.
The following environment variables are available:
# Bundle and use local version of TypeSpec libraries
VITE_USE_LOCAL_LIBRARIES=true