@scout9/app 1.0.0-alpha.0.1.21 → 1.0.0-alpha.0.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scout9/app",
3
- "version": "1.0.0-alpha.0.1.21",
3
+ "version": "1.0.0-alpha.0.1.23",
4
4
  "description": "Build and deploy your Scout9 app for SMS auto reply",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,5 +1,6 @@
1
1
  import polka from 'polka';
2
2
  import bodyParser from 'body-parser';
3
+ import colors from 'kleur';
3
4
 
4
5
  /** @type (event: WorkflowEvent): Promise<WorkflowResponse> **/
5
6
  import projectApp from './src/app.js';
@@ -41,5 +42,31 @@ app.get('/', (req, res) => {
41
42
 
42
43
  app.listen(process.env.PORT || 8080, err => {
43
44
  if (err) throw err;
44
- console.log(`> Running on port ${process.env.PORT || 8080}`);
45
+ const art = `
46
+
47
+
48
+ ________ ________ ________ ___ ___ _________ ________
49
+ |\\ ____\\|\\ ____\\|\\ __ \\|\\ \\|\\ \\|\\___ ___\\\\ ___ \\
50
+ \\ \\ \\___|\\ \\ \\___|\\ \\ \\|\\ \\ \\ \\\\\\ \\|___ \\ \\_\\ \\____ \\
51
+ \\ \\_____ \\ \\ \\ \\ \\ \\\\\\ \\ \\ \\\\\\ \\ \\ \\ \\ \\|____|\\ \\
52
+ \\|____|\\ \\ \\ \\____\\ \\ \\\\\\ \\ \\ \\\\\\ \\ \\ \\ \\ __\\_\\ \\
53
+ ____\\_\\ \\ \\_______\\ \\_______\\ \\_______\\ \\ \\__\\ |\\_______\\
54
+ |\\_________\\|_______|\\|_______|\\|_______| \\|__| \\|_______|
55
+ \\|_________|
56
+ `;
57
+ const art2 = ` ___ __ ____ __ __
58
+ / | __ __/ /_____ / __ \\___ ____ / /_ __ / /
59
+ / /| |/ / / / __/ __ \\ / /_/ / _ \\/ __ \\/ / / / / / /
60
+ / ___ / /_/ / /_/ /_/ / / _, _/ __/ /_/ / / /_/ / /_/
61
+ /_/ |_\\__,_/\\__/\\____/ /_/ |_|\\___/ .___/_/\\__, / (_)
62
+ /_/ /____/
63
+
64
+ `
65
+ const protocol = process.env.PROTOCOL || 'http';
66
+ const host = process.env.HOST || 'localhost';
67
+ const port = process.env.PORT || 8080;
68
+ const fullUrl = `${protocol}://${host}:${port}`;
69
+ console.log(colors.bold(colors.green(art)));
70
+ console.log(colors.bold(colors.cyan(art2)));
71
+ console.log(`${colors.grey(`${colors.cyan('>')} Running ${colors.bold(colors.white('Scout9'))}`)} ${colors.bold(colors.red(colors.bgBlack('auto-reply')))} ${colors.grey('dev environment on')} ${fullUrl}`);
45
72
  });