• Giovanni Ortuño Urquidi's avatar
    mojo-ts: Generate tsconfig.json files for targets · eaddc4f8
    Giovanni Ortuño Urquidi authored
    tsconfig.json files are similar to BUILD files. We can use them to
    specify the list of files to compile as well as compiler options.
    
    We'll need them later when we add support for depending on other
    mojo targets.
    
    Sample generated tsconfig.json
    
    {
      "compilerOptions": {
        "lib": [
          "es6",
          "esnext.bigint"
        ],
        "module": "es6",
        "strict": true,
        "target": "es6"
      },
      "files": [
        "constants.test-mojom-lite.m.ts",
        "enums.test-mojom-lite.m.ts",
        "export1.test-mojom-lite.m.ts",
        "export2.test-mojom-lite.m.ts",
        "export3.test-mojom-lite.m.ts",
        "export4.test-mojom-lite.m.ts",
        "import.test-mojom-lite.m.ts",
        "module.test-mojom-lite.m.ts",
        "structs.test-mojom-lite.m.ts",
        "other_dir/other_dir.test-mojom-lite.m.ts"
      ]
    }
    
    Bug: 1002798
    Change-Id: I1155d038c93718f706724c99604e2e46917c9b92
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2245855Reviewed-by: default avatarKen Rockot <rockot@google.com>
    Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#781689}
    eaddc4f8
BUILD.gn 786 Bytes