Skip to content

Commit

Permalink
feat(build): customizable output filename
Browse files Browse the repository at this point in the history
Support a custom filename instead of hardcoded "semantic" (which is still default).
This also prepares for a later change for the default from "semantic" to "fomantic" and a quicker fallback
  • Loading branch information
lubber-de authored Dec 26, 2024
1 parent e61f418 commit 1ecfaf3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion semantic.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"clean" : "dist/"
},

"fileName" : "semantic",
"permission" : false,
"autoInstall": false,
"rtl": false
Expand Down
2 changes: 2 additions & 0 deletions tasks/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,6 @@ module.exports = {
ignoredRTL: '!(*.min|*.map)',
},

fileName: 'semantic',

};
12 changes: 6 additions & 6 deletions tasks/config/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ module.exports = {
},

filenames: {
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',
concatenatedCSS: config.fileName + release.versionInFileName + '.css',
concatenatedJS: config.fileName + release.versionInFileName + '.js',
concatenatedMinifiedCSS: config.fileName + release.versionInFileName + '.min.css',
concatenatedMinifiedJS: config.fileName + release.versionInFileName + '.min.js',
concatenatedRTLCSS: config.fileName + release.versionInFileName + '.rtl.css',
concatenatedMinifiedRTLCSS: config.fileName + release.versionInFileName + '.rtl.min.css',
},

regExp: {
Expand Down

0 comments on commit 1ecfaf3

Please sign in to comment.