Comments (6)
Good catch! Pushed that removal :)
from grunge-stack.
I played around with this a little and got somewhat further, but it's not much further than I got in Dec/Jan when I was first exploring this.
- I started with the code before the commit associated with this issue (so pre-
ts-node
changes) - I cheated and renamed
server.js
toserver.ts
but otherwise left it as-is (I'm not overly experienced in the JS/TS space, this was a shortcut just to produce something) - I added the arc plugin for typescript as documented here
This results in:
- 🎉 a 2MB deployed lambda with only what is needed (the goal)
- 🐛 a break in local/sandbox workflow since
server.ts
is not automatically recompiled when the Remix app is recompiled. (not the goal). Perhaps this is whatts-node
brings to the table?
I think that is the fundamental issue - how to blend the two TypeScript build phases - the one for Remix & the one for Arc sandbox.
from grunge-stack.
Amazing! I can't wait to see the improvement on the lambda deployment.
@kentcdodds did you mean to commit server.js
? Seems like maybe that should be deleted and gitignored since you wrote server.ts
?
from grunge-stack.
@kentcdodds I have good news & bad news.
- 🎉
server.ts
looks great! - 😢 the deployed lambda size went the wrong direction. Now it's bundling 108MB instead of 29MB of dependencies.
from grunge-stack.
@tbeseda @jacob-ebey do you know what we might be doing wrong here?
from grunge-stack.
Is there any progress here?
from grunge-stack.
Related Issues (20)
- LiveReload does not work HOT 1
- Starting project is throwing Error [ERR_PACKAGE_PATH_NOT_EXPORTED] error HOT 2
- "Lambda handler not found" error due to change in `@architect/architect` v10.6.0 HOT 4
- Setup fails HOT 2
- 🚀 Fresh Stack Deployment Not Working As Expected HOT 2
- Loading notes locally takes 900ms in grunge stack compared to 30ms in indie HOT 1
- remix defer is malfunctioning by awaiting and blocking responses HOT 4
- Fresh unaltered template will not deploy with Github Actions HOT 2
- Recommend adding @aws section to .arc file HOT 3
- Cypress smoke test fails with newly initialized project HOT 1
- @prisma/client did not initialize yet HOT 1
- Fresh deployment leads to Internal Server Error HOT 1
- Error occurs after fresh installation HOT 1
- notes example app is slow
- Fresh Grunge-Stack results in many browser console errors HOT 5
- Type error on initial validate of the stack HOT 9
- Warning: server timed out after hitting its 5s timeout! HOT 6
- Deploy Error HOT 3
- Try creating new Remix project using grunge stack but the cli freeze after asking me want to run verify build/tests/etc script HOT 8
- Replace `run-p` with `npm-run-all -p-` because the former doesn't kill all process when pressing CTRL+C in windows HOT 6
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 grunge-stack.