Skip to content

Commit

Permalink
include version in build files
Browse files Browse the repository at this point in the history
  • Loading branch information
auduno committed Sep 11, 2017
1 parent 512b882 commit 0c70220
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion build/clmtrackr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14290,6 +14290,8 @@ var canRenderToFloatTexture = function(webGLContext) {
return renderingSupported
};

var version = "1.1.2";

/**
* clmtrackr library (https://www.github.com/auduno/clmtrackr/)
*
Expand Down Expand Up @@ -15309,7 +15311,8 @@ var clm = {
}

return true;
}
},
version : version
};

return clm;
Expand Down
2 changes: 1 addition & 1 deletion build/clmtrackr.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion build/clmtrackr.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -14284,6 +14284,8 @@ var canRenderToFloatTexture = function(webGLContext) {
return renderingSupported
};

var version = "1.1.2";

/**
* clmtrackr library (https://www.github.com/auduno/clmtrackr/)
*
Expand Down Expand Up @@ -15303,7 +15305,8 @@ var clm = {
}

return true;
}
},
version : version
};

export default clm;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clmtrackr",
"version": "1.1.1",
"version": "1.1.2",
"description": "Javascript library for precise tracking of facial features via Constrained Local Models",
"main": "build/clmtrackr.js",
"module": "build/clmtrackr.module.js",
Expand All @@ -26,6 +26,7 @@
"rollup": "^0.41.6",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-json": "^2.3.0",
"uglify-es": "^3.0.17"
},
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';

export default {
entry: 'src/clm.js',
Expand All @@ -19,6 +20,7 @@ export default {
module: true,
main: true
}),
commonjs()
commonjs(),
json()
]
};
5 changes: 4 additions & 1 deletion src/clm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import mosseFilterResponses from './mossefilter/mosseFilterResponses.js';
import pModel from '../models/model_pca_20_svm.js';
import canRenderToFloatTexture from './utils/webgl_tests.js';

import { version } from '../package.json';

//import { drawPatches } from './utils.debugging.js';

var DEFAULT_MODEL = pModel;
Expand Down Expand Up @@ -1029,7 +1031,8 @@ var clm = {
}

return true;
}
},
version : version
}

export default clm;

0 comments on commit 0c70220

Please sign in to comment.