mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 13:16:36 +00:00
Remove lodash dependency in versionist.conf.js
Changelog-entry: Removed lodash dependency in versionist.conf.js Change-type: patch Signed-off-by: Giovanni Garufi <giovanni@balena.io>
This commit is contained in:
parent
d70b189cec
commit
90c8483df8
2
Makefile
2
Makefile
@ -155,7 +155,7 @@ sass:
|
|||||||
node-sass lib/gui/app/scss/main.scss > lib/gui/css/main.css
|
node-sass lib/gui/app/scss/main.scss > lib/gui/css/main.css
|
||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
eslint --ignore-pattern scripts/resin/**/*.js lib tests scripts bin versionist.conf.js webpack.config.js
|
eslint --ignore-pattern scripts/resin/**/*.js lib tests scripts bin webpack.config.js
|
||||||
|
|
||||||
lint-sass:
|
lint-sass:
|
||||||
sass-lint lib/gui/scss
|
sass-lint lib/gui/scss
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const _ = require('lodash')
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
subjectParser: 'angular',
|
subjectParser: 'angular',
|
||||||
@ -42,24 +40,20 @@ module.exports = {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
return commit.footer['Change-type'] &&
|
return commit.footer['Change-type'] &&
|
||||||
_.toLower(commit.footer['Change-type'])
|
commit.footer['Change-type'].toLowerCase()
|
||||||
},
|
},
|
||||||
|
|
||||||
transformTemplateData: (data) => {
|
transformTemplateData: (data) => {
|
||||||
data.features = _.filter(data.commits, {
|
data.features = data.commits.filter((commit) => {
|
||||||
subject: {
|
return commit.subject.type === 'feat'
|
||||||
type: 'feat'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
data.fixes = _.filter(data.commits, {
|
data.fixes = data.commits.filter((commit) => {
|
||||||
subject: {
|
return commit.subject.type === 'fix'
|
||||||
type: 'fix'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
data.misc = _.filter(data.commits, (commit) => {
|
data.misc = data.commits.filter((commit) => {
|
||||||
return !_.includes([ 'fix', 'feat' ], commit.subject.type)
|
return !([ 'fix', 'feat' ].includes(commit.subject.type))
|
||||||
})
|
})
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user