Results 1 to 2 of 2

Thread: Simple CMD Plugin Creation

  1. #1
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    765
    Vote Rating
    65
      0  

    Default Simple CMD Plugin Creation

    Hi guys, I trying to create a CMD plugin to be able to create an "example.txt"(on my app dir) file everytime I run"sencha app watch" command.

    I have created a plugin.xml file to do that.


    Can someone help me to do this plugin and clarify how CMD plugin development process is in Sencha CMD 6.5.2?

    Here what I have done.

    the problem:

    When I run sencha app watch the target script is not called



    build.xml


    Code:
    ...
    <import file="${basedir}/plugin.xml"/>
    ...

    plugin.xml

    Code:
    <project name="MyPlugin">
        <target name="-before-watch">
            <x-file-write file="${basedir}/myfile.txt">
                /**
                * This file is generated by Sencha Cmd and should NOT be edited.
                */
            </x-file-write>
        </target>
    </project>
    Wemerson Januario
    Blog: http://wemersonjanuario.com.br
    Contrate-me/Hire me on: https://www.upwork.com/fl/wemersonjanuario
    From: Goiânia, GO, Brazil
    Sencha Consultant and Web Developer

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

    modern toolkit locale package - https://github.com/wemersonjanuario/modern-locale

  2. #2
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    765
    Vote Rating
    65
      0  

    Default

    I have created both. A fresh app with CMD 6.5.2(with no .sencha folder) and using the old CMD(that creates a .sencha dir. Our goal is to create a new app with 6.5.2 and have the plugin running properly.

    This is the plugin.xml we have created

    Code:
    <project name="MyPlugin">
        <target name="-before-watch">
            <x-file-write file="${basedir}/myfile.txt">
                /**
                * This file is generated by Sencha Cmd and should NOT be edited.
                */
            </x-file-write>
        </target>
    </project>
    Doc for plugin creation on cmd 6.5.2?
    Where to put this plugin.xml file?
    What is the correct way to tell CMD to run this plugin?
    How to listen to the -before-watch target?
    Wemerson Januario
    Blog: http://wemersonjanuario.com.br
    Contrate-me/Hire me on: https://www.upwork.com/fl/wemersonjanuario
    From: Goiânia, GO, Brazil
    Sencha Consultant and Web Developer

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

    modern toolkit locale package - https://github.com/wemersonjanuario/modern-locale

Similar Threads

  1. Best practice for plugin creation?
    By rekam in forum Ext: Discussion
    Replies: 6
    Last Post: 13 May 2011, 12:06 AM
  2. Simple ListView creation example
    By MickeyMiner in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 16 Sep 2009, 7:30 AM
  3. Plugin creation result (remoteComponent)
    By Remy in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 31 Oct 2008, 4:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •