Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/web-infra-dev/nde
A tool to speed up the deployment of node.js project and reduce the size of deployment products.
https://github.com/web-infra-dev/nde
deployment fullstack nodejs
Last synced: 3 months ago
JSON representation
A tool to speed up the deployment of node.js project and reduce the size of deployment products.
- Host: GitHub
- URL: https://github.com/web-infra-dev/nde
- Owner: web-infra-dev
- License: mit
- Created: 2024-08-15T03:46:13.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T04:29:33.000Z (5 months ago)
- Last Synced: 2024-09-12T14:07:40.953Z (5 months ago)
- Topics: deployment, fullstack, nodejs
- Language: TypeScript
- Homepage:
- Size: 122 KB
- Stars: 8
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ndepe
`Ndepe` is a utility that analyzes your Node.js project's source code to extract the necessary dependencies and files required for deployment and emits these files to a designed node_modules directory that can be used for the deployment. `Ndepe` can simplify the deployment flow and greatly reduce the size of the deployment package.
## Features
- **Efficient File Extraction and Size Reduction**: Automatically detects and extracts only the files required by your project,generate to designed, production-ready node_modules directory, significantly reducing deployment package size. It can be used with some popular Node.js frameworks such as Express, Koa and NestJS e.g..
- **Monorepo Tool Agnostic**: Compatible with any monorepo tool (e.g., pnpm, Rush, Nx, Turborepo) and offers faster deployment compared to deployment capability of monorepo tools.
- **Rich Configuration and Extensibility**: Supports customizable file inclusion rules, cache configuration, and other extensible options to meet diverse project needs.## Usage
```
import { nodeDepEmit } from 'ndepe'nodeDepEmit({
appDir: appDirectory, // the directory of the project root
sourceDir: sourceDirectory, // the directory of the entry files, usually the product outputs (e.g. compiled js)
})```