Few things about Serverless Framework

Welcome to Serverless Framework

Things which I used in my application which enhanced my code

Plugins :

Condition based custom variables :

CLIENT_AC_ID:  ${self:custom.CLIENT_AC_ID_LOGIC.${self:provider.stage}, self:custom.CLIENT_AC_ID_LOGIC.other}CLIENT_AC_ID_LOGIC:
dev-user: “21289893432”
other: “#{AWS::AccountId}”
STAGE1_ARN: arn:aws:states:${self:provider.region}:${self:custom.CLIENT_AC_ID}:stateMachine:stage1pipeline-datasync-${self:provider.stage}

Serverless Code Linting :

{
"extends": "@serverless/eslint-config/node",
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"node": true
},
"rules": {
"no-console": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"strict": "off"
}
}
"lint-staged": {
"*.js": [
"npm run lint",
"prettier --write"
],
"*.json": [
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},

What if the application keeps growing?

There is an another option

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store