Skip to content

Add Templates to Serverless Create - #1537

Merged
pmuens merged 6 commits into
v1.0from
templates
Jul 12, 2016
Merged

pmuens merged 6 commits into
v1.0from
templates

Conversation

@eahefnawy

@eahefnawy eahefnawy commented Jul 11, 2016 •

Copy link
Copy Markdown
Contributor

PR for implementing issue #1470

  • create command is serverless create --template aws-node where aws-node is the template name. It could be aws-python or any other template we might add later on based on runtime/provider or even boilerplates
  • drop the --name option. the service name by default will be the template name (ie. aws-node)
  • scaffolding will happen in the cwd. We won't need to create a new folder for the service and cd into it.
  • Document which templates are available
  • serverless create --help should print a list with all available templates
  • Update integration tests

Comment thread lib/classes/Utils.js
return filePaths;
}

copyDirContentsSync(srcDir, destDir) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test for this method?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opps good catch! coveralls didnt help there since this code is actually covered by other tests

@pmuens

pmuens commented Jul 12, 2016 •

Copy link
Copy Markdown
Contributor

Looks pretty good ❤️ !
Added one comment regarding a test.

Another thing would be to update the docs accordingly (there are some files which needs some updates).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants