amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

Which files should be in .gitignore? #66

Closed ildar-icoosoft closed 6 years ago

ildar-icoosoft commented 6 years ago

Tell me please which files from awsmobilejs I should store in git? awsmobile-cli added to gitignore this lines:

awsmobilejs/.awsmobile/backend-build
awsmobilejs/\#current-backend-info

If I don't add cloud-api in awsmobile features then there are not many files in git. But if I add cloud-api feature then there are > 4000 files in awsmobilejs/backend/cloud-api directory. Should I add this directory in .gitignore?

elorzafe commented 6 years ago

Hi @ildar-icoosoft

Inside of cloud-api directory contains directories for each lambda function. Lambda functions contains a node_modules directory that you should add into your .gitignore.

You can modify your lambda functions at your will, awsmobile-cli provides some functionality to demonstrate the feature but is expected to be modified and that code is important to be versioned.

ildar-icoosoft commented 6 years ago

@elorzafe Thank you! I have a directory "sampleLambda" in cloud-api. I think awsmobile-cli should automatically add .gitignore file with node_modules ?

UnleashedMind commented 6 years ago

node_module are usually already put in the .gitignore file when the project is setup. the cli only inserts relevant files generated by itself into the .gitignore file

UnleashedMind commented 6 years ago

closing the issue for now, feel free to re-open it or continue the conversation here.