Skip to content

Commit

Permalink
Incorporated review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
naiknareshh committed May 21, 2022
1 parent 88b7c70 commit 8479c97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plop-templates/component_js.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getPlayById } from 'meta/play-meta-util';

import PlayHeader from 'common/playlists/PlayHeader';
import './{{pascalCase name}}.{{styling}}';
import './{{camelCase name}}.{{style}}';

function {{pascalCase name}}(props) {
// Do not remove the below lines.
Expand Down
2 changes: 1 addition & 1 deletion plop-templates/component_ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { getPlayById } from 'meta/play-meta-util';

import PlayHeader from 'common/playlists/PlayHeader';
import './{{pascalCase name}}.{{styling}}';
import './{{camelCase name}}.{{style}}';

function {{pascalCase name}}(props:any) {
// Do not remove the below lines.
Expand Down
8 changes: 4 additions & 4 deletions plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ module.exports = plop => {
},
{
type: 'list',
name: 'styling',
message: 'Styling to be used (css/scss):',
name: 'style',
message: 'Style to be used (css/scss):',
choices: ['css', 'scss']
},
{
Expand Down Expand Up @@ -79,8 +79,8 @@ module.exports = plop => {
},
{
type: 'add',
path: 'src/plays/{{generateFolderName name}}/{{pascalCase name}}.{{styling}}',
templateFile: 'plop-templates/style_{{styling}}.hbs',
path: 'src/plays/{{generateFolderName name}}/{{camelCase name}}.{{style}}',
templateFile: 'plop-templates/style_{{style}}.hbs',
},
{
type: 'add',
Expand Down

0 comments on commit 8479c97

Please sign in to comment.