Commit graph

3 commits

Author SHA1 Message Date
Danielle McLean 2255703a21
Provide better XDG compliance for Node.js
We want to store the Node REPL history in XDG_DATA_HOME, and we also
want to make sure we always have an npm config file that sets up npm
with its appropriate XDG paths. (By default, lots of stuff ends up in
~/.npm if no configuration is provided.)

As I mention in the diff, we can't simply commit the npm config file to
version control, because it contains things like authorisation tokens
that shouldn't be committed. We can however generate a default config
file that sets up the XDG paths we need, allowing the user to then go
ahead and add tokens to the generated file later on, like so.
2021-10-01 11:32:16 +10:00
Danielle McLean a2d253384a
Add support for tj/n, using ~/.local as the prefix - this integrates quite nicely with the other stuff that goes in ~/.local, such as global npm packages 2018-01-15 09:08:30 +11:00
Danielle McLean a8eddde979
Move npm's user configuration file under XDG config home 2017-09-11 08:55:33 +10:00