|
1 | 1 | # Packaging of JSROOT code with gulp |
2 | 2 |
|
3 | | -This example shows how all JSROOT sources can be |
4 | | -merged togther with all dependend libraries. |
| 3 | +This example shows how all JSROOT sources can be |
| 4 | +merged togther with all dependend libraries. |
5 | 5 | This uses bower, Node.js and gulp. |
6 | 6 | Following steps are required: |
7 | 7 |
|
8 | 8 |
|
9 | 9 | ## Correctly provide JSROOT location in bower.json file |
10 | 10 |
|
11 | | -In the example dev version is used. |
12 | | -One also can specify stable release after "5.2.0" like: |
| 11 | +In the example 5.2.0 version of JSROOT is used. |
13 | 12 |
|
14 | 13 | "dependencies": { "jsroot": "^5.2.0" } |
15 | | - |
| 14 | + |
16 | 15 | For experimental purposes one can configure local checkout of jsroot |
17 | 16 |
|
18 | 17 | "dependencies": { "jsroot": "file:///home/user/git/jsroot/.git#dev" } |
19 | 18 |
|
20 | | - |
21 | | -## Install jsroot package with bower |
22 | 19 |
|
23 | | - [shell] bower install jsroot |
| 20 | +## Install packages with bower |
| 21 | + |
| 22 | + [shell] bower install |
24 | 23 |
|
25 | 24 |
|
26 | | -## Install gulp and all dependend packages |
27 | | - |
28 | | - All required packages contained in package.json file |
| 25 | +## Install gulp |
29 | 26 |
|
30 | 27 | [shell] npm install |
31 | 28 |
|
| 29 | +All used sub-packages listed in package.json file |
32 | 30 |
|
33 | | -## Create library with gulp |
34 | 31 |
|
35 | | - Source code of gulp script one can find in gulpfile.js |
| 32 | +## Create library with gulp |
36 | 33 |
|
37 | 34 | [shell] node node_modules/gulp/bin/gulp.js |
38 | | - |
39 | | -Script should produce "build/js/lib.js" and "build/css/lib.css" |
| 35 | + |
| 36 | +Source code of gulp script one can find in gulpfile.js |
| 37 | +Script should produce "build/js/lib.js" and "build/css/lib.css" |
40 | 38 |
|
41 | 39 |
|
42 | 40 | ## Open example web page |
43 | 41 |
|
44 | | -One can browser directly from the file system <file:///home/user/git/jsroot/demo/gulp/exampole.htm> |
| 42 | +One can browser directly from the file system <file:///home/user/git/jsroot/demo/gulp/example.htm> |
45 | 43 |
|
46 | 44 |
|
47 | 45 | ## Known issues |
48 | 46 |
|
49 | | -MathJax.js is not always working - LaTeX can be browken. |
50 | | -It is not fully clear how to load MathJax with such scheme. |
| 47 | +MathJax.js excluded from common library. |
| 48 | +It will be loaded only when required from default location. |
0 commit comments