Comments (13)
But expect it in 1.2.0
from compress.
@RichardLindhout I have thought about that! 😁 But that would require some harder thinking.
from compress.
Yeah, no problem! I've been thinking about using the internal git
cache of a repository and simply outputting a folder with already processed files. Then just calling that folder to see if something's cached or not. The simplest of things.
sequenceDiagram
participant User
participant AstroCompress
participant Cache
participant FilesPipe
participant Git
User->>AstroCompress: Input Files
loop Check Cache
AstroCompress->>Cache: Check if cached
Cache-->>AstroCompress: Cache status
end
alt Cache Found
AstroCompress->>Cache: Retrieve from Cache
Cache-->>AstroCompress: Cached Files
else Cache Not Found
AstroCompress->>FilesPipe: Process Files
FilesPipe-->>AstroCompress: Processed Files
AstroCompress->>Cache: Store in Cache
Cache-->>AstroCompress: Cache Stored
AstroCompress->>Git: Commit Processed Files
Git-->>AstroCompress: Commit ID
end
Git->>User: Commit ID
alt Processed Files Changed
AstroCompress->>Cache: Replace Cached Files
Cache-->>AstroCompress: Replacement Done
end
AstroCompress->>User: Output Files
That way you can stage that folder in git
and have those files persisted, so every time AstroCompress is executed on the CI or somewhere it can have something to work with.
from compress.
Thank you, I love your package.
Really looking forward to the caching feature.
from compress.
I noticed the slow build times on https://github.com/nikolaxhristov/astro.build.compress.critters, as well and also some errors ough
from compress.
@NikolaRHristov does this work now, would be really cool!
from compress.
Hey @RichardLindhout, still not I'm afraid 😅 That's why astro-compress
is still version 1.1.x 🤣
from compress.
I have some time over the weekend so I'll give it a crack.
from compress.
Wow that would be so great!!
from compress.
Hey @NikolaRHristov Thanks again for opening that PR against FusionAuth!
I know you are trying to pull back from this project, but did you have thoughts on how this would work? I might hack on this and make a PR if you haven't gotten very far.
from compress.
This would ideally be implemented in FilesPipe
- https://github.com/NikolaRHristov/FilesPipe
from compress.
This is very well still in its ideation stage and PRs are welcome.
from compress.
Thank you, I love your package. Really looking forward to the caching feature.
🙏🏻 Yeah, same, this is a hard feature.
from compress.
Related Issues (20)
- Throws error in vercel and cloudflare HOT 21
- free(): invalid size HOT 4
- free(): invalid size HOT 34
- Dynamic import will not move module into another chunk HOT 6
- SVG content is empty since 2.2.18 HOT 5
- Cloudflare crashes HOT 1
- Breaks SolidJS HOT 1
- Actual package name HOT 6
- Adapt to `astro`'s `sharp` version either on `preinstall` or `postinstall` HOT 7
- Broken types HOT 1
- Allow for complete overriding of `sharp`'s options. HOT 1
- unmet peer dependencies HOT 2
- [feature request] optional PurgeCSS integration as part of CSS compression HOT 3
- Javascript Files Getting Skipped HOT 3
- munmap_chunk(): invalid pointer HOT 3
- After upgrading to v0.0.4: Type 'AstroIntegration' is not assignable to type AstroIntegration HOT 16
- html comments not removed HOT 7
- Playform Compress installation fails with Astro 4.9.2 HOT 2
- Media Queries: Range Syntax conflict HOT 3
- CSSO silently removes nested CSS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compress.