How to automatically zip files with Node.js and npm
Is there a way to automatically zip certain files at the build time with Node.js and npm? For example, I have a project, that file structure looks like this: Project/ --lib/ --node_modules/ --test/ --index.js --package.json I want to be able to zip lib folder, certain modules from node_modules and index.js into some zip archive to upload it on the AWS Lambda, for example. I do not need test folder or test Node.js modules (mocha and chai) to be zipped. I have even created a bash script for generating zip file, but is there a way to automatically execute this script, when 'npm install' is called
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.