h4ad / node-modules-packer Goto Github PK
View Code? Open in Web Editor NEWPack all your node_modules and other files you want inside your project to a zip file.
License: MIT License
Pack all your node_modules and other files you want inside your project to a zip file.
License: MIT License
Is your feature request related to a problem? Please describe.
Add support for https://www.npmjs.com/package/graceful-fs to solve issues with TOO_MANY_OPEN_FILES
.
Describe the solution you'd like
Install and mockey-patch the fs lib.
Is your feature request related to an issue? Please describe.
I want to be able to map a file from: ex /asset/image.png to /image.png.
Describe the desired solution
We can include another type of include like: string | { path: string, mappedPath: string }
.
For CLI, we can do like: -i asset/image.png:image.png
.
When running this package on Windows, some packages like @h4ad/serverless-adapter
are missing from final bundle.
Related: H4ad/serverless-adapter-examples#2
The packages are included.
packages/api/prod/deploy.zip
, the dependency @h4ad/serverless-adapter
is missing on node_modules
.Is your feature request related to an issue? Please describe.
Sometimes we see inside node_modules
libraries built with comments and lots of things not optimized.
One way to reduce package size is to process these files to remove comments and make other optimizations.
Describe the desired solution
Something to pipe to transform code, like pipe code to be transformed by uglify-js.
Describe the alternatives you considered
Can I wrap uglify-js or do something else so I can expose a way to use integration with your own solution to transform code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.