Skip to content

How to build and import TKO-beta as a bundled library. #178

Open
@Mikhail-Ananev

Description

@Mikhail-Ananev

Hello.
I'm trying to build and import recent TKO-beta version at my TS project built from source (as of npm-hosted version is alpha7).
So, I cloned that repo and run "make" (if I understood correctly, the default is make 'all', which uses npx'ed Lerna as packager for individual of packages from the monorepo in packages and calls their builders) command from root of the repo, then I got "builds" folder with 2 folder inside: "knockout" and "reference". Right now i'm struggling to pinpoint/understand the functional difference between these two versions of TKO, and the purpose of the 'reference' build. I'd really appreciate some advice.

Looks like the TKO library should be ready to be imported right from dist directory, but different file depending of used in-project modules. I understood that there are multiple build targets for different types of modules like ECM or commonJS, etc., and while using the build with ECM, i should be using the import ko from "<arbitrary path>/libs/tko/builds/knockout/dist/index.js" build. Please, correct me if i'm wrong. And, may it possibly be connected to #158 ?

Also, if these questions are resolved, may I contribute to a readme for more clearance/updated guide on the build-to-usage pipeline. Right now I'm looking into #134 by which way the build process may be improved.
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions