Create and Publish a Universal JavaScript Module

Written by vladys_lav | Published 2019/11/28
Tech Story Tags: javascript | nodejs | npm-modules | karmajs | webpack | latest-tech-stories | javascript-modules | tutorial

TLDR There are a lot of inconsistency in the JavaScript world. Since 1997 (ECMAScript 1) and before 2015 there were no standards for JavaScript modules. In ES 2015 (ES6) modules were added to the specification and new export and import statements introduced. To make it compatible with browsers we will use webpack and it’s umd library. To test the module, use karma, chrome-launcher and jasmine to run tests in Chrome browser. After publishing your first version, update your module version from 0001 to 1 to 1.via the TL;DR App

no story

Written by vladys_lav | Software Engineer
Published by HackerNoon on 2019/11/28