create-scout9 1.0.0-alpha.0.0.7 → 1.0.0-alpha.0.0.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/README.md +34 -0
- package/bin.js +5 -2
- package/dist/templates/default/package.json +4 -2
- package/dist/templates/skeleton/package.json +4 -2
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# create-svelte
|
|
2
|
+
|
|
3
|
+
A CLI for creating new [Scout9](https://scout9.com) auto reply projects. Just run...
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm create scout9@latest my-app
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
...and follow the prompts.
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
You can also use `create-scout9` programmatically:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { create } from 'create-scout9';
|
|
17
|
+
|
|
18
|
+
await create('my-new-app', {
|
|
19
|
+
name: 'my-new-app',
|
|
20
|
+
template: 'default', // or 'skeleton'
|
|
21
|
+
// types: 'checkjs', // or 'typescript' or null; // @TODO TypeScript support
|
|
22
|
+
prettier: false,
|
|
23
|
+
eslint: false,
|
|
24
|
+
jest: false
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`checkjs` means your project will use TypeScript to typecheck JavaScript via [JSDoc comments](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html).
|
|
29
|
+
|
|
30
|
+
**_Note_**: *Typescript support will be available soon.*
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
[MIT](../../LICENSE).
|
package/bin.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import * as p from '@clack/prompts';
|
|
5
|
-
import { bold, cyan, grey, yellow } from 'kleur/colors';
|
|
5
|
+
import { bold, cyan, grey, yellow, green, magenta } from 'kleur/colors';
|
|
6
6
|
import { create } from './index.js';
|
|
7
7
|
import { dist, package_manager } from './utils.js';
|
|
8
8
|
|
|
@@ -151,7 +151,10 @@ if (relative !== '') {
|
|
|
151
151
|
console.log(` ${i++}: ${bold(cyan(`${package_manager} install`))}`);
|
|
152
152
|
// prettier-ignore
|
|
153
153
|
console.log(` ${i++}: ${bold(cyan('git init && git add -A && git commit -m "Initial commit"'))} (optional)`);
|
|
154
|
+
console.log(` ${i++}: ${bold(magenta('Add your SCOUT9_API_KEY to .env'))} (login for api key: https://scout9.com/b)`);
|
|
155
|
+
// console.log(` ${i++}: ${bold(cyan(`${package_manager} run dev`))}`);
|
|
154
156
|
console.log(` ${i++}: ${bold(cyan(`${package_manager} run dev -- --open`))}`);
|
|
155
157
|
|
|
156
158
|
// console.log(`\nTo close the dev server, hit ${bold(cyan('Ctrl-C'))}`);
|
|
157
|
-
console.log(`\nStuck?
|
|
159
|
+
console.log(`\nStuck? Connect with us on ${bold('Discord')} ${cyan('https://discord.gg/kG8hZwc5sQ')}`);
|
|
160
|
+
console.log(`\nYour api key is listed on your ${bold('Scout9')} account ${cyan('https://scout9.com/b')} page`);
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
"scripts": {
|
|
5
5
|
"deploy": "scout9 deploy",
|
|
6
6
|
"build": "scout9 build",
|
|
7
|
-
"
|
|
7
|
+
"sync": "scout9 sync",
|
|
8
|
+
"dev": "scout9 dev"
|
|
8
9
|
},
|
|
9
10
|
"dependencies": {
|
|
10
|
-
"@scout9/app": "latest"
|
|
11
|
+
"@scout9/app": "latest",
|
|
12
|
+
"@scout9/crm": "latest"
|
|
11
13
|
},
|
|
12
14
|
"type": "module"
|
|
13
15
|
}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
"scripts": {
|
|
6
6
|
"deploy": "scout9 deploy",
|
|
7
7
|
"build": "scout9 build",
|
|
8
|
-
"
|
|
8
|
+
"sync": "scout9 sync",
|
|
9
|
+
"dev": "scout9 dev"
|
|
9
10
|
},
|
|
10
11
|
"dependencies": {
|
|
11
|
-
"@scout9/app": "latest"
|
|
12
|
+
"@scout9/app": "latest",
|
|
13
|
+
"@scout9/crm": "latest"
|
|
12
14
|
},
|
|
13
15
|
"type": "module"
|
|
14
16
|
}
|