Results 1 to 3 of 3

Thread: Need to include a folder in app.json

  1. #1
    Sencha User
    Join Date
    Aug 2018
    Posts
    4
    Vote Rating
    0
      0  

    Default Need to include a folder in app.json

    Hi
    I am trying to minify the files contained in a folder named customreportbuilder

    I have added the path in app.json

    Sencha Version Sencha Cmd v6.5.0.180

    Code:
     "js": [        {
                "path": "app.js",
                "bundle": true
            },{
                "path":"scripts/customreportbuilder/"
            }
        ]
    getting an error after sencha app build

    Code:
    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
    [WRN] Could not set bean property named polyfills on options object of type : com.google.javascript.jscomp.CompilerOptions
    [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.266 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.132 sec.
    [INF] Copying page resources to /home/local/NetBeansProjects/ERP/Maven_Accounting/src/main/webapp/build/production/CustomReport
    [WRN] Could not set bean property named polyfills on options object of type : com.google.javascript.jscomp.CompilerOptions
    [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: 21 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)
    And minifying a single file
    includes a POLYFILL CONVERSION CODE which I don't need in Production Build
    Just minified code

    Open to all suggestions


    Thanks
    Aniket J

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    886
    Vote Rating
    -463
      0  

    Default

    Thank you so much for your post. I apologize for the delay. 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
    241
    Vote Rating
    -206
      0  

    Default

    Hello Aniket,

    trick to add whole js file under folder is

    "path":"${framework.dir}/myfolder/*"
    Otherwise need to attached saperate js file with this js config


    Below is sample code for its


    Code:
    "js": [
        {
          "path": "app.js",
          "bundle": true
        },
    	{
          "path": "node_modules/bootstrap/dist/js/bootstrap.min.js"
        },
    	{
    	  "path":"${framework.dir}/myfolder/*"
    	}
      ],

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
  •