Browse Source

Fixes poorly written config code #2920 #2875

pull/2979/head
Jack Lukic 9 years ago
parent
commit
4f01c14faa
2 changed files with 13 additions and 9 deletions
  1. 1
      RELEASE-NOTES.md
  2. 21
      tasks/config/project/release.js

1
RELEASE-NOTES.md

@ -52,6 +52,7 @@
**[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)**
- **Accordion** - Added missing notation for accordion docs #2812
- **Build Tools** - Fixes issue where component glob `{tab, table}` caused table to be included twice in concatenated source **
- **Build Tools** - Fixed bug where `gulp version` would show `x.x` #2875 #2920
- **Button** - Fixes inverted button missing an `active` and `active focus` state #2635
- **Button** - Fixes issue where `basic button` would not have focus color text when colored #2264
- **Checkbox** - Clicking a link inside an initialized checkbox `label` will now work correctly, and will not toggle the checkbox. #2804

21
tasks/config/project/release.js

@ -15,18 +15,14 @@ var
*******************************/
try {
config = requireDotFile('semantic.json');
packageJSON = require('../../../package.json');
}
catch(error) {}
// looks for version in config or package.json (whichever is available)
version = (config && config.version !== undefined)
? config.version
: packageJSON.version
;
try {
packageJSON = require('../../../package.json');
}
catch(error) {
// generate fake package
packageJSON = {
@ -34,6 +30,13 @@ catch(error) {
};
}
// looks for version in config or package.json (whichever is available)
version = (config && config.version !== undefined)
? config.version
: packageJSON.version
;
/*******************************
Export
*******************************/
@ -56,6 +59,6 @@ module.exports = {
+ ' *' + '\n'
+ ' */' + '\n',
version : packageJSON.version
version : version
};
Loading…
Cancel
Save