@scout9/app 1.0.0-alpha.0.1.7 → 1.0.0-alpha.0.1.9
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 +2 -2
- package/scout9-app.js +2 -1
- package/src/cli.js +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scout9/app",
|
|
3
|
-
"version": "1.0.0-alpha.0.1.
|
|
3
|
+
"version": "1.0.0-alpha.0.1.9",
|
|
4
4
|
"description": "Build and deploy your Scout9 app for SMS auto reply",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
19
19
|
"bin": {
|
|
20
|
-
"scout9
|
|
20
|
+
"scout9": "./scout9-app.js"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
package/scout9-app.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import './src/cli.js';
|
package/src/cli.js
CHANGED
|
@@ -89,4 +89,21 @@ prog
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
+
prog
|
|
93
|
+
.command('dev')
|
|
94
|
+
.describe('Run your scout9 auto reply app locally')
|
|
95
|
+
.option('--mode', 'Specify a mode for loading environment variables', 'development')
|
|
96
|
+
.action(async ({ mode }) => {
|
|
97
|
+
if (!fs.existsSync('.env')) {
|
|
98
|
+
console.warn(`Missing ${path.resolve('.env')} — skipping`);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
throw new Error('Dev server not available yet');
|
|
103
|
+
} catch (e) {
|
|
104
|
+
handle_error(e);
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
|
|
92
109
|
prog.parse(process.argv, { unknown: (arg) => `Unknown option: ${arg}` });
|