-
Notifications
You must be signed in to change notification settings - Fork 34
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
Allow for a serverless.ts file #85
Comments
sounds like awesomeness, would you like to open a pr? i can walk you through the code 🚀 |
OK. Can do... whats the effort involved? (if you have to guess) ..? |
These are the two main places you need to fix
Tips:
See whts comfortable :) we can review the code once its done :) |
Side note: The solution should be backwards compatible, correct? i.e. users/devs should have the choice to choose between the |
++ Serverless has this code in it: (when reading the serverless config file)
However - it never seems to run to the The error I get is:
|
I agree, as for the |
@ubergeoff We have released |
any update on this? |
FEATURE
Allow for the use of a serverless.ts file instead of a serverless.yml file
SOLUTION I WOULD LIKE
As per serverless nodejs examples - it is already possible to make use of a serverless.ts replacement for you serverless.yml file.
I would like to make use of the same serverless.ts functionality that is made is available in the serverless examples: https://github.com/serverless/serverless/tree/master/lib/plugins/create/templates/aws-nodejs-typescript
Check which provider is affected:
[X] AWS
[] Azure
[] Google Cloud Platform
Check which framework is affected:
[] Angular
[] Nodejs
[X] Serverless
[] Lambda
[] Infrastructure as a code
Additional context
I find that it is far, far easier to make use of Typescript serverless.ts file instead of a serverless.yml file - as I can make simple constant references within my serverless.ts file.
Example:
Also I don't need to make references to serverless pseudo names or symbols - I can just use simple imports of constants within my project.
The implementation can stay as-is for the current configuration - but - just make use of the serverless.ts file.
Example:
I tried the above but I get the following error:
Would this be possible --? I think it would be an awesome addition to the work you have done so far..?
The text was updated successfully, but these errors were encountered: