• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    App Export - app.json (new v14.10)

    you are here (click to zoom) - discover the stack

    Starting in v14.10 you can override some export behavior.

    Restrict Exported Folders/Files

    Default Behavior (v7+)

    By default, the following folders will not be included in the ZIP file:

    The following folders and files are special source-code folders and will not be included in export / import of Apps.

    1. .git git versioning data
    2. .vs visual studio code settings
    3. node_modules location for NPM javascript packages for development
    4. bower_components location for javascript packages, similar to NPM but older

    New Configurable Behavior

    When Webpack5 came along, it also needed the folder .temp_cache. So it became clear, that we shouldn't hardwire a list, but make it configurable.

    So now in your App folder you can create a folder App_Data see App_Data and in that create an app.json.

    We've also created a schema for it so you will have some intellisense while editing. The latest version is https://schemas.2sxc.org/app/v14/app.json. For other versions see app.json by version.

    Example:

    {
      "$schema": "https://schemas.2sxc.org/app/v14/app.json",
      /*
        This is a JSON file but it is treated like a JSONC (with comments).
    
        Different editors may complain about the comments. 
        To reconfigure VS Code so it knows comments are ok, do this: https://azing.org/2sxc/r/h9m1l6JO
      */
    
      "export": {
        "exclude": [
          // Skip git versioning folders, github config folders
          ".git/",
          ".github/",
          // ".gitignore",
    
          // Webpack 5 temporary folder and NPM folders
          ".temp_cache/",
          "node_modules/",
    
          // Other examples
          // ".vs",
          // ".vscode",
          // "package.json",
          // "package-lock.json",
          // "nuget.config",
        ]
      }
    
    }
    
    • Improve this Doc
    Back to top Generated by DocFX