SU-SWS / decanter

A collection of front end web resources.
GNU General Public License v3.0
41 stars 9 forks source link

KSS global install #93

Closed sherakama closed 6 years ago

sherakama commented 6 years ago

Find out wether or not this can be moved to a local install or document the heck out of it.

sherakama commented 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.

JBCSU commented 6 years ago

I've found two options:

  1. 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.

  2. 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.

JBCSU commented 6 years ago

Option 1, wonky but self-contained, is the winner.

sherakama commented 6 years ago

This is done!