JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q73219F
  • License MIT

used to package the nuxt project locally, quickly deploy it to the remote server, and automatically restart the pm2 application.

Package Exports

  • @deeptimes/deployer

Readme

Readme

This tools is used to package the nuxt project locally, quickly deploy it to the remote server, and automatically restart the pm2 application.

install

pnpm add @deeptimes/deployer

add deployer.config.js to your project root

const config = {
  ssh: {
    host: 'localhost',
    port: 22,
    username: 'root',
    privateKey: '~/.ssh/id_rsa',
    readyTimeout: 20000,
  },
  temp: 'temp',
  output: '.output',
  dist: 'dist.tar.gz',
  excludes: ['.DS_Store', '._.DS_Store'],
  remote: {
    root: '/www/web',
    site: 'www_test_com',
  },
}

export default config

add"deployer": "nuxt-deployer" to your package.json

{
  "scripts": {
    "deployer": "nuxt-deployer"
  }
}

usage

pnpm deployer

Todo

本地压缩包时,清理mac自带的前缀文件

._*
.DS_Store