Commit 5e1e3bc5 5e1e3bc5b3413497c17943f037d8588ff5fea06b by Vincent Peybernes

!3 1.0.0

* fixes:
  Fix README
  #12 The angular module is not define when it use under Electron app
2 parents be823fdb 91ed5782
Pipeline #52 for 5e1e3bc5 passed in 3 minutes 41 seconds
## [1.0.0] - 2017-01-05
* Fix Angular export on Electron app
* Fix README
## [0.1.0] - 2016-12-10
* Fix browser import
......@@ -7,5 +11,6 @@
* Add readme and licence
* Add export management
[1.0.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...v1.0.0
[0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0
[0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc
\ No newline at end of file
......
......@@ -12,7 +12,7 @@ of each candidates.
The algorithm consist to search for each place a majority of votes for a candidate at this
placement or a greater placement.
You can refer to [this explain from boogiebythebay.org][1] for all the details.
You can refer to [this explain from boogiebythebay.org][1] for all details.
## Get RelativePlacementJS
```shell
......@@ -25,7 +25,7 @@ var RelativePlacement = require('relative-placement-js');
With browser:
```html
<script src="{BASE_PATH}/node_modules/relative-placement-js/dist/relative-placement.js"></script>
<script src="{BASE_PATH}/node_modules/relative-placement-js/dist/relative-placement-es2015.js"></script>
<!-- Or the original ES6 sources -->
<script src="{BASE_PATH}/node_modules/relative-placement-js/lib/relative-placement.js"></script>
```
......
......@@ -8,11 +8,12 @@
if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition();
//Browser export
if(typeof window != 'undefined'){
if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
if(typeof requirejs != 'undefined') return define(definition());
window.RelativePlacement = definition();
}
// Angular export
if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
})(function(){
/**
......
{
"name": "relative-placement-js",
"version": "0.1.0",
"version": "1.0.0",
"description": "JavaScript Relative Placement calculator for dance competitions.",
"author": {
"name": "Techniv",
......