npm.io
1.1.3 • Published 6 years ago

eht-common-libraries

Licence
ISC
Version
1.1.3
Deps
0
Size
873 kB
Vulns
0
Weekly
0

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 i

Libs 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 watch

The 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