
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
deploy-finlean
Advanced tools
一个简单易用的项目部署工具,支持将前端项目打包并部署到远程服务器。
npm install -g deploy-finlean
npm install --save-dev deploy-finlean
在项目根目录执行以下命令:
# 全局安装方式
deploy-init
# 本地安装方式
npx deploy-init
# 指定完整路径
deploy-init --webDir /path/to/web/directory
# 或使用简写
npx deploy-init -w directory-name
# 自动拼接为 /home/webapps/directory-name
初始化后会生成 deploy.config.js 文件,需要修改为你的服务器信息:
/*
* Deployment configuration file
* Generated by deploy-finlean
*/
export default {
// 服务器配置
server: {
host: 'your-server-host', // 服务器 IP 或域名
port: 22, // SSH 端口
username: 'your-username', // 服务器用户名
password: 'your-password' // 服务器密码
},
// 本地配置
local: {
buildDir: 'dist', // 构建输出目录
zipPath: 'dist.zip', // 压缩文件路径
buildCommand: 'npm run build:prod' // 打包命令
},
// 服务器配置
remote: {
webDir: '/home/webapps/' // 服务器 web 目录
}
}
在项目根目录执行:
npm run deploy
deploy.config.js 配置文件npm run build:prod 命令进行本地打包unzip 命令npm run build:prod 脚本如果部署过程中出现错误,工具会输出错误信息并退出。常见错误包括:
deploy.config.js 文件不存在初始化配置:
npx deploy-init -w my-project
修改 deploy.config.js:
export default {
server: {
host: '192.168.1.100',
port: 22,
username: 'deploy',
password: 'your-password'
},
local: {
buildDir: 'dist',
zipPath: 'dist.zip',
buildCommand: 'npm run build:prod'
},
remote: {
webDir: '/home/webapps/my-project'
}
}
执行部署:
npm run deploy
ISC
FAQs
Deployment package for projects
The npm package deploy-finlean receives a total of 13 weekly downloads. As such, deploy-finlean popularity was classified as not popular.
We found that deploy-finlean demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.