Best npm and javascript libraries for extensions
Javascript libraries
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:
- 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.
- 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
Post a Comment