pullmeister

1.0.3 • Public • Published

PullMeister - execute tasks after git pull

Config file example pullmeister.config.js

module.exports = ({
    test: {
        description: "Test command",
        glob: "*.*",
        commands: [
            ["pwd", {dir: "../"}],
            "echo Done"
        ]
    },
    migrate: {
        description: "Run db migrations",
        glob: "app/Database/Migrations/*.php",
        commands: [
            "php ./spark migrate"
        ]
    },
    compileFrontend: {
        description: "Rebuild frontend",
        glob: "frontend/**/*.*",
        commands: [
            ["yarn build", {dir: "./frontend"}]
        ]
    }
})

Place config file on your repo's root, then run a command pullmeister (or just pm). Script will execute git pull, then match received files with glob patterns from a config file, and run matching tasks.

Rebuild your frontend, migrate database, and more!

Readme

Keywords

Package Sidebar

Install

npm i pullmeister

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

7.15 kB

Total Files

10

Last publish

Collaborators

  • lunavod