From 8479c97fff7e4e5f8549be0ca6f9dd04582e564c Mon Sep 17 00:00:00 2001 From: naiknareshh Date: Sat, 21 May 2022 10:59:45 +0530 Subject: [PATCH] Incorporated review comments --- plop-templates/component_js.hbs | 2 +- plop-templates/component_ts.hbs | 2 +- plopfile.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plop-templates/component_js.hbs b/plop-templates/component_js.hbs index e978e4f51..718a2e036 100644 --- a/plop-templates/component_js.hbs +++ b/plop-templates/component_js.hbs @@ -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. diff --git a/plop-templates/component_ts.hbs b/plop-templates/component_ts.hbs index 508a1e816..f33769259 100644 --- a/plop-templates/component_ts.hbs +++ b/plop-templates/component_ts.hbs @@ -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. diff --git a/plopfile.js b/plopfile.js index 027905f5c..01ab257a4 100644 --- a/plopfile.js +++ b/plopfile.js @@ -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'] }, { @@ -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',