class

Analyzer::Javascript::Solidstart

Inherits Analyzer::Javascript::JavascriptEngine < Analyzer < FileHelper < Reference < Object

SolidStart routes every module under src/routes/ by its file path:

src/routes/index.tsx → GET / src/routes/about.tsx → GET /about src/routes/blog/(blog).tsx → GET /blog (renamed index) src/routes/(auth)/login.tsx → GET /login (group hidden) src/routes/users/[id].tsx → GET /users/{id} src/routes/[...404].tsx → GET /{404} src/routes/api/users.ts → its GET / POST / ... exports

A module's verb exports are API handlers; a default export is the page, served on GET. A module beside a same-named directory (blog.tsx next to blog/) is that directory's layout and adds no route of its own.

Constants

EXTENSIONS = [".tsx", ".jsx", ".ts", ".js"]
PACKAGE_MARKERS = ["\"@solidjs/start\"", "\"solid-start\""]

solid-start is the pre-1.0 package, same layout and verb exports.

Class methods

tech_name
Source

Instance methods

analyze
Source
tech

Instance-side view of the same declaration. The per-file rescues live on this base class, which has no way to name the analyzer that is running inside them, so a skipped file could not be attributed to a tech. Deriving it from analyzer_for keeps the name written exactly once.

Source