npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

akey-deploy-web

v1.0.9

Published

web项目一键打包部署

Downloads

4

Readme

web项目一键部署( akey-deploy-web )

设计初衷

现有成熟的自动化部署方案大多为 jenkins + gitlab/github 但是需要我们配置很多繁琐的东西,而对于大多数前端开发者而言这些并不擅长 再者,杀鸡焉用宰牛刀,如果我们只是想实现前端的自动化部署,不管后端的死活那我们更不必用jenkins 那,能否有个轻量级的前端一键部署方案呢?

今天,他来了 哈哈

使用

下载

 npm/cnpm i akey-deploy-web

在根目录上新建配置文件 deploy.config.js(必须叫这个名称)

module.exports = Object.freeze({
  development: {
    //测试
    SERVER_PATH: '', // ssh地址 服务器地址
    SSH_USER: '', // ssh 用户名
    //方式一 用秘钥登录服务器(推荐), private 本机私钥文件地址(需要在服务器用户目录 一般是 /root/.ssh/authorized_keys 配置公钥 并该文件权限为 600, (.ssh文件夹一般默认隐藏)
    // PRIVATE_KEY: 'C:/Users/Html5/.ssh/id_rsa',
    PASSWORD: '', //方式二 用密码连接服务器
    PATH: '' // 需要上传的服务器目录地址 如 /usr/local/nginx/html
  },
  production: {
    //正式
    SERVER_PATH: '',
    SSH_USER: 'root',
    PRIVATE_KEY: '',
    PATH: '/test/html'
  }
})

在package.js文件中新加命令

  "scripts": {
    ...
    "d": "node node_modules/akey-deploy-web"
  },

运行 npm run d 即可实现一键部署

注意

  • 部署对象服务器使用ssh链接
  • 输入npm run d后会询问你填写git备注,填写则会自动把代码提交到当前git仓库,如不填写则不会提交到git

git 地址 求star