Skip to content

Commit

Permalink
Fixed spelling mistakes in example
Browse files Browse the repository at this point in the history
  • Loading branch information
anish000kumar committed Jul 4, 2018
1 parent 2e63ed1 commit a2418d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/plopfile.js
Expand Up @@ -2,17 +2,17 @@
const path = require('path');

module.exports = function (plop) {
// starting prompt can be customize to display what you want
// starting prompt can be customized to display what you want
// plop.setWelcomeMessage('[CUSTOM]'.yellow + ' What can I do for you?');

// helpers are passed through to handlebars and made
// helpers are passed through handlebars syntax and made
// available for use in the generator templates

// adds 4 dashes around some text (yes es6/es2015 is supported)
plop.addHelper('dashAround', (text) => '---- ' + text + ' ----');

// formats an array of options like you would write
// it if you were speaking (one, two, and three)
// it, if you were speaking (one, two, and three)
plop.addHelper('wordJoin', function (words) {
return words.join(', ').replace(/(:?.*),/, '$1, and');
});
Expand All @@ -24,7 +24,7 @@ module.exports = function (plop) {
// greet the user using a partial
plop.addPartial('salutation', '{{ greeting }}, my name is {{ properCase name }} and I am {{ age }}.');

// load some additional helpers from a module I "npm install"ed
// load some additional helpers from a module installed using npm
plop.load('plop-pack-fancy-comments', {
prefix: '',
upperCaseHeaders: true,
Expand Down

0 comments on commit a2418d9

Please sign in to comment.