Best npm and javascript libraries for extensions

Javascript libraries
  • jquery, jquery-ui : well-known DOM manipulation functions and widgets. Don't forget to include minified version in your addon structure !
  • materialize, bootstrap: adopt a standard look&feel for your addons.
  • underscore:widely used library to manipulate collections and arrays. Streamline your code !
  • TLD: url analysis library, allows to dissect urls and separate the various components of a url.

NPM modules
Despite the fact that most js libraries can be webified for internal addon usage, I mainly use npm modules for my build environment:
  •  after testing grunt, I've adopted gulp for the readability and compactness of the build scripts.
I have validated and I'm using the following modules on a daily basis:
  • gulp-vinyl-zip: package all addon files into a single zip file for Chrome store advertisement.
  • crx : package all addon files into a crx file for Chrome
  • firefox-xpi: to package all addon files into a single xpi file for AMO store advertisement
  • gulp-watch: dynamic addon rebuild. I keep running this in the background
  • gulp-template: instantiate portions of codes with target-dependent content (useful for branding addons)
  • gulp-preprocess: generate code based on inline directives (useful for branding addons and handling dev and production versions)
  • child_process: run system commands
  • run-sequence: run sequentially multiple tasks
  • gulp-less: handle mutualization of css stylesheet files

Comments

Popular posts from this blog

Extending an extension with a native app.

Filtering console messages in the chrome devtools window

Intercepting file download in chrome