Skip to content

Commit

Permalink
chore: more node-red-plus defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
biancode committed Jul 29, 2022
1 parent 4b0d2d1 commit afa6b46
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 11 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## [0.2.5](https://github.com/BiancoRoyal/node-red-contrib-bacnet/compare/v0.2.2...v0.2.5) (2022-07-29)
## [0.2.5](https://github.com/BiancoRoyal/node-red-contrib-bacnet/compare/v0.2.4...v0.2.5) (2022-07-29)


### Bug Fixes

* upgrade debug from 4.3.1 to 4.3.4 ([8b510c5](https://github.com/BiancoRoyal/node-red-contrib-bacnet/commit/8b510c5b7b3cf53add8d4c11c7228b6cc03b0de5))
* upgrade underscore from 1.11.0 to 1.13.4 ([74a057d](https://github.com/BiancoRoyal/node-red-contrib-bacnet/commit/74a057d0e5f77dbd046c3b0ba228ca6cff2a0010))


### Features
Expand Down
35 changes: 28 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/**
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
All rights reserved.
node-red-contrib-bacnet - The BSD 3-Clause License
/*
The MIT License
**/
Copyright (c) 2017-2022 Klaus Landsdorf (http://node-red.plus/)
All rights reserved.
node-red-contrib-bacnet
*/

'use strict'

Expand All @@ -16,6 +17,7 @@ const babel = require('gulp-babel')
const sourcemaps = require('gulp-sourcemaps')
const pump = require('pump')
const replace = require('gulp-replace')
const changelog = require('gulp-conventional-changelog')

function releaseIcons () {
return src('src/icons/**/*').pipe(dest('bacnet/icons'))
Expand All @@ -42,6 +44,24 @@ function cleanProject () {
.pipe(clean({ force: true }))
}

function changelogUpdate () {
return src('CHANGELOG.md')
.pipe(changelog({
// conventional-changelog options go here
preset: 'angular',
releaseCount: 0
}, {
// context goes here
}, {
// git-raw-commits options go here
}, {
// conventional-commits-parser options go here
}, {
// conventional-changelog-writer options go here
}))
.pipe(dest('./'))
}

function releaseWebContent () {
return src('src/*.htm*')
.pipe(htmlmin({
Expand Down Expand Up @@ -89,8 +109,9 @@ function doc (cb) {
.pipe(jsdoc(cb))
}

exports.default = series(cleanProject, releaseWebContent, releaseJSContent, codeJSContent, releaseLocal, releasePublicData, releaseIcons, doc, docIcons, docImages)
exports.default = series(cleanProject, releaseWebContent, releaseJSContent, codeJSContent, releaseLocal, releasePublicData, releaseIcons, doc, docIcons, docImages, changelogUpdate)
exports.clean = cleanProject
exports.build = series(cleanProject, releaseWebContent, releaseJSContent, releaseLocal, codeJSContent)
exports.buildDocs = series(doc, docIcons, docImages)
exports.publish = series(cleanProject, releaseWebContent, releaseJSContent, releaseLocal, codeJSContent, releasePublicData, releaseIcons, doc, docIcons, docImages)
exports.changelog = changelogUpdate
exports.publish = series(cleanProject, releaseWebContent, releaseJSContent, releaseLocal, codeJSContent, releasePublicData, releaseIcons, doc, docIcons, docImages, changelogUpdate)
88 changes: 88 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"engines": {
"node": ">=10"
},
"homepage": "https://github.com/BiancoRoyal/node-red-contrib-bacnet#readme",
"homepage": "https://noderedplus.de/",
"scripts": {
"test": "standard --fix && mocha test --recursive --reporter dot --timeout 5000",
"test-with-coverage": "istanbul cover _mocha --report lcovonly -- --recursive --timeout 5000 -R spec && cat ./coverage/lcov.info | codacy-coverage --token $CODACY_COVERAGE_TOKEN && rm -rf ./coverage",
Expand All @@ -62,9 +62,11 @@
"release": "standard-version -a",
"release:beta": "standard-version --prerelease beta",
"release:alpha": "standard-version --prerelease alpha",
"rewrite-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"rewrite-changelog": "gulp changelog",
"postinstall": "node ./supporter.js",
"dev-link": "npm i && npm run build && npm link && cd ~/.node-red && npm link node-red-contrib-bacnet"
"clean": "gulp clean",
"dev-link": "npm i && npm run build && npm link",
"dev-unlink": "npm unlink node-red-contrib-bacnet -g"
},
"files": [
"docs",
Expand All @@ -82,6 +84,7 @@
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-clean": "^0.4.0",
"gulp-conventional-changelog": "^2.0.35",
"gulp-htmlmin": "^5.0.1",
"gulp-jsdoc3": "^3.0.0",
"gulp-replace": "^1.0.0",
Expand Down

0 comments on commit afa6b46

Please sign in to comment.