Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Scaffold a new Radish project
Scaffolds a new Radish project
Getting started
deno run -A jsr:@radish/init@1.0.0-alpha.xx my-rad-project
Project structure
Your scaffolded project has the following structure:
my-rad-project/ ├ elements/ <-- custom elements, web components and unknown elements ├ lib/ <-- ts utilities ├ routes/ <-- routes and one-off colocated custom elements ├ static/ <-- static assets served as-is ├ start.ts <-- start script and project config └ deno.json
Contributors
To scaffold from the latest unreleased version, provide a GitHub URL pointing to the init
module on any branch or commit.
You’ll also need to supply an import map to resolve module specifiers. You can use the one in the init/
folder:
https://raw.githubusercontent.com/radishland/radish/refs/heads/main/init/importmap.json
Or use a local file for finer control over dependency versions.
Scaffolding from GitHub (unauthenticated)
Scaffolding from GitHub (unauthenticated)
Fetch the init module from the main
branch, along with its sibling importmap.json
:
deno run -A --reload --import-map https://raw.githubusercontent.com/radishland/radish/refs/heads/main/init/importmap.json https://raw.githubusercontent.com/radishland/radish/refs/heads/main/init/mod.ts
Scaffolding from GitHub (authenticated)
Scaffolding from GitHub (authenticated)
If you're hitting GitHub's API rate-limits, pass a GitHub auth token to the init command.
A read-only token (no permissions required) is sufficient. You can generate one under GitHub → Settings → Developer Settings → Personal Access Tokens.
deno run -A --reload --import-map ./importmap.json https://raw.githubusercontent.com/radishland/radish/refs/heads/main/init/mod.ts --auth github_token_1234
Add Package
deno add jsr:@radish/init
Import symbol
import * as init from "@radish/init";
Import directly with a jsr specifier
import * as init from "jsr:@radish/init";
Add Package
pnpm i jsr:@radish/init
pnpm dlx jsr add @radish/init
Import symbol
import * as init from "@radish/init";
Add Package
yarn add jsr:@radish/init
yarn dlx jsr add @radish/init
Import symbol
import * as init from "@radish/init";
Add Package
vlt install jsr:@radish/init
Import symbol
import * as init from "@radish/init";
Add Package
npx jsr add @radish/init
Import symbol
import * as init from "@radish/init";
Add Package
bunx jsr add @radish/init
Import symbol
import * as init from "@radish/init";