paket-runner

1.0.0 • Public • Published

Node Paket Runner Build Status Greenkeeper badge

Node module for running Paket commands

npm install paket-runner

This is a work in progress and only the restore function has been created. Although, it should be very easy to add to in the future

Usage

var PaketRunner = require('paket-runner');
 
// Note: spawn assumes the cwd is the top level of the project
var paket = PaketRunner({
    paketPath: 'path/to/paket.exe' // default --> './.paket/paket.exe'
});
 
// promise based
paket
    .restore({ /* ... options ... */ })
    .then(function(stdout) {
        // stdout from the paket process
    })
    .catch(function(stderr) {
        // error object with either stderr or exit code
    });

Paket Commands Available

This list should get bigger over time...

Restore

All paket options are available. The are additive, meaning not enabled by default

paket.restore({
    force: true,
    onlyReferenced: true,
    touchAffectedRefs: true,
    group: 'MyGroup',
    referencesFiles: 'Files'
});
 
// executes
// path/to/paket.exe restore --force --only-referenced group MyGroup --references-files Files

This was influenced heavily by node-nuget-runner. I couldn't figure out why it was doing what it was until I tried it differently. Thanks so much!

Use gulp? Just installed Paket and others work on your repo? Checkout this sample of initialization/always having the latest Paket

Dependencies (2)

Dev Dependencies (5)

Package Sidebar

Install

npm i paket-runner

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

11.9 kB

Total Files

14

Last publish

Collaborators

  • vernak2539