Skip to content

Commit db9b70c

Browse files
committed
Update gulp demo
Use latest stable release of JSROOT
1 parent 8425511 commit db9b70c

File tree

2 files changed

+18
-26
lines changed

2 files changed

+18
-26
lines changed

demo/gulp/bower.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
{
22
"name": "gulp-jsroot-example",
3-
"author": [
4-
"Sergey Linev"
5-
],
6-
"repository": {
7-
"type": "git",
8-
"url": "git://github.com/root-project/jsrootr.git"
9-
},
3+
"author": "Sergey Linev",
104
"description": "Example of building lib.js with gulp for JavaScript ROOT",
115
"main": "example.htm",
126
"dependencies": {
13-
"jsroot": "https://github.com/root-project/jsroot.git#dev"
7+
"jsroot": "^5.2.0"
148
},
159
"overrides": {
1610
"MathJax": {

demo/gulp/readme.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,48 @@
11
# Packaging of JSROOT code with gulp
22

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.
55
This uses bower, Node.js and gulp.
66
Following steps are required:
77

88

99
## Correctly provide JSROOT location in bower.json file
1010

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.
1312

1413
"dependencies": { "jsroot": "^5.2.0" }
15-
14+
1615
For experimental purposes one can configure local checkout of jsroot
1716

1817
"dependencies": { "jsroot": "file:///home/user/git/jsroot/.git#dev" }
1918

20-
21-
## Install jsroot package with bower
2219

23-
[shell] bower install jsroot
20+
## Install packages with bower
21+
22+
[shell] bower install
2423

2524

26-
## Install gulp and all dependend packages
27-
28-
All required packages contained in package.json file
25+
## Install gulp
2926

3027
[shell] npm install
3128

29+
All used sub-packages listed in package.json file
3230

33-
## Create library with gulp
3431

35-
Source code of gulp script one can find in gulpfile.js
32+
## Create library with gulp
3633

3734
[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"
4038

4139

4240
## Open example web page
4341

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>
4543

4644

4745
## Known issues
4846

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

Comments
 (0)