Pweaver (Paul Weaver)
48815204e4
Changes node_modules to default to the same args for generate_sha1sum.
...
Since we can use both perfer_offline=True and False in a since build
prefer_offline shouldn't be used as a cache key or it will confuse the
cleanup script. Since yarn install (if successful) should be idempotent.
This will probably be ok.
2017-08-05 12:29:16 -07:00
Pweaver (Paul Weaver)
1afaa67c7c
deps: Change npm to yarn for reliablity, security, and speed.
2017-08-05 12:29:06 -07:00
Tim Abbott
b7211733e2
node_cache: Rename npm_cache to target_path.
...
This is cleaner and part of renaming these variables to refer to the
node_modules_cache.
2017-07-21 17:28:20 -07:00
Tim Abbott
e1e5e15797
node_cache: Move npm_args inside the interface.
2017-07-21 17:28:20 -07:00
Tim Abbott
b1944b5e1f
node_cache: Fix buggy type annotations for copy_modules.
2017-07-21 17:28:20 -07:00
Tim Abbott
8523c24a17
node_modules: Move success stamp to root of cache dir.
...
This location makes more sense, since it's the entire directory we're
certifying, not just the `node_modules` subdirectory.
2017-07-21 17:28:20 -07:00
Tim Abbott
59abefa616
node_cache: Extract cached_node_modules variable.
2017-07-21 17:28:20 -07:00
Tim Abbott
5d05cc7294
scripts: Rename NPM_CACHE_PATH to NODE_MODULES_CACHE_PATH.
2017-07-21 17:28:20 -07:00
neiljp (Neil Pilgrim)
8433d95d99
mypy: Make success_stamp parameter to do_npm_install be required.
2017-07-08 10:49:42 -07:00
Aditya Bansal
e4af0caddb
node_cache.py: Refactor to seperate out sha1sum generation.
...
Basically we just seperate out the sha1sum generation for the
node modules so that it can be reused later for cache clearance
logic. This is achieved by adding a function which returns the
sha1sum based HEX digest.
2017-06-19 07:55:23 -04:00
Tim Abbott
95a49f6ea2
node_cache: Fix buggy production deployment code.
...
The previous version of the production deployment code for release
tarballs did not correctly install the node_modules directory.
2016-12-08 10:34:04 -08:00
Tim Abbott
8e82257444
Fix node_cache code to not require root.
...
The previous code caused problems using a system where the zulip user
doesn't have sudo rights.
2016-10-25 17:52:19 -07:00
Tim Abbott
41b0079ab2
node_cache: Fix success_stamp logic.
...
Previously, success_stamp was touched whenever we used a particular
node_modules version; it makes more sense to only touch it when the
node_modules directory has actually changed.
2016-10-25 17:52:17 -07:00
Tim Abbott
7c16172f9e
node_cache: Fix buggy annotations for stdout/stderr.
2016-10-15 22:53:28 -07:00
Tim Abbott
9c0c6c0c23
node_cache: Don't make node_modules symlinks as root.
2016-09-28 00:36:40 -07:00
Umair Khan
ec74974de3
Create node_cache module for npm caching.
2016-09-16 12:40:48 -07:00