-
-
Notifications
You must be signed in to change notification settings - Fork 432
Conversation
I think anything generated should live outside the working files entirely. I can totally go either way on this, but that'd still be my vote. The latest structure has This is especially true if we rename the manifest imports to something like this: import { manifest } from 'sapper/server';
//
import { manifest } from 'sapper/client';
//
import { timestamp, assets, shell, routes } from 'sapper/sw';
// or, of course, use 1 file and export manifests/partials from it
import { server as manifest } from 'sapper/manifest'; |
Ah, I forgot this issue drops the manifests entirely 😇 Either way, I'd still vote for having all generated files in a single directory, preferably away from my user-source files. |
To clarify, is that a vote for the structure shown in the tree diagram above? Relatedly, should |
Sorta. I think this makes the most sense:
|
Oh, interesting. I can definitely see the appeal of that. The only downside is that |
I would go further and rename the directory to |
I think it needs to be something like Also, (Btw the reason I say |
RE RE RE |
Ok, I've put everything in Sapper. It is nice and neat. Will try this branch out with a few different projects and see if I've missed anything. No-one's apps would be adversely affected by having |
This lays the foundation for #444, by moving app logic out of the Sapper package (
sapper/dist/middleware.js
andsapper/runtime.js
) and into the generated files.Those generated files, which used to be
project/src/manifest/{client,server,service-worker}.js
are now written to theproject/src/__sapper__
directory. That is still up for debate. One possibility is to put all generated files inproject/__sapper__
(i.e. outsidesrc
), so that it would look like this:TODO