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 ## [1.0.0] - 2017-01-05
2 * Fix Angular export on Electron app
3 * Fix README
4
1 ## [0.1.0] - 2016-12-10 5 ## [0.1.0] - 2016-12-10
2 * Fix browser import 6 * Fix browser import
3 7
...@@ -7,5 +11,6 @@ ...@@ -7,5 +11,6 @@
7 * Add readme and licence 11 * Add readme and licence
8 * Add export management 12 * Add export management
9 13
14 [1.0.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...v1.0.0
10 [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0 15 [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0
11 [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc 16 [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -12,7 +12,7 @@ of each candidates. ...@@ -12,7 +12,7 @@ of each candidates.
12 The algorithm consist to search for each place a majority of votes for a candidate at this 12 The algorithm consist to search for each place a majority of votes for a candidate at this
13 placement or a greater placement. 13 placement or a greater placement.
14 14
15 You can refer to [this explain from boogiebythebay.org][1] for all the details. 15 You can refer to [this explain from boogiebythebay.org][1] for all details.
16 16
17 ## Get RelativePlacementJS 17 ## Get RelativePlacementJS
18 ```shell 18 ```shell
...@@ -25,7 +25,7 @@ var RelativePlacement = require('relative-placement-js'); ...@@ -25,7 +25,7 @@ var RelativePlacement = require('relative-placement-js');
25 25
26 With browser: 26 With browser:
27 ```html 27 ```html
28 <script src="{BASE_PATH}/node_modules/relative-placement-js/dist/relative-placement.js"></script> 28 <script src="{BASE_PATH}/node_modules/relative-placement-js/dist/relative-placement-es2015.js"></script>
29 <!-- Or the original ES6 sources --> 29 <!-- Or the original ES6 sources -->
30 <script src="{BASE_PATH}/node_modules/relative-placement-js/lib/relative-placement.js"></script> 30 <script src="{BASE_PATH}/node_modules/relative-placement-js/lib/relative-placement.js"></script>
31 ``` 31 ```
......
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
8 if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition(); 8 if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition();
9 //Browser export 9 //Browser export
10 if(typeof window != 'undefined'){ 10 if(typeof window != 'undefined'){
11 if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
12 if(typeof requirejs != 'undefined') return define(definition()); 11 if(typeof requirejs != 'undefined') return define(definition());
13 12
14 window.RelativePlacement = definition(); 13 window.RelativePlacement = definition();
15 } 14 }
15 // Angular export
16 if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
16 })(function(){ 17 })(function(){
17 18
18 /** 19 /**
......
1 { 1 {
2 "name": "relative-placement-js", 2 "name": "relative-placement-js",
3 "version": "0.1.0", 3 "version": "1.0.0",
4 "description": "JavaScript Relative Placement calculator for dance competitions.", 4 "description": "JavaScript Relative Placement calculator for dance competitions.",
5 "author": { 5 "author": {
6 "name": "Techniv", 6 "name": "Techniv",
......