Skip to content

Publish the project file to the specified folder, and then it can be easily deployed to the server through tools such as FTP

License

Notifications You must be signed in to change notification settings

everygit/sbtpublish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbtpublish

image

Publish the project file to the specified folder, and then it can be easily deployed to the server through tools such as FTP

install

npm install sbtpublish

package.json

{
  "name": "publish",
  "scripts": {
    "sbtpublishconfig": "sbtpublish -c a.config.js",
    "sbtpublish": "sbtpublish"
  },
  "dependencies": {
    "sbtpublish": "sbtpublish"
  }
}

a.config.js

module.exports = {
    output: 'cccc',
    ignore: [
        'build'
    ],
    lastModify: '1d'
}
  • output Output folder
  • ignore Ignore published files or folders
  • lastModify /^([0-9.]+)([smhdMy]?)$/

publish

npm run sbtpublishconfig

default

const path = require('path');

module.exports = function (appRoot) {
    return {
        output: path.resolve(appRoot, 'sbtpublish'),
        ignore: [

        ]
    }
}

appRoot is the folder where sbtpublish runs

About

Publish the project file to the specified folder, and then it can be easily deployed to the server through tools such as FTP

Resources

License

Stars

Watchers

Forks

Packages

No packages published