-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from vmadman/develop
Develop
- Loading branch information
Showing
36 changed files
with
3,203 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Project Scaffold: "luke:sls-service" ([source](../../generators/sls-service/index.js)) | ||
|
||
A [project scaffold](../project-scaffolds.md) that can be used to create or | ||
recreate a basic Serverless service project (C2C Style). | ||
|
||
This scaffold includes everything that the [module scaffold](module.md) includes | ||
as well as many additional [partials](../partials.md) for Serverless development. | ||
|
||
## Usage Example | ||
|
||
``` | ||
$ yo luke:sls-service | ||
``` | ||
|
||
## Included Partials | ||
|
||
The following [partials](../partials.md) are included when this | ||
[project scaffold](../project-scaffolds.md) is used/specified: | ||
|
||
* .. todo .. | ||
* [luke:readme](../partials/readme.md) | ||
|
||
_Note: Additional, unlisted, [partials](../partials.md) may be automatically | ||
included as [partial dependencies](../partials.md#partial-dependency)._ | ||
|
||
# Further Reading | ||
|
||
* [Source](../../generators/sls-service/index.js) - The source code for this [project scaffold](../project-scaffolds.md) | ||
* [Project Scaffold Listing](./) - Individual docs for each [project scaffold](../project-scaffolds.md) | ||
* [About Project Scaffolds](../project-scaffolds.md) - Basic information about project scaffolds | ||
* [About Partials](../partials.md) - Information about partials | ||
* [About Sub-Generators](../generators.md) - General information about generators and sub-generators | ||
* [Project README](../README.md) - Basic project information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* This is a "partial" sub-generator that attaches a proprietary license. | ||
* | ||
* @example | ||
* shell> yo luke:proprietary-license | ||
* | ||
* @author Luke Chavers <[email protected]> | ||
* @created 2017-08-31 | ||
*/ | ||
|
||
var yeoman = require( "yeoman-generator" ); | ||
var baseGenerator = require("../_BaseGenerator"); | ||
|
||
module.exports = baseGenerator.extend( | ||
{ | ||
|
||
prompting : function() { | ||
|
||
// Locals | ||
var me = this; | ||
|
||
// Initialize the base generator | ||
me._initBase(); | ||
|
||
// Show user prompts | ||
me._showPrompts( | ||
|
||
// Prompts from the base generator | ||
["copyrightHolder"], | ||
|
||
// Additional, custom, prompts | ||
[], | ||
|
||
// Callback function | ||
me.async() | ||
|
||
); | ||
|
||
}, | ||
|
||
writing : { | ||
|
||
createPartialFiles : function() { | ||
|
||
var me = this; | ||
|
||
// LICENSE.MD | ||
me.fs.copyTpl( | ||
me.templatePath( "core/_PROPRIETARY-LICENSE.md" ), me.destinationPath( "LICENSE.md" ), { | ||
year : new Date().getFullYear(), | ||
owner : me.props.copyrightHolder | ||
} | ||
); | ||
|
||
} | ||
} | ||
|
||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.