GithubHelp home page GithubHelp logo

Comments (7)

AviVahl avatar AviVahl commented on August 23, 2024 1

Yeah, and you can actually see several setups using it here:
https://github.com/wixplosives/sample-monorepo
https://github.com/wixplosives/file-services

from ts-tools.

AviVahl avatar AviVahl commented on August 23, 2024

As I mentioned in #159, I'm planning to deprecate the @ts-tools/build package. I'm finishing up migrating several repositories still using it to project references, and then it will be retired.
However, feel free to take any piece of useful code from it. It's MIT exactly for this reason. :)

from ts-tools.

rkovalov avatar rkovalov commented on August 23, 2024

ok, thanks )

from ts-tools.

rkovalov avatar rkovalov commented on August 23, 2024

@rkovalyov Just to get knowledge, finally Do you expect to run build by tsc --build in project what you migrating to project references?

from ts-tools.

rkovalov avatar rkovalov commented on August 23, 2024

@AviVahl How to deal with developing own build scripts (bin) for closing api from other developers, and control it from one repo ?

from ts-tools.

AviVahl avatar AviVahl commented on August 23, 2024

Not sure I understand what you're asking... Could you clarify what it is you are trying to achieve?
What do you mean by "how to deal", "closing api", and "control it"?

If you need to create a cli, you reference an entry point (with a shebang comment at the top) from the package.json with the "bin" field.
For any npm package, you can also expose whatever you choose as a public API (through the "exports" or "main" fields).
If you're using newer Node versions, you can control which files (internal to your package) can be imported from outside using the "exports" field.
Several npm packages can co-exist in a mono-repo (such as ts-tools), referencing one another, allowing you to control the used APIs and develop packages in parallel. Each of those packages can define bin entries.

from ts-tools.

rkovalov avatar rkovalov commented on August 23, 2024

@AviVahl sorry for my English )
I meant run programatically tsc --build and for example handling css by gulp in one process,

"closing api" - hidden api for other developers
"control it"- wrap all logic related building package in one repo (like create react app scripts)

so finally, instead of concurrently running concurrently "tsc --build" "build css" , wrap all logic in own cli tool and run my-own-scripts build

from ts-tools.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.