Eleventy Dev Server - CLI and watch option
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Start by comparing the CLI handling of --watch and --dir with the setServerOptions({ watch }) configuration described in the issue, then check the Eleventy Dev Server man page. Done means the supported behavior for watching an array of external globs is documented or implemented, with the CLI and configuration paths agreeing.
Written by the indexing model from the issue text.
Description
This is a clarification rather than an issue I guess
Testing Eleventy 2.0.0@beta and Eleventy Dev Server 1.0.0, particularly the watch option in conjunction with external NPM scripts for CSS and JS processing. Can I use the --watch flag with the CLI or is the --dir flag the intended method for now ?
Everything works smoothly by doing npx @11ty/eleventy --serve with a JS configuration and setServerOptions
eleventyConfig.setServerOptions({
watch: ["./dist/assets/css/**/*.css", "./dist/assets/js/**/*.js"],
port: 3000,
});
Things are working as well with the CLI using a global --dir=\"./dist/\" flag
In some contexts, it would be great to be able to use the --watch flag with an array of globs (to watch files that are not necessarily in a single folder). Is that possible now / could be implemented down the line ? Looked at the Eleventy Dev Server man page but didn't see a way to do it.
- Dominant language
- JavaScript
- Stars
- 109
- Forks
- 19
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 11ty/dev-server
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
11ty/dev-server#95 ·
-
needs-votes
Difficulty 4/5 3-5 days Newbie friendliness 35/100
11ty/dev-server#113 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
11ty/dev-server#86 · 1 comment ·
-
enhancement needs-votes
Difficulty 3/5 1-2 days Newbie friendliness 45/100
11ty/dev-server#82 · 4 comments ·
-
enhancement needs-votes
Difficulty 3/5 1-2 days Newbie friendliness 45/100
11ty/dev-server#53 · 3 comments · 2 reactions ·
Similar issues
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 90/100
githubnext/gh-aw-cao#16599 ·
Maintainers usually reply within 1 day
-
effort:low impact:medium status: auto-triaged UI / Studio
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
mastra-ai/mastra#26124 · 2 comments ·
Maintainers usually reply within 1 day
-
allow igdb.comOpen
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
AdguardTeam/HostlistsRegistry#939 ·
Maintainers usually reply within 1 day
-
product / databases
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
smansfield635-create/smansfield635-create.github.io#5818 · 4 comments ·
Maintainers usually reply within 1 day