Commit Graph

33 Commits

Author SHA1 Message Date
Zoltan Kochan
b9104a457c feat(global): change default global path
Use ~/.pnpm-cache as the default cache path.
Use the Node path for hosting the global pnpm package.
2017-01-21 18:38:47 +02:00
zkochan
a7d508782c refactor: move reporters to separate packages 2017-01-16 20:49:18 +02:00
zkochan
383e772921 test: use verdaccio instead of sinopia
Unfortunately sinopia is not maintained anymore.
2017-01-15 18:43:18 +02:00
zkochan
1c00eb025e refactor: use is-windows package
For detecting Windows OS, use the is-windows package.
2017-01-09 18:08:15 +02:00
zkochan
5810c446ba test: fix CLI tests 2017-01-08 20:48:28 +02:00
zkochan
832252192d test: move the testing folder out of the project
When the testing folder is inside the project folder, the lookup
includes the node_modules folder inside the project.
2017-01-08 19:46:10 +02:00
Zoltan Kochan
38837b131c Pure store (#524)
* feat: drop Node.js <= 6.3 support

BREAKING CHANGE:

drop support of Node.js pre-6.3

* refactor: remove the redundant subfolder in store

* refactor: rename linkPeers

* refactor: remove not used code

* feat: link each file separately

* refactor: change store structure

* refactor: resolve github dependencies to commits

* chore(package.json): pass --preserve-symlinks to ts-node

* test: temporarily skip failing tests

* refactor(git): use more human-friendly Git IDs

* refactor: resolve

* refactor: divide resolution and fetching

* refactor(fetch): better variable naming

* feat: add shrinkwrap.yaml

* test(shrinkwrap): shrinkwrap locks dependencies

* style: fix typing issue

* fix(fetch): properly link node_modules on repeat install

* refactor: comment skipped test with single-line comments

* fix: circular symlinks are avoided

* refactor(fetch): remove redundant type properties

* test: additional check for circular symlinks

* feat: saving dependency graph in node_modules instead of in store

BREAKING CHANGE:

Dependency graph moved out from store

* feat: add store.yaml with info about dependent projects

* refactor: remove name from FetchedPackage

* refactor: change the location of packages from npm in store

BREAKING CHANGE:

Structure of store changed

* refactor: change global store path

BREAKING CHANGE:

Move the store path out of ~/.pnpm

* refactor: remove justFetched from FetchedPackage

* refactor(install): use functional programming to filter deps

* refactor(install): remove redundant node_modules creation

* fix(install): installation of concurent circular dependencies

* feat: copy not link some packages

Packages that have install lifecycle events are copied not linked.

* fix(store.yaml): don't duplicate records

* perf: resolve a package only once per project

* test: concurrent installation of the same dependency

* fix: packages are not removed in the middle of fetch

* fix: dependencies are linked only once

* fix: make linking work on Windows

* fix: installing local dependencies on Windows

* fix: don't reinstall dependencies of the same package

* fix(bin): the run function always returns a Promise

* fix: use hard links to link files to the .resolutions folder

* fix: peers are linked into the correct location

* fix: bundled dependencies are not reinstalled

* refactor: remove unsymlink

It is not used anymore

* chore(CI): test on Node.js v4 as well

* refactor: use UPPER_CASE for constants

* chore(package): return support of Node.js v4

* fix: make pnpm Node.js 4 compatible again

* test: don't run tsnode with --preserve-symlinks

--preserve-symlinks makes tests fail on Node.js 4

* fix(bin): don't use --preserve-symlinks on Node pre-6.3

* test: use global stores in tests

* fix: flat-tree installation should not work on Node 4

* fix: show warning

When trying to install into a node_modules created by older pnpm

* refactor: change the global store location

From `~/.store` to `~/.pnpm-store`

* docs: note that some of the info is out of date

* test: fix typing error

* test: fix frequently failing test
2017-01-08 15:47:50 +02:00
zkochan
a19922f66b refactor(tests): move out some shared logic 2016-12-21 22:58:53 +02:00
zkochan
d6fc5af71e test: log the testing package folder names 2016-12-18 01:36:11 +02:00
Zoltan Kochan
e1cea455f5 chore: update typescript 2016-11-20 10:40:18 -08:00
zkochan
ed9ffc9e42 test: fix tests on Node.js v4 2016-10-31 23:08:52 +02:00
zkochan
a840c662e4 feat(update): implement
Close #300
2016-10-31 19:50:55 +02:00
zkochan
3c76e2a403 fix(lifecycle): npm scripts can find bin files of dependencies 2016-10-15 19:47:54 +03:00
zkochan
e9ab2e07e0 test(cache): fix 2016-10-15 19:10:09 +03:00
zkochan
237cceabbf test: use a default set of options 2016-10-15 14:49:13 +03:00
zkochan
a2a2bb5549 refactor: move out the dist update logic from tests 2016-10-15 12:21:29 +03:00
zkochan
b621d45a00 test: use a local sinopia server for e2e testing
Close #56
2016-10-10 16:15:27 +03:00
zkochan
69828070a0 refactor: use exists-file and exists-link 2016-10-09 17:35:26 +03:00
Zoltan Kochan
aa71a3e01b refactor(tests): quiet by default and use API for testing 2016-09-29 12:33:18 +03:00
Zoltan Kochan
5d1b4fb203 test: use the official registry for e2e tests 2016-09-28 20:30:24 +03:00
zkochan
0dfe73fd48 refactor(tests): use async exists checks
PR #372
2016-09-27 00:02:10 +03:00
zkochan
c27b8ddf48 feat: prune
Close #299
2016-09-27 00:02:10 +03:00
zkochan
138440ce1f refactor(tests): divide tests into several files 2016-09-25 17:22:53 +03:00
Zoltan Kochan
554e8ccb6e refactor(tests): rewrite tests to TypeScript 2016-09-14 21:37:47 +03:00
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
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
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
5a9e972ed6 Make the locking tests more reliable, cover the CLI with tests 2016-08-11 00:50:55 +03:00
Zoltan Kochan
d09d106af4 Add Windows CI via AppVeyor
close #258
2016-07-23 04:07:05 +08:00
DaveJ
e5d0f7e8e6 Add support for --production flag 2016-02-01 14:39:17 +00:00
Rico Sta. Cruz
5fdb394e99 Remove whitespace 2016-01-30 02:30:44 +08:00
Rico Sta. Cruz
7c22efbf84 Add tests 2016-01-28 13:59:21 +08:00