diff --git a/.all-contributorsrc b/.all-contributorsrc
index f1989fb7b2..bca46e8b05 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -676,6 +676,15 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "dreaming-augustin",
+ "name": "dreaming-augustin",
+ "avatar_url": "https://avatars.githubusercontent.com/u/1203641?v=4",
+ "profile": "https://github.com/dreaming-augustin",
+ "contributions": [
+ "code"
+ ]
}
],
"contributorsPerLine": 4,
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 0f630bf4eb..07198d9c42 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -109,6 +109,9 @@ This is a list of all project contributors powered by [All Contributors](https:/
Alvaro 💻 |
Festim Nuredini 💻 |
+
+ dreaming-augustin 💻 |
+
diff --git a/tasks/config/project/release.js b/tasks/config/project/release.js
index 8981ffd229..5f6fe52cb0 100644
--- a/tasks/config/project/release.js
+++ b/tasks/config/project/release.js
@@ -7,7 +7,10 @@ const requireDotFile = require('require-dot-file');
let
config,
npmPackage,
- version
+ version,
+ revision,
+ versionInFileName,
+ includeVersionInFileName
;
/*******************************
@@ -31,6 +34,20 @@ version = npmPackage && npmPackage.version !== undefined && npmPackage.name ===
? npmPackage.version
: config.version;
+// looks for revision in config.
+revision = config.revision === undefined ? '' : config.revision;
+
+includeVersionInFileName = config.includeVersionInFileName === undefined ? false : config.includeVersionInFileName;
+
+versionInFileName = '';
+
+if (includeVersionInFileName) {
+ versionInFileName = '-' + version;
+ if (revision !== '') {
+ versionInFileName += '-' + revision;
+ }
+}
+
/*******************************
Export
*******************************/
@@ -54,5 +71,6 @@ module.exports = {
+ ' */\n',
version: version,
+ versionInFileName: versionInFileName,
};
diff --git a/tasks/config/tasks.js b/tasks/config/tasks.js
index 561b7d197e..050db04101 100644
--- a/tasks/config/tasks.js
+++ b/tasks/config/tasks.js
@@ -40,12 +40,12 @@ module.exports = {
},
filenames: {
- concatenatedCSS: 'semantic.css',
- concatenatedJS: 'semantic.js',
- concatenatedMinifiedCSS: 'semantic.min.css',
- concatenatedMinifiedJS: 'semantic.min.js',
- concatenatedRTLCSS: 'semantic.rtl.css',
- concatenatedMinifiedRTLCSS: 'semantic.rtl.min.css',
+ concatenatedCSS: 'semantic' + release.versionInFileName + '.css',
+ concatenatedJS: 'semantic' + release.versionInFileName + '.js',
+ concatenatedMinifiedCSS: 'semantic' + release.versionInFileName + '.min.css',
+ concatenatedMinifiedJS: 'semantic' + release.versionInFileName + '.min.js',
+ concatenatedRTLCSS: 'semantic' + release.versionInFileName + '.rtl.css',
+ concatenatedMinifiedRTLCSS: 'semantic' + release.versionInFileName + '.rtl.min.css',
},
regExp: {