Hey all, wrapped up the first version of the Types...
# general
t
Hey all, wrapped up the first version of the Typescript starter. It accounts for things that have come up in my past few months talking to you all here + working on my own projects. To provide something that works well out of the box there were a bunch of opinionated decisions I had to make so take this as a suggestion vs absolute correctness: https://github.com/serverless-stack/serverless-stack/tree/master/examples/typescript
a
This doesn’t cover frontend project right?
t
I'm going to add a minimal placeholder for frontend
a
Ok.
t
Don't want to make it too specific to any framework
a
Well, you can use the
static site
construct.
At the end is the same.
I’m mostly interested on having your vision on where to host it, and how to organize it.
Then the underlaying implementation of each frontend doesn’t matter.
t
Yeah I use StaticSite right now with Vite as build local dev server
c
Opinionated + explained recommendations can be worth their weight in gold. Still making the transition from JS to TS but excited to see this. Thanks for putting it all together @thdxr
a
@thdxr I like what you did but… I think you should put the services inside
src
and live at the same level of `test`… what you think about it? I’m saying this because I saw that pattern being followed in other projects.
t
Can you clarify? I don't even have a src folder atm
a
Yes, that’s why I’m saying that you should have one.
g
I would report some warnings I receive: When I execute create command I receive several warnings like these:
warning "@serverless-stack/cli > @aws-cdk/aws-apigatewayv2@1.114.0" has unmet peer dependency "@aws-cdk/aws-ec2@1.114.0".
warning "@serverless-stack/cli > @aws-cdk/aws-apigatewayv2@1.114.0" has unmet peer dependency "@aws-cdk/aws-certificatemanager@1.114.0".
warning "@serverless-stack/cli > @aws-cdk/aws-apigatewayv2@1.114.0" has unmet peer dependency "@aws-cdk/aws-cloudwatch@1.114.0".
warning "@serverless-stack/cli > @aws-cdk/aws-apigatewayv2@1.114.0" has unmet peer dependency "constructs@^3.3.69".
warning "@serverless-stack/cli > @aws-cdk/aws-dynamodb@1.114.0" has unmet peer dependency "@aws-cdk/aws-applicationautoscaling@1.114.0".
warning "@serverless-stack/cli > @aws-cdk/aws-dynamodb@1.114.0" has unmet peer dependency "@aws-cdk/aws-cloudwatch@1.114.0".
warning "@serverless-stack/cli > @aws-cdk/aws-dynamodb@1.114.0" has unmet peer dependency "@aws-cdk/aws-kinesis@1.114.0".
warning "@serverless-stack/cli > @aws-cdk/aws-dynamodb@1.114.0" has unmet peer dependency "@aws-cdk/aws-kms@1.114.0".
When I execute sst:start command I receive this warning:
==========================
Starting Live Lambda Dev
==========================
Transpiling Lambda code...
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.4.0
YOUR TYPESCRIPT VERSION: 4.4.2
Please only submit bug reports when using the officially supported version.
=============
/Users/GioMaligno/Workspace/linkey/backend/core/sample/sample.ts
1:8  warning  Missing return type on function  @typescript-eslint/explicit-module-boundary-types
✖ 1 problem (0 errors, 1 warning)
Please only submit bug reports when using the officially supported version.