Comments (7)
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.
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.
ok, thanks )
from ts-tools.
@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.
@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.
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.
@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)
- Just a problem HOT 1
- compatibility with ttypescript HOT 2
- Consider clarifying docs on tsconfig lookup. HOT 2
- [build] - Watch mode HOT 5
- [build] - Transform plugins HOT 2
- Type import warning HOT 4
- [webpack-loader] - Possibility to apply React Refresh Webpack Plugin HOT 5
- Feature: supporting tsconfig.json "paths" mapping HOT 8
- Request: [Webpack loader] - add the ability to manage the cache name externally
- [service] `getCompilerOptions` passes Readonly options, does not allow returning ReadOnly options HOT 2
- [service] TypeScriptService constructor arguments HOT 2
- [build] - `AllowJs` option doesnt work HOT 2
- [service] skip the typechecker but *do* perform tsconfig lookup? HOT 5
- [service] Use service to discover and parse tsconfig and discover matched source files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-tools.