Git Product home page Git Product logo

Comments (10)

juniorsysadmin avatar juniorsysadmin commented on May 27, 2024

An empty string as the title for a defined type is not valid, so no, you can't do this with the npm defined type at the moment. This should probably be a new type of its own. Say, run_npm_install { '/path/to/directory': }

from puppet-nodejs.

igalic avatar igalic commented on May 27, 2024

👍

from puppet-nodejs.

linuxbandit avatar linuxbandit commented on May 27, 2024

+1

from puppet-nodejs.

igalic avatar igalic commented on May 27, 2024

@serviceman do you wanna provide a patch?
me and @juniorsysadmin are mostly covered in administration these days :(

from puppet-nodejs.

linuxbandit avatar linuxbandit commented on May 27, 2024

wish so, but unfortunately I have few time and zero knowledge of Ruby (and rather few of puppet), so I can't make it!

from puppet-nodejs.

jyaworski avatar jyaworski commented on May 27, 2024

What's the status of this?

from puppet-nodejs.

igalic avatar igalic commented on May 27, 2024

@jyaworski this is still desired and missing

from puppet-nodejs.

NoodlesNZ avatar NoodlesNZ commented on May 27, 2024

While it's not ideal, you can run nodejs::npm like this:

nodejs::npm { 'App dependencies':
  ensure  => 'present',
  package => '',
  target  => '/home/example/',
}

Which runs "npm install" in that directory

from puppet-nodejs.

igalic avatar igalic commented on May 27, 2024

is that idempotent, though?

from puppet-nodejs.

juniorsysadmin avatar juniorsysadmin commented on May 27, 2024

Functionality added by #300

from puppet-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.