anthonyshort / deku

Render interfaces using pure functions and virtual DOM

Home Page:https://github.com/anthonyshort/deku/tree/master/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot npm install from github

danwad opened this issue · comments

2.0.0-rc16 is the latest version on npm, but there are some changes I'd like from master.

From a bit of googling, I found that I can do this by installing from github with npm install --save dekujs/deku

However, .npmignore prevents src from being included when the package is installed so require('deku') fails.

Should the build directory lib be committed to the repo?

What is the recommended way of using bleeding edge deku?

What is the recommended way of using bleeding edge deku?

There isn't one, unfortunately. This is an issue for all npm repositories with its built code not committed to the repo, or not updated regularly.

Here are some workarounds:

  • Clone dekujs/deku first.
  • If you want to use it locally, just run npm link. Then in the repo you'd like to use it in, run npm link deku.
  • You can also publish it as @danwad/deku by changing package.json's name to that, and change the version as you like, then publish using npm publish --access public.

npm link works well - thanks :)