Below you will find pages that utilize the taxonomy term “Deno”
test modules published on both deno modules and jsr
@dallmo/array-search
link to deno modules link to jsr
some notes
deno modules
- update version by adding new releases in github ;
- clean and eary dependency management only via
deps.ts
as best practice ; - no import / installation of individual package required ;
jsr
- update version by incrementing the version number inside
deno.json
; - provide better control over module publishing with namespacing with scope ;
- package scoring is interesting and helpful ;
deno template repo
usage
via curl :
curl -sS https://jimz.cc/s/deno.sh | bash
via deno :
deno run -Ar https://jimz.cc/s/deno.ts
clone via ssh
git@github.com:dallmo/deno-app-template.git
link to github repo
running a remote deno script / module
deno run -Ar https://deno.land/x/lume/init.ts
ref :
deno run main.ts
deno run https://mydomain.com/main.ts
cat main.ts | deno run -
using env vars in deno
1. in shell / deno deploy / runtime
1a. define them
- in shell, define and export them like
export AWS_REGION="ap-southeast-1"
- in deno deploy, define them in :
project settings > environment variables
- in run time :
with the deno runtime API
official referenceDeno.env.set(key: string, value: string): void
1b. access them
with the deno runtime API
Deno.env.get(key: string): string | undefined
2. in .env file
1a. define them
put the file / symlink it to project root :
typescript, deno and websocket
read morebuilding and deployment notes on the new jimz.cc
updates as of 2024-12-02
this site is now being generated via hugo instead. the following info are only kept for future reference.
overview
some notes on scaffolding this site when following the official instructions.
some background info
this site used to be built with gatsby, even thought the built site is fast in response and have endless possibilites by adding plugins, it is still too heavy and bulky at the back ( a basic starter takes too much time to start, and too much dependencies to deal with ), at least to me and in my use case which i don’t really need that much interactivities, and even if i did need them, in my next project i’d probably be building it with Fresh.
deploying lume project to deno deploy
overview
the instructions given in lume regarding the deploying to deno deploy is incomplete. this page serves to provide a complete instruction.
background info
- build static page with lume ;
- host the codes in github ;
- deploy in deno deploy ;
- automatic re-deployment in deno deploy on every gith push ;
this page describe (4) and provide missing info in lume.land by consolidating related info in reference pages listed at the end of this page.