GithubHelp home page GithubHelp logo

h4ad / node-modules-packer Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 1.0 848 KB

Pack all your node_modules and other files you want inside your project to a zip file.

License: MIT License

Shell 0.26% JavaScript 0.80% Batchfile 0.09% TypeScript 98.85%
depoy nodejs nodemodules npm pack serverless zip

node-modules-packer's People

Contributors

h4ad avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bbjj88h

node-modules-packer's Issues

Add support for graceful-fs

Feature Request

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.

Are you willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time, and I know how to start.
  • Yes, I have the time, but I don't know how to start. I would need guidance.
  • No, I don't have the time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.

[Feature Request] Support for path mapping

Feature request

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.

Are you willing to solve this problem by sending a Pull Request?

  • Yes, I have time and I know how to start.
  • Yes, I have time, but I don't know how to start. I would need guidance.
  • No, I don't have time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.

Zip on Windows

Current Behavior

When running this package on Windows, some packages like @h4ad/serverless-adapter are missing from final bundle.

Related: H4ad/serverless-adapter-examples#2

Expected Behavior

The packages are included.

Steps to Reproduce the Problem

  1. Clone: https://github.com/H4ad/serverless-adapter-examples/tree/master/examples/trpc-digital-ocean
  2. Run zip command on Windows
  3. See inside packages/api/prod/deploy.zip, the dependency @h4ad/serverless-adapter is missing on node_modules.

Environment

  • Version: 1.1.0
  • Platform: Win10
  • Node.js Version: 14.20.0

[Feature Request] Add support for uglify-js

Feature request

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.

Are you willing to solve this problem by sending a Pull Request?

  • Yes, I have time and I know how to start.
  • Yes, I have time, but I don't know how to start. I would need guidance.
  • No, I don't have time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.