You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a plugin for VSCode. For this plugin in, I need to be able to reliably parse serverless files. When including serverless as a dependency, this becomes quite simple. However, this increases the size of my package by nearly 200x! All I need is a simple parser, not all the bells and whistles. People have tried to make parsers for serverless files, but they generally do not work well. For those in a situation similar to mine, a small serverless parsing package would be ideal.
Proposed solution
Release some sort of smaller package designed specifically for parsing serverless files. This way, people can create plugins, extensions, or whatever else using the serverless format and share them with the community.
The text was updated successfully, but these errors were encountered:
@jadamon42 great thanks for that proposal. Still due to how Servelress Framework works, what you have in mind is not that doable. Thing is that parsing and resolving fully a serverless config involves many layers, as resolving variables, which may reference config parts from other files or external services, or supporting plugin resolvers (and that requires loading of all plugins of a service).
So even if that theoretically could be minimized a bit, it'll be probably just a fraction and not a significant slice as you may assume.
We're currently working on a schema based validation for config files, and we discussed exactly this matter there. See #6562 (comment)
Use case description
I am creating a plugin for VSCode. For this plugin in, I need to be able to reliably parse serverless files. When including serverless as a dependency, this becomes quite simple. However, this increases the size of my package by nearly 200x! All I need is a simple parser, not all the bells and whistles. People have tried to make parsers for serverless files, but they generally do not work well. For those in a situation similar to mine, a small serverless parsing package would be ideal.
Proposed solution
Release some sort of smaller package designed specifically for parsing serverless files. This way, people can create plugins, extensions, or whatever else using the serverless format and share them with the community.
The text was updated successfully, but these errors were encountered: