Commit Graph

76 Commits

Author SHA1 Message Date
Zoltan Kochan
94de1f8e84 refactor(tests): instead of random temp dir names, use date
It is easier to debug when the folders are sorted
2016-08-31 00:12:19 +03:00
Zoltan Kochan
1f37f18ab4 fix(install): local subdependencies are installed
PR #332
2016-08-30 21:36:13 +03:00
Zoltan Kochan
81e7dffed3 refactor(tests): show meaningful error message instead of timeout fail 2016-08-30 20:47:36 +03:00
Zoltan Kochan
875656fc4e test: retry fetch more 2016-08-28 16:53:56 +03:00
Zoltan Kochan
1f38086088 feat: support the npm fetch-* configs
Use the retry package to support all the different
retry strategy configurations that can be used with npm:

fetch-retries
fetch-retry-factor
fetch-retry-mintimeout
fetch-retry-maxtimeout

More info about the configs: https://docs.npmjs.com/misc/config#fetch-retries

close #317, PR #327
2016-08-27 21:37:00 +03:00
Andrey Popp
5205deeb6a test(install): test scoped package from local dir
Ref: #325, PR #326
2016-08-26 23:00:46 +03:00
Zoltan Kochan
31346e6c4a refactor: use global npm in shrinkwrap test
Remove the npm devDependency and use the global instance of npm
in the shrinkwrap test.
2016-08-23 23:11:00 +03:00
Zoltan Kochan
9bc97e76d4 style: use more ES6 syntax
Use lebab to transpile ES5 code to ES6.
Use eslint to fix styling issues afterwards.
Run all js in strict mode to allow let/const
in Node 4.
2016-08-23 21:12:01 +03:00
Zoltan Kochan
83b1e6a34b Implement pnpm link (#302)
close #235
2016-08-19 18:33:55 +03:00
Zoltan Kochan
9950c02ca4 Fix uninstall API function, test the API 2016-08-16 17:26:44 +03:00
Zoltan Kochan
46bcdac831 Add a public API
No breaking changes. An additional function exposed for package dependencies installation.

close #125
2016-08-16 14:54:56 +03:00
Zoltan Kochan
a45a3fbdd9 Support global install (#288)
close #283
2016-08-14 18:19:09 +03:00
Zoltan Kochan
5a9e972ed6 Make the locking tests more reliable, cover the CLI with tests 2016-08-11 00:50:55 +03:00
Zoltan Kochan
b9b1f0fa52 Test executables
Test if executables in .bin workd correctly. Refactor tests that are using local packages.
2016-08-09 23:45:18 +03:00
Zoltan Kochan
5e34ee61e5 Covering preserved symlinks with tests
Test only on NodeJS >= 6.3.0

Fix preserved symlinkg on Windows
2016-08-09 19:45:35 +03:00
Zoltan Kochan
a9afddacfd Read package.json before updating (#284)
* Read package.json before updating

Using the cached version of package.json can cause ovewriting of changes

close #280

* Skip GitHub test on CI

The GitHub test fails frequently with 403 error with no good no reason
2016-08-09 20:33:39 +03:00
Zoltan Kochan
8675c7f641 Remove bin files when uninstalling package 2016-08-07 14:31:33 +03:00
Zoltan Kochan
0c247a1f4c Lock store when running commands
close #82
2016-08-07 14:31:33 +03:00
Zoltan Kochan
0b1264a372 Uninstall support
close #144
2016-08-07 14:31:33 +03:00
Zoltan Kochan
f5d740fcaf Add test for installing from github 2016-08-07 14:26:28 +03:00
Zoltan Kochan
a750d3f78f Fix postinstall script execution, cover with unit test 2016-08-07 14:26:11 +03:00
Zoltan Kochan
37a91b8aa0 Add coverage info 2016-08-07 14:25:34 +03:00
Zoltan Kochan
21fc05273c Add packages used for testing to the test/ folder 2016-08-07 14:24:46 +03:00
Zoltan Kochan
a457b15472 Fix tests for Node>=v6.3.0
On the newest Node versions executables are proxied instead of symlinked.
2016-08-01 01:48:25 +03:00
Zoltan Kochan
d09d106af4 Add Windows CI via AppVeyor
close #258
2016-07-23 04:07:05 +08:00
Zoltan Kochan
32ef49b76b Support installing from files
close #21
2016-07-17 13:53:44 +03:00
Zoltan Kochan
19c3c4338f Support optional dependencies
close #39
2016-07-16 21:36:06 +03:00
Zoltan Kochan
7e4a13e021 Fix issue with installing nested scoped packages
close #219
2016-07-06 23:19:08 +03:00
Rico Sta. Cruz
a8d87a5454 Fix lint errors 2016-06-19 00:29:32 +08:00
Meesayen
984da385fe refactor(install): Less obstrusive bypass of 'sepia' caching in the test suite 2016-02-23 22:00:18 +00:00
Meesayen
f3afd3cde8 feat(install): Enabled proxy tunnelling on HTTP/HTTPS requests
By simply using 'caw' module to create the HTTP agent with proxy settings
we are able to use 'pnpm' behind a basic corporate proxy (could not test
it extensively on any kind of proxy).
I had to disable 'sepia' caching in case a proxy configuration is found
because it was not behaving fine with the new HTTP agent setup.
2016-02-23 11:15:33 +00:00
Vladimir Starkov
c553a0faab remove .only for sorted deps tests 2016-02-11 10:54:13 +01:00
Vladimir Starkov
6028f66fbc add failing test for sorted deps 2016-02-10 20:56:31 +01:00
Robbie Marcelo
8a57f18ffc Removes .only so other test cases won't be ignored 2016-02-04 20:29:39 +08:00
Rico Sta. Cruz
a9e74e6fab Allow installing new versions (#51) 2016-02-03 07:46:11 +08:00
Rico Sta. Cruz
1cbb909951 Fix test for 0.10 2016-02-02 03:00:26 +08:00
Rico Sta. Cruz
2e2ed2647b Add source maps to babel version 2016-02-02 02:27:13 +08:00
Rico Sta. Cruz
06283bbcb6 Fix tests to be legacy-compatible 2016-02-02 02:24:03 +08:00
Rico Sta. Cruz
177210cbc8 Run babel before publishing 2016-02-02 02:23:17 +08:00
Rico Sta. Cruz
2d7050fab4 Expose require('pnpm.js') 2016-02-02 01:23:38 +08:00
Rico Sta. Cruz
c27cefcc73 Change installCmd()'s function signature 2016-02-02 01:23:22 +08:00
Rico Sta. Cruz
0456ef7745 Restore other tests 2016-02-02 00:18:26 +08:00
DaveJ
e5d0f7e8e6 Add support for --production flag 2016-02-01 14:39:17 +00:00
Rico Sta. Cruz
0715d27f7c Add docs 2016-02-01 18:15:24 +08:00
Rico Sta. Cruz
a0a698a104 Implement flattening 2016-02-01 01:53:15 +08:00
Rico Sta. Cruz
d333be88ee Refcator bin/pnpm-install 2016-02-01 01:32:37 +08:00
Rico Sta. Cruz
0f63df01a3 Remove extra blank line 2016-02-01 01:02:57 +08:00
DaveJ
e816ff7341 Add overwritten tests back in 2016-01-31 16:59:04 +00:00
DaveJ
d4eb42a93f Match npm --save behaviour more closely and add support for --save-exact 2016-01-31 16:20:23 +00:00
DaveJ
2b3262c47f Support for the --save and --save-dev flags (including scoped) 2016-01-31 16:17:15 +00:00