0.2.2 • Published 4 years ago

sbtpublish v0.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

sbtpublish

image npm.io npm.io

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

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago