Skip to content

Commit 0c70220

Browse files
committed
include version in build files
1 parent 512b882 commit 0c70220

6 files changed

Lines changed: 18 additions & 6 deletions

File tree

build/clmtrackr.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14290,6 +14290,8 @@ var canRenderToFloatTexture = function(webGLContext) {
1429014290
return renderingSupported
1429114291
};
1429214292

14293+
var version = "1.1.2";
14294+
1429314295
/**
1429414296
* clmtrackr library (https://www.github.com/auduno/clmtrackr/)
1429514297
*
@@ -15309,7 +15311,8 @@ var clm = {
1530915311
}
1531015312

1531115313
return true;
15312-
}
15314+
},
15315+
version : version
1531315316
};
1531415317

1531515318
return clm;

build/clmtrackr.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/clmtrackr.module.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14284,6 +14284,8 @@ var canRenderToFloatTexture = function(webGLContext) {
1428414284
return renderingSupported
1428514285
};
1428614286

14287+
var version = "1.1.2";
14288+
1428714289
/**
1428814290
* clmtrackr library (https://www.github.com/auduno/clmtrackr/)
1428914291
*
@@ -15303,7 +15305,8 @@ var clm = {
1530315305
}
1530415306

1530515307
return true;
15306-
}
15308+
},
15309+
version : version
1530715310
};
1530815311

1530915312
export default clm;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clmtrackr",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Javascript library for precise tracking of facial features via Constrained Local Models",
55
"main": "build/clmtrackr.js",
66
"module": "build/clmtrackr.module.js",
@@ -26,6 +26,7 @@
2626
"rollup": "^0.41.6",
2727
"rollup-plugin-node-resolve": "^3.0.0",
2828
"rollup-plugin-commonjs": "^8.0.2",
29+
"rollup-plugin-json": "^2.3.0",
2930
"uglify-es": "^3.0.17"
3031
},
3132
"dependencies": {

rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import resolve from 'rollup-plugin-node-resolve';
22
import commonjs from 'rollup-plugin-commonjs';
3+
import json from 'rollup-plugin-json';
34

45
export default {
56
entry: 'src/clm.js',
@@ -19,6 +20,7 @@ export default {
1920
module: true,
2021
main: true
2122
}),
22-
commonjs()
23+
commonjs(),
24+
json()
2325
]
2426
};

src/clm.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import mosseFilterResponses from './mossefilter/mosseFilterResponses.js';
2222
import pModel from '../models/model_pca_20_svm.js';
2323
import canRenderToFloatTexture from './utils/webgl_tests.js';
2424

25+
import { version } from '../package.json';
26+
2527
//import { drawPatches } from './utils.debugging.js';
2628

2729
var DEFAULT_MODEL = pModel;
@@ -1029,7 +1031,8 @@ var clm = {
10291031
}
10301032

10311033
return true;
1032-
}
1034+
},
1035+
version : version
10331036
}
10341037

10351038
export default clm;

0 commit comments

Comments
 (0)