Skip to content

Linking Wollok TS

Fernando Dodino edited this page Sep 9, 2021 · 10 revisions

Thanks to this article, we can update a local sibling wollok-ts project whenever we want (and not only a released version).

First time process

Clone wollok-ts

You must clone wollok-ts project in a desired folder.

Link wollok-linter to wollok-ts

Now you have to associate wollok-ts as a local library for wollok-linter. Assuming this is the configuration:

  • wollok
    • wollok-ts
    • wollok-linter

You can run a bash script:

wollok-linter > linkWollokTs.sh ../wollok-ts

It will

  • install yalc as a tool for linking libraries in Node
  • publish wollok-ts as a local library in your yalc installation
  • add wollok-ts as a local reference in wollok-linter project

Updating wollok-ts

As soon as you change your wollok-ts files, you want this change to be reflected on wollok-linter. Then you only have to run

wollok-ts > yalc push

As a result, it will update the library in the yalc store and it will be used by the wollok-linter as expected.

Clone this wiki locally