@@ -47,20 +47,13 @@ Per tenir una primera idea sobre com crear un packet NPM desde zero, podeu consu
...
@@ -47,20 +47,13 @@ Per tenir una primera idea sobre com crear un packet NPM desde zero, podeu consu
### Paquets NPM: testeig
### Paquets NPM: testeig
El testeig ens serveix per assegurar-nos que el paquet NPM que estem construïnt funciona com hauria. Una forma simple i eficaç de fer un test del packet és a través de la comanda ``link``.
El testeig ens serveix per assegurar-nos que el paquet NPM que estem construïnt funciona com hauria. Una forma simple i eficaç de fer un test del packet és a través de la comanda ``link``.
Testing ensures that your NPM package works as expected. There are many ways to test your package. In this tutorial, you will learn one of the simplest ways of testing.
First, navigate to the root of your package project. Then, run the following command:
Aquesta comanda cal executar-la des de la carpeta del paquet que s'està desenvolupant.
La següent documentació correpon a una prova de concepte per consumir una o diverses components de react des d'una aplicació, també feta amb React.
Per tant, per una banda necessitem una carpeta d'arxius amb els components de react i una configuració de webpack
> :warning: **If you are using mobile browser**: Be very careful here!
To simplify this project was bootstrapped using
Però compte,
nwb, but I would look into an alternative (or just use rollup) as
this project does not seem to be actively maintained lately. What's interesting
about nwb is that apart from configuring all necessary bundling for
you, it sets up a demo application where you can consume the component you are building.
The idea is to create a component that sets up the whole somoffice frontend, and allows customization.