MCPcopy Index your code
hub / github.com/11ty/dev-server

github.com/11ty/dev-server @v2.0.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.8 ↗ · + Follow
74 symbols 166 edges 9 files 0 documented · 0% 29 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

11ty Logo

eleventy-dev-server 🕚⚡️🎈🐀

A minimal, modern, generic, hot-reloading local web server to help web developers.

Documentation

npm Version

Installation

This is bundled with @11ty/eleventy (and you do not need to install it separately) in Eleventy v2.0.

CLI

Eleventy Dev Server now also includes a CLI. The CLI is for standalone (non-Eleventy) use only: separate installation is unnecessary if you’re using this server with @11ty/eleventy.

npm install -g @11ty/eleventy-dev-server

# Alternatively, install locally into your project
npm install @11ty/eleventy-dev-server

This package requires Node 18 or newer.

CLI Usage

# Serve the current directory
npx @11ty/eleventy-dev-server

# Serve a different subdirectory (also aliased as --input)
npx @11ty/eleventy-dev-server --dir=_site

# Disable the `domdiff` feature
npx @11ty/eleventy-dev-server --domdiff=false

# Full command list in the Help
npx @11ty/eleventy-dev-server --help

Tests

npm run test

Changelog

  • v2.0.0 bumps Node.js minimum to 18.

Core symbols most depended-on inside this repo

mapUrlToFilePath
called by 30
server.js
close
called by 29
cli.js
testNormalizeFilePath
called by 19
test/testServer.js
serve
called by 16
cli.js
log
called by 15
client/reload-client.js
getOptions
called by 15
test/testServerRequests.js
error
called by 11
client/reload-client.js
makeRequestTo
called by 10
test/testServerRequests.js

Shape

Method 60
Class 8
Function 6

Languages

TypeScript100%

Modules by API surface

server.js42 symbols
client/reload-client.js19 symbols
cli.js7 symbols
test/testServerRequests.js3 symbols
server/wrapResponse.js2 symbols
test/testServer.js1 symbols

For agents

$ claude mcp add dev-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact