JSPM

zangano

0.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q18947F
    • License MIT

    node.js and browser JavaScript library with easy to use API to load a TypeScript projects from git repositories, ready to be used by Compiler API, with full LanguageService and TypeChecker, read/write support.

    Package Exports

    • zangano

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zangano) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    node.js and browser JavaScript library with easy to use API to load a TypeScript projects from git repositories, ready to be used by Compiler API, with full LanguageService and TypeChecker, read/write support.

    Motivation

    • I have several apps that consume a TypeScript project to perform manipulation/queries on the AST files and I need to have a easy / standard way of representing and acess a TypeScript project in the browser too, with the same API I would do in node.js.

    Initial Implementation

    • load a git project in browser using https://isomorphic-git.org/docs/en/fs
    • implement ts-morph or TypeScript FileSystemHost based on FS implementation used for previous point (BrowserFs, lightning-fs)
    • add missing Type libraries to the project, mandatory typescript/libs.d.ts . Since we cannot perform npm install we need to do it by hand.
    • after this we should be able to create a ts-morph project that resolve all types and have correct TypeCheking.