0
0
mirror of https://github.com/tj/n.git synced 2024-12-01 06:30:39 +01:00
Commit Graph

34 Commits

Author SHA1 Message Date
John Gee
cbde6e2b01
Add download command (#821) 2024-11-09 11:42:51 +13:00
John Gee
eea2a55533
Add support for trailing comment in .nvmrc (#820) 2024-10-28 14:58:34 +13:00
John Gee
7128e837f3 Add more codenames, out to 2026 2024-10-28 14:12:13 +13:00
John Gee
426952cf48
Fast track exact auto (#813) 2024-09-06 14:07:51 +12:00
John Gee
0f4997415f
Add --offline (#785) 2023-10-15 17:28:48 +13:00
John Gee
3e13c69864
Add fedora as a second Linux for main tests (#756) 2023-02-08 17:43:03 +13:00
John Gee
6ddeeed1fd
Update tests after old files missing (#757) 2023-02-08 17:42:27 +13:00
John Gee
6ed06f74ec
Remove tests support for running over proxy and remove ArchLinux from tests (#750) 2022-12-14 19:54:59 +13:00
John Gee
4082cf6e17 Adjust tests with updated servers and npx behaviour 2022-07-16 16:03:35 +12:00
John Gee
e20a854ee8
Add N_PRESERVE_COREPACK (#736) 2022-07-16 15:00:35 +12:00
Gordon Bleux
e1b57955d6
Make cache directory configurable (#717)
Read the cache directory from the environment, falling back to a location under `N_PREFIX`
2022-03-18 17:59:09 +13:00
John Gee
c32652f4a6
Add support for opt-in download to exec and run (#685)
* Rework argument parsing to allow options after exec and run

* Add option for run and exec to download missing version

* Reword download to cover wider functionality

* Be consistent with inner spacing of arrays

* Add download test for run and exec
2021-09-10 21:19:07 +12:00
John Gee
b9d924d898
engine and auto improvements (#675)
* engine and auto improvements

- move resolution code so ls-remote works
- write progress to stderr
- rework tests, as made up full semver no longer resolve

* Make engine and auto logging suppressable

* Extend --quiet help

* Improve --quiet help
2021-06-06 11:39:26 +12:00
John Gee
f1d0dd5a22
Rework activate to support more configurations (#657)
* Rework activate to be (much) more explicit. Add archlinux image. Remove need for rsync.

* Reword use case without npm
2021-03-12 19:41:44 +13:00
John Gee
4616e56b0a Update mount points and /mnt paths for new bats and relative paths 2021-02-27 12:07:14 +13:00
John Gee
6437bfb9d1 Add caveat about false positives 2021-02-27 11:45:11 +13:00
John Gee
e5a441a068 Upgrade bats. Use boost-assert for better failure messages. 2020-12-21 22:50:54 +13:00
John Gee
d7b9edd238 Eliminate last bogus uses of run in tests 2020-12-20 19:10:34 +13:00
John Gee
feddb99772 Remove anti-pattern use of run in more tests 2020-12-20 16:42:27 +13:00
John Gee
228dc1c4d7
WIP: Scan package.json last (#644)
* Scan for package.json after other files (as engine)

* Add engine to help, remove chakra from code.

* Rework auto tests with best practice BATS patterm. Simpler and ignores trace logging.

* Same-line local masking possible command  error

* Oops, remove denugging
2020-12-20 16:17:18 +13:00
John Gee
61a11c2394 Protect tests fron GREP_OPTIONS too 2020-12-20 10:17:31 +13:00
John Gee
6b82f30793
Detect download failure (#635)
* Detect download failure

* Add rsync to containers for --preserve tests
2020-11-25 21:12:07 +13:00
John Gee
25cf9f9672
Extend auto support to include .node-version, .nvmrc, and engines field of package.json (#628)
* Extend auto to include .node-version, .nvmrc, and engines

* Prepare for release
2020-07-25 21:59:32 +12:00
John Gee
449948926e
Add node support aliases (#619)
* Basic implementation of node support aliases

* Add documentation for node support aliases, drop all from first implementation

* Make wording more accurate

* Rename testing hook

* Modify markdown for keys

* Add node support alias for supported, add tests
2020-06-24 21:01:53 +12:00
John Gee
e1e9f706cd Change filename. Prepare for release. 2020-04-11 17:46:36 +12:00
John Gee
59adcab8b4
Add auto label to read version from .node-version (#616)
* Add support for auto, reading version from .node-version

* Make version unique in tests

* Add support for auto doing a lookup for unresolved version

* Make auto description more consistent in style with other labels.
2020-04-11 14:10:29 +12:00
John Gee
f0d22e4b01 Add N_PRESERVE_NPM to unset for tests 2020-02-27 21:38:47 +13:00
John Gee
8c30f120d1
Preserve npm (#611)
* First cut at --preserve (npm)

* Add documentation for --preserve

* Add --preserve test

* Extend help section to include --no-preserve

* Bump version

* Prepare CHANGELOG for release
2020-02-24 21:50:23 +13:00
John Gee
bff1bb01ce Fix some references to nvh 2019-08-12 08:23:28 +12:00
John Gee
82103e75a8 Update tests to include more than just installs 2019-08-04 16:33:45 +12:00
John Gee
b285b478ee Disable certificate checks with wget tests to allow mitm proxy 2019-08-04 12:57:51 +12:00
John Gee
3c12cb2e83 Update old n-test context 2019-08-04 12:44:17 +12:00
John Gee
ec91ea96fd Fix version lookup in tests after index.tab change 2019-07-20 12:38:35 +12:00
John Gee
af1f7fe75e Add test folder and tests 2019-05-04 19:45:53 +12:00