Skip to content

Commit 815f7c8

Browse files
build: 3.0.0
* build: 3.0.0
1 parent ac2f736 commit 815f7c8

16 files changed

Lines changed: 497 additions & 82 deletions

File tree

.eslintignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#IDE
21
.vscode
3-
#
2+
api
43
node_modules
4+
samples
5+
*.md
6+
*.json
7+
LICENSE

.eslintrc.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,30 @@
1616
}
1717
},
1818
"rules": {
19-
"indent": ["error", 2, { "SwitchCase": 1 }],
19+
"indent": [
20+
"error",
21+
2,
22+
{
23+
"SwitchCase": 1
24+
}
25+
],
2026
"default-case": "error",
2127
"linebreak-style": ["error", "unix"],
22-
"semi": ["error", "always"]
28+
"semi": ["error", "always"],
29+
"no-undef": "error",
30+
"no-var": "error",
31+
"no-caller": "error",
32+
"no-throw-literal": "error",
33+
"no-unneeded-ternary": "error",
34+
"prefer-const": "error",
35+
"comma-spacing": [
36+
"error",
37+
{
38+
"before": false,
39+
"after": true
40+
}
41+
],
42+
"comma-style": ["error", "last"],
43+
"handle-callback-err": ["error", "^(err|error)$"]
2344
}
2445
}

.prettierignore

100755100644
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ node_modules
44
.gitignore
55
.prettierignore
66
LICENSE
7+
*.sql
78
*.png
89
*.txt
9-
TODO
10-
docs/functions.md
11-
*.md
12-
test.log
10+
TODO

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tabWidth": 2,
3+
"bracketSpacing": true,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"printWidth": 120,
7+
"semi": true,
8+
"arrowParens": "avoid"
9+
}

.prettierrc.json

100755100644
File mode changed.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Runnerty Tech S.L
3+
Copyright (c) 2021 Runnerty Tech S.L
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,39 @@
55
<p align="center">A new way for processes managing</p>
66
</p>
77

8-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]
8+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]
99
<a href="#badge">
10-
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg">
10+
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg">
1111
</a>
1212

13-
1413
# Mail executor for [Runnerty]:
14+
1515
Email notification module with [ejs] template support.
1616

1717
### Installation:
18+
1819
```bash
1920
npm i @runnerty/executor-mail
2021
```
2122

23+
You can also add modules to your project with [runnerty-cli]
24+
25+
```bash
26+
npx runnerty-cli add @runnerty/executor-mail
27+
```
28+
29+
This command installs the module in your project, adds example configuration in your `config.json` and creates an example plan of use.
30+
31+
If you have installed [runnerty-cli] globally you can include the module with this command:
32+
33+
```bash
34+
rty add @runnerty/executor-mail
35+
```
36+
2237
### Configuration samples:
38+
2339
Add in [config.json]:
40+
2441
```json
2542
{
2643
"id": "mail_default",
@@ -57,7 +74,9 @@ Add in [config.json]:
5774
```
5875

5976
### Plan sample:
77+
6078
Add in [plan.json]:
79+
6180
```json
6281
{
6382
"id": "mail_default",
@@ -107,7 +126,7 @@ Want to file a bug, contribute some code, or improve documentation? Excellent! R
107126
guidelines for [contributing][contributing].
108127

109128
[contributing]: https://github.com/runnerty/runnerty/blob/master/CONTRIBUTING.md
110-
[Runnerty]: http://www.runnerty.io
129+
[runnerty]: http://www.runnerty.io
111130
[downloads-image]: https://img.shields.io/npm/dm/@runnerty/executor-mail.svg
112131
[npm-url]: https://www.npmjs.com/package/@runnerty/executor-mail
113132
[npm-image]: https://img.shields.io/npm/v/@runnerty/executor-mail.svg
@@ -116,3 +135,4 @@ guidelines for [contributing][contributing].
116135
[config.json]: http://docs.runnerty.io/config/
117136
[plan.json]: http://docs.runnerty.io/plan/
118137
[ejs]: https://ejs.co
138+
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const ejs = require('ejs');
55
const path = require('path');
66
const fsp = require('fs').promises;
77

8-
const Execution = global.ExecutionClass;
8+
const Executor = require('@runnerty/module-core').Executor;
99

10-
class mailExecutor extends Execution {
10+
class mailExecutor extends Executor {
1111
constructor(process) {
1212
super(process);
1313
}

0 commit comments

Comments
 (0)