eht-common-libraries
v1.1.3
Published
Common internal libraries for web projects
Downloads
13
Readme
common-libraries
Common internal libraries for web projects
All EHT-made libraries are bundled under a common file
Use the bundle
The bundle (min.js and min.js.map files) should be imported in a /lib folder and imported in the index.html like this
<script src="lib/eht-common.min.js"></script>That's it.
All libraries are available under EhtCommon\
Ex:
EhtCommon.MessageId.toHeader();Edit libraries
Install NPM dependencies :
npm iLibs are in src directory.
If you want to create a new one, make sure to add it in the index.js.
Watch for changes :
npm run watchThe generated file should not be used in a production environment. The file should only be used in a dev / testing environment. To compile bundle, see next section.
Generate bundle
Compile bundle
After editing, run this :
npm run build