Closed sherakama closed 6 years ago
https://github.com/kss-node/kss-node/wiki/Quick-Start-Guide
Suggests that KSS node should be installed locally and not globally.
I've found two options:
In Gruntfile.js
, simply change run.styleguide.cmd
from kss
to ./node_modules/.bin/kss
. This is completely self-contained, but looks a little wonky.
npm install -g npm-run
. This installs a global command, npm-run
, that runs commands within the npm context of whatever project you’re in. Then change run.styleguide.cmd
in Gruntfile.js
to npm-run kss
. This still requires everyone who develops decanter to install a global package, but it’s a generically useful global package whose value is not limited to just working on Decanter.
If you tell me which you prefer, I’ll do a PR.
Option 1, wonky but self-contained, is the winner.
This is done!
Find out wether or not this can be moved to a local install or document the heck out of it.