mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-24 00:01:36 +01:00
Improve docs development section
This commit is contained in:
parent
fd7cd49790
commit
caf8af44d1
|
@ -1,15 +1,15 @@
|
||||||
Sooner or later you will face with situation when you want/need to make some
|
Sooner or later, you will face with situation when you want/need to make some
|
||||||
changes in the library. Then the most important tool for you it's
|
changes in the library. Then the most important tool for you it's the
|
||||||
[`npm link`](https://docs.npmjs.com/cli/link).
|
[`npm link`](https://docs.npmjs.com/cli/link).
|
||||||
|
|
||||||
Please, notice that it will not work if you link library just from root of the
|
Please, notice that it will not work if you link the library just from the root
|
||||||
repo. It happens due to location of sources `./src`. You need to pack library
|
of the repo. It happens due to the location of sources `./src`. You need to pack
|
||||||
first `make pack` and then link it from `./dist` directory.
|
the library first, `make pack` and then link it from the `./dist` directory.
|
||||||
|
|
||||||
Yeah it's not such comfortable solution for development. But it can fixed by
|
Yeah, it's not such a comfortable solution for development. But it can be fixed
|
||||||
writing small script similar as `make pack` but with linking every file and
|
by writing a small script similar to making a pack but by linking every file and
|
||||||
directory from `./src` to the some directory and linking then from it. Notice
|
directory from `./src` to the same directory and linking then from it. Notice
|
||||||
that you need to link `package.json` and `package-lock.json` as well.
|
that you need to link a `package.json` and a `package-lock.json` as well.
|
||||||
|
|
||||||
So step by step:
|
So step by step:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user