opensas / encuestas

https://encuestas-online.vercel.app
0 stars 0 forks source link

research: create deployable exe #63

Open opensas opened 6 hours ago

opensas commented 6 hours ago

deno:

https://github.com/sveltejs/cli/issues/214#issuecomment-2432578556

 deno run -A npm:sv@latest create deno-project

SvelteKit at deno: https://deno.com/blog/web-frameworks-on-deno#sveltekit

deno adapter for SvelteKit: https://github.com/pluvial/svelte-adapter-deno

repo with instructions: https://github.com/cotyhamilton/deno-sveltekit?tab=readme-ov-file

workaround for $xxx paths: https://github.com/denoland/deno/issues/17248#issuecomment-2481252226

// deno.json or deno.jsonc
{
  "imports": {
    "$lib": "./src/lib",
    "$lib/": "./src/lib/",
    "$env/static/public": "./.svelte-kit/ambient.d.ts",
    "$env/static/private": "./.svelte-kit/ambient.d.ts",
    "$env/dynamic/public": "./.svelte-kit/ambient.d.ts",
    "$env/dynamic/private": "./.svelte-kit/ambient.d.ts",
    "$app/forms": "../../node_modules/@sveltejs/kit/types/index.d.ts",
    "$app/environment": "../../node_modules/@sveltejs/kit/types/index.d.ts",
    "$app/navigation": "../../node_modules/@sveltejs/kit/types/index.d.ts",
    "$app/server": "../../node_modules/@sveltejs/kit/types/index.d.ts",
    "$app/stores": "../../node_modules/@sveltejs/kit/types/index.d.ts"
  }
}
opensas commented 6 hours ago
deno run -A --reload npm:sv create encuestas-deno

cd encuestas-deno

deno install --allow-scripts=npm:@sveltejs/kit@2.8.1