atendeticket 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/.ascii +12 -0
- package/core/banner.js +12 -15
- package/package.json +3 -2
package/core/.ascii
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
,-.
|
|
2
|
+
/ ( '
|
|
3
|
+
* _.--'! '--._
|
|
4
|
+
,' ''_ _____ __ .___ ___________.__ __ __
|
|
5
|
+
' |! / _ \_/ |_ ____ ____ __| _/___\__ ___/|__| ____ | | __ _____/ |_
|
|
6
|
+
_.' O ___ / /_\ \ __\/ __ \ / \ / __ |/ __ \| | | |/ ___\| |/ // __ \ __\
|
|
7
|
+
(_.-^, __..-' ''''-./ | \ | \ ___/| | \/ /_/ \ ___/| | | \ \___| <\ ___/| |
|
|
8
|
+
/,' ' _\____|____/__| \_____>___|__/\____ |\_____>____| |__|\_____>__|__\\_____>__|
|
|
9
|
+
' * .-'' |
|
|
10
|
+
(..--^. '
|
|
11
|
+
| /
|
|
12
|
+
'
|
package/core/banner.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const chalk = require("chalk");
|
|
4
|
+
|
|
1
5
|
function showBanner() {
|
|
2
|
-
|
|
6
|
+
try {
|
|
7
|
+
const asciiPath = path.join(__dirname, ".ascii");
|
|
8
|
+
const ascii = fs.readFileSync(asciiPath, "utf8");
|
|
3
9
|
|
|
4
|
-
console.log(chalk.cyan(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
' |! / _ \_/ |_ ____ ____ __| _/___\__ ___/|__| ____ | | __ _____/ |_
|
|
10
|
-
_.' O ___ / /_\ \ __\/ __ \ / \ / __ |/ __ \| | | |/ ___\| |/ // __ \ __\
|
|
11
|
-
(_.-^, __..-' ''''-./ | \ | \ ___/| | \/ /_/ \ ___/| | | \ \___| <\ ___/| |
|
|
12
|
-
/,' ' _\____|____/__| \_____>___|__/\____ |\_____>____| |__|\_____>__|__\\_____>__|
|
|
13
|
-
' * .-'' |
|
|
14
|
-
(..--^. '
|
|
15
|
-
| /
|
|
16
|
-
'
|
|
17
|
-
`));
|
|
10
|
+
console.log(chalk.cyan(ascii));
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.error(chalk.red("Erro ao carregar o arquivo ascii.txt"));
|
|
13
|
+
console.error(error.message);
|
|
14
|
+
}
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
module.exports = { showBanner };
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atendeticket",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Instalador CLI para AtendeTicket",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"start": "node index.js"
|
|
7
|
+
"start": "node index.js",
|
|
8
|
+
"publish": "npm version patch && npm publish --access public"
|
|
8
9
|
},
|
|
9
10
|
"bin": {
|
|
10
11
|
"atendeticket": "./index.js"
|