##// END OF EJS Templates
node: updated packages
marcink -
r3175:d8dc5de4 default
parent child Browse files
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -1,65 +1,65 b''
1 1
2 2 ==============================
3 3 Generate the Nix expressions
4 4 ==============================
5 5
6 6 Details can be found in the repository of `RhodeCode Enterprise CE`_ inside of
7 7 the file `docs/contributing/dependencies.rst`.
8 8
9 9 Start the environment as follows:
10 10
11 11 .. code:: shell
12 12
13 13 nix-shell pkgs/shell-generate.nix
14 14
15 15
16 16
17 17 Python dependencies
18 18 ===================
19 19
20 20 .. code:: shell
21 21
22 22 pip2nix generate --licenses
23 23 # or
24 24 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
25 25
26 26
27 27 NodeJS dependencies
28 28 ===================
29 29
30 30 Generate node-packages.nix file with all dependencies from NPM and package.json file
31 31 This should be run before entering nix-shell.
32 32
33 The sed at the end fixex a bug with http rewrite of re-generated packages
33 The sed at the end fixes a bug with http rewrite of re-generated packages
34 34
35 35 .. code:: shell
36 36
37 37 rm -rf node_modules &&
38 38 nix-shell pkgs/shell-generate.nix --command "
39 39 node2nix --input package.json \
40 40 -o pkgs/node-packages.nix \
41 41 -e pkgs/node-env.nix \
42 42 -c pkgs/node-default.nix \
43 43 -d --flatten --nodejs-8 " &&
44 44 sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix
45 45
46 46
47 47 Bower dependencies
48 48 ==================
49 49
50 50 .. code:: shell
51 51
52 52 nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix"
53 53
54 54
55 55 Generate license data
56 56 =====================
57 57
58 58 .. code:: shell
59 59
60 60 nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json
61 61
62 62
63 63 .. Links
64 64
65 65 .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now