webpack-auto-inject-version/src/config.js

28 lines
666 B
JavaScript
Raw Normal View History

2017-04-11 09:11:09 +10:00
export default {
SHORT: 'AIV_SHORT',
SILENT: false,
2017-04-11 09:11:09 +10:00
PACKAGE_JSON_PATH: './package.json',
components: {
AutoIncreaseVersion: true,
InjectAsComment: true,
InjectByTag: true,
2017-04-11 09:11:09 +10:00
},
componentsOptions: {
AutoIncreaseVersion: {
runInWatchMode: false,
},
2017-04-13 08:40:22 +10:00
InjectAsComment: {
tag: 'Build version: {version} - {date}',
dateFormat: 'dddd, mmmm dS, yyyy, h:MM:ss TT',
2017-04-13 08:40:22 +10:00
},
2017-04-11 09:11:09 +10:00
InjectByTag: {
fileRegex: /\.+/,
AIVTagRegexp: /(\[AIV])(([a-zA-Z{} ,:;!()_@\-"'\\\/])+)(\[\/AIV])/g,
dateFormat: 'dddd, mmmm dS, yyyy, h:MM:ss TT',
},
2017-04-11 09:11:09 +10:00
},
LOGS_TEXT: {
AIS_START: 'Auto inject version started',
},
2017-04-11 09:11:09 +10:00
};