Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

Keywords

install

npm i paket-runner

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability