Skip to main content
Home

@radish/init@1.0.0-alpha.30
Built and signed on GitHub Actions

Scaffold a new Radish project

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
Published
2 weeks ago (1.0.0-alpha.30)

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.

Examples

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)

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

Scaffolding from a specific commit

To scaffold from a specific commit, use its SHA in the URL:

deno run -A --reload --import-map ./importmap.json https://raw.githubusercontent.com/radishland/radish/<sha>/init/mod.ts --auth github_token_1234
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@radish/init

Import symbol

import * as init from "@radish/init";
or

Import directly with a jsr specifier

import * as init from "jsr:@radish/init";

Add Package

pnpm i jsr:@radish/init
or (using pnpm 10.8 or older)
pnpm dlx jsr add @radish/init

Import symbol

import * as init from "@radish/init";

Add Package

yarn add jsr:@radish/init
or (using Yarn 4.8 or older)
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";