-
Notifications
You must be signed in to change notification settings - Fork 45
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
Ability to use against devDependencies #339
Comments
Hi there and thanks. This surfaced also in #340 now, so it'll be fixed somehow. |
@rmmeans Very cool! Besides ST, are you using any frameworks for this? We're currently working on a concept for this in Typelevel. If you have a moment, would be awesome to get your feedback on this :) |
@oyvindberg The problem is minor - and that is bundle size which has impact on coldstart times. On Lambda, the runtime your code runs on will already have some dependencies for you, things such as the |
Bundle size was my concern as well. |
@armanbilge yup! We make HEAVY use of this facade library: https://github.com/exoego/aws-sdk-scalajs-facade it's very lightweight and feels pretty natural from an AWS API point of view. At some point this fall, I hope to do a writeup about our experience of building a large serverless app using Scala.js. At present, I can say this in summary about our work of using Scala for serverless:
I think the more tutorials that can be written on how to do large scale scala.js on lambda, the better! The get started templates can be useful but I don't think they are practical for application unless the show how to use common serverless tooling such as Serverless Framework or AWS SAM. In reality, serverless apps have just as many, if not more native cloud resources in them as lambda's themselves - we should embrace that workflow as a scala community and show how to use scala.js with AWS SAM or Serverless framework. For us, once we got the core structure ironed out for our mono repo and the first commits rolling up through a pipeline, on-boarding new team members, etc hasn't been much different than any other scala project. |
Thank you for taking the time to write this all up!! Very very helpful to hear your experience with this.
What are your thoughts an SBT plugin that handles this deployment aspect? |
Fixed this now in 88ec013 , the next release will have an |
@rmmeans you may find these new projects helpful: |
Hi! First off, thank you so much for this great project! I noticed on Gitter that devDependencies (https://gitter.im/ScalablyTyped/community?at=5e36b2586f9d3d349817a0da) are not parsed when using
ScalablyTypedConverterExternalNpmPlugin
.I have a use case that needs this. Let me explain -
We are making heavy use of Scala.js on AWS Lambda. On lambda, it is not uncommon to run into situations where a dependency is provided via a Lambda Layer or by the lambda runtime itself (e.g. the aws-sdk). Since NPM doesn't have what we have in maven land with a
provided
scope, Lambda developers will usedevDependencies
for resources that they actually do need at runtime, but they don't need built into their output source of their lambda artifact since the npm package they need will be provided either by the runtime or via a lambda layer.`Any ideas on how we can make it possible to allow ScalablyTyped to parse devDependencies, or named devDependencies via a config option?
The text was updated successfully, but these errors were encountered: