msolimans / generator-sls

Yeoman generator for a lambda Serverless project
MIT License
29 stars 8 forks source link

What's package.json for? #14

Open nerdmax opened 4 years ago

nerdmax commented 4 years ago

I generated a golang serverless template and found a package.json file in the project root. It has some scripts like: "test", "lint", "build", etc... which are using dotbox.

I checked the README file and there's nothing related to these scripts nor the package.json. So what's this package.json for?

msolimans commented 4 years ago

It was meant for nodejs projects since generator-sls is not only specific to one language- support of nodejs is still a work in progress, I hope I will be able to dedicate some free time to start refactoring and add new features to this project.

Thanks @nerdmax for reporting, PRs are welcome.

msolimans commented 4 years ago

@ryus08 ^^

ryus08 commented 4 years ago

I guess I assumed that since serverless needs nodejs at least to run, the package.json is at least needed for that.

Personally, I think I'm becoming a fan of utilizing nodejs as good cross-platform scripting language for CI as well, although it takes a little more overhead to use than conventional make/bash. I've never used dotbox though.