Skip to Content

adding a new decorator to smartedit - ngtemplates and concat

Hello,
I'm trying to add a new decorator to a custom Smartedit extension according to this guide:
https://help.hybris.com/6.7.0/hcd/7cebd4f5dc2a430fbe878f88baf2bd9c.html
but I can't figure out where to put ( I mean in which file/section) these code excerpts:

 ngtemplates: {
             options: {
                 standalone: true, //to declare a module as opposed to binding to an existing one
                 module: 'myModuleTemplates'
             },
             run: {
                 src: ['web/features/**/*Template.html'],
                 dest: 'jsTarget/web/features/templates.js'
             }
         }

and

 concat: {
             options: {
                 separator: ';'
             },
             dist: {
                 src: ['web/features/features/**/*.js', 'some other pattern'],
                 dest: 'jsTarget/myModule.js'
             },
         },

Can anyone help?
Thanks
ello

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 23, 2018 at 01:27 PM

    My understanding of the Help site you linked is that there is a Gruntfile.js file in your custom SmartEdit extension, and you need to define it there.

    Check this file, as sample: backoffice/node_modules/grunt-angular-templates/Gruntfile.js

    Reference:

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.