Results 1 to 3 of 3

Thread: Need to include a folder in app.json while building the app

  1. #1

    Default Need to include a folder in app.json while building the app

    Hi

    I am trying to include a folder in app.json
    so that at the time of sencha app build production
    Folder should get included in production build and js file should get minified
    Sencha Cmd v6.5.0.180

    Code:
     "js": [
            {
                "path": "app.js",
                "bundle": true
            },{
                "path":"scripts/customreportbuilder/"
            }
        ],
    Error while sencha app build production

    Code:
    [[email protected] webapp]$ sencha app build production
    Sencha Cmd v6.5.0.180
    [INF] Processing Build Descriptor : classic (production environment)
    [INF] Loading compiler context
    [INF] Loading app json manifest...
    [INF] Processing data with CmdJavascriptCompressor
    [INF] Writing concatenated output to file /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport/classic/app.js
    [INF] merging 297 input resources into /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport/classic/resources
    [INF] merged 1 resources into /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport/classic/resources
    [INF] merging 30 input resources into /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport
    [INF] merged 1 resources into /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport
    [INF] Writing content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/bootstrap.json
    [INF] Writing content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/bootstrap.js
    [INF] writing sass content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/CustomReport-example.scss.tmp
    [LOG] Fashion build starting for /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/CustomReport-example.scss
    [WRN] @theme-background-image: Theme image not found: images/tab/tab-navigation-close.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-more.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-more-left.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-left-top.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-right-top.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-left-bottom.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-right-bottom.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-top-left.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-bottom-left.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-top-right.gif
    [WRN] @theme-background-image: Theme image not found: images/tab-bar/navigation-scroll-bottom-right.gif
    [LOG] Fashion build complete for /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/CustomReport-example.scss
    [LOG] Fashion build completed in 2.327 sec.
    [INF] Capturing theme image
    [INF] Capture complete
    [INF] Slicing images...
    [INF] Slicing complete - generated 280 images
    [INF] Writing content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/bootstrap.json
    [INF] Writing content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/slicer-temp/bootstrap.js
    [INF] writing sass content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/sass/CustomReport-all.scss.tmp
    [INF] appending sass content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/sass/CustomReport-all.scss.tmp
    [INF] appending sass content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/sass/CustomReport-all.scss.tmp
    [INF] Writing content to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport/classic.json
    [LOG] Fashion build starting for /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/sass/CustomReport-all.scss
    [LOG] Fashion build complete for /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/temp/production/CustomReport/sass/CustomReport-all.scss
    [LOG] Fashion build completed in 2.129 sec.
    [INF] Copying page resources to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport/scripts/customreportbuilder (Is a directory)
    [ERR] 
    [ERR] Total time: 19 seconds
    [ERR] The following error occurred while executing this line:
    /home/local/bin/Sencha/Cmd/6.5.0.180/ant/build/app/build-impl.xml:405: The following error occurred while executing this line:
    /home/local/bin/Sencha/Cmd/6.5.0.180/ant/build/app/page-impl.xml:256: com.sencha.exceptions.BasicException: /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport/scripts/customreportbuilder (Is a directory)
    [[email protected] webapp]$ sencha app build production
    Including single files work but need to include a folder

    Open to all suggestions

    Thanks
    Aniket J

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005
    Answers
    5

    Default

    Thank you so much for your post. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thanks again,

    Michele



  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569
    Answers
    7

    Default

    Hello Aniket,

    In js config of app.json file, there is no such architecture that include folder in js config. It will include js file only either it is inside nested folder.
    You need to include all this js file one by one in js config.


    Hope this will help you.

    Regards,
    Kumar

Tags for this Thread

Posting Permissions

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