question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document how to use fresh in a sub-directory (e.g `src/`)

See original GitHub issue

Discussed in https://github.com/lucacasonato/fresh/discussions/253

<div type='discussions-op-text'>

Originally posted by o-az June 18, 2022 Moved islands, routes, fresh.gen.ts, dev.ts and main.ts to src directory.

Updated start task in deno.json to: deno run -A --watch=src/static/,src/routes/,src/islands/ --no-check src/dev.ts.

Project runs and routes work but this error is consistently logged: CleanShot 2022-06-18 at 08 40 01

I’m trying to avoid this error. Is there a proper way to have a .src/ directory or is it not possible as of now?</div>

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lucacasonatocommented, Jun 20, 2022

Fresh does it itself now (see //www/dev.ts in this repo). https://fresh.deno.dev/docs/getting-started/create-a-project elaborates on what the dev.ts file does.

1reaction
lucacasonatocommented, Jun 20, 2022

The fresh manifest command does not exist anymore (the entire fresh CLI has been removed).

Read more comments on GitHub >

github_iconTop Results From Across the Web

makefile - How to place object files in separate subdirectory
Any idea how I can get this to use C files in the current directory as the dependency while using $(OBJDIR) as the...
Read more >
Dealing with files - Learn web development | MDN
To reference a file in a subdirectory, write the directory name in front of the path, plus a forward slash, e.g. subdirectory/my-image.jpg ....
Read more >
Create your first directory - Learn the Command Line in Terminal
Use the command mkdir to create a directory. mkdir is short for "make ... create folders and files for your code via the...
Read more >
Add items to your project | IntelliJ IDEA Documentation
If you want to create several nested directories, specify their names separated with slashes, for example: folder/new-folder. Creating a new ...
Read more >
Configuration - MkDocs
Set a list of CSS files in your docs_dir to be included by the theme. For example, the following example will include the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found