Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request for .encoreignore #1723

Open
helmturner opened this issue Jan 18, 2025 · 0 comments
Open

feature request for .encoreignore #1723

helmturner opened this issue Jan 18, 2025 · 0 comments

Comments

@helmturner
Copy link

helmturner commented Jan 18, 2025

I would very much like to structure my repository as follows:

my-app/
├── app/ # some framework source code
│   ├── src/ # <-- code that will be bundled to `my-app/dist/entry.mjs`
│   ├── assets/ # <-- copied as-is to `my-app/dist/public/`
│   ├── .gitignore
│   ├── package.json
│   ├── tsconfig.json
│   └── vite.config.ts
├── dist/
│   ├── entry.mjs
│   ├── encore.service.ts # uses `./entry.mjs#handler` as middleware
│   ├── index.ts # serves static assets from `./public`
│   └── public/
├── serviceA/
│   ├── encore.service.ts
│   └── index.ts 
├── serviceB/
│   ├── encore.service.ts
│   └── index.ts 
├── .gitignore
├── package.json
├── tsconfig.json
└── vite.config.ts

Or something similar. The key point here is that I'd like to be able to co-locate the framework source code along my services without Encore trying to parse un-bundled source-code.

Basically I just want Encore to ignore files and directories I tell it to ignore so I can co-locate an Astro application alongside my Encore app without having to have a top-level-directory for both.

Unfortunately, Encore currently tries to parse every subdirectory recursively, regardless of whether Encore or my Web-App import files from one-another (they don't) or whether a service is declared therein.

@helmturner helmturner changed the title Proposal: .encoreignore feature request for .encoreignore Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant