Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

little tweaks #21

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [ push ]
on: [ push, pull_request ]

env:
CI: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: publish

on:
release:
types: [ published ]
push:
branches:
- master
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ package-lock.json
bower_components
# Optional npm cache directory
.npmrc

.idea
.DS_Store
haraka-update.sh
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![CI Test Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]

[![NPM][npm-img]][npm-url]

# haraka-plugin-template
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "haraka-plugin-template",
"version": "1.0.3",
"description": "Haraka plugin that frobnicates email connections",
"version": "1.0.4",
"description": "Haraka plugin that...CHANGE THIS",
"main": "index.js",
"scripts": {
"lint": "npx eslint *.js test/*.js",
"lintfix": "npx eslint --fix *.js test/*.js",
"lint": "npx eslint *.js test",
"lintfix": "npx eslint --fix *.js test",
"versions": "npx dependency-version-checker check",
"test": "npx mocha"
},
Expand All @@ -25,9 +25,9 @@
},
"homepage": "https://github.com/haraka/haraka-plugin-template#readme",
"devDependencies": {
"eslint": "8",
"eslint": "8.55.0",
"eslint-plugin-haraka": "*",
"haraka-test-fixtures": "*",
"mocha": "9"
"mocha": "10.2.0"
}
}
9 changes: 7 additions & 2 deletions redress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ if [ -z "$1" ]; then
exit
fi

sed -i '' -e "s/template/${1}/g" README.md
sed -i '' \
-e "s/template/${1}/g" \
README.md

sed -i '' \
-e "s/template/${1}/g" \
-e "s/template\.ini/$1.ini/" \
test/index.js

sed -i '' -e "s/template/${1}/g" package.json
sed -i '' \
-e "s/template/${1}/g" \
package.json

sed -i '' \
-e "s/_template/_${1}/g" \
-e "s/template\.ini/$1.ini/" \
Expand Down