create-directus-docker 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +15 -15
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-directus-docker",
3
3
  "description": "An installer for Dockerized Directus + MySQL + Adminer + GraphiQL with a helper Node app",
4
- "version": "1.2.0",
4
+ "version": "1.2.3",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
package/src/cli.js CHANGED
@@ -4,25 +4,25 @@ import upath from 'upath';
4
4
  import chalk from 'chalk';
5
5
  import path from 'path';
6
6
  import {fileURLToPath} from 'url';
7
- import { resolve } from 'path';
8
7
  import { create } from 'create-create-app';
9
8
 
10
9
  const __filename = fileURLToPath(import.meta.url);
11
- const __dirname = path.dirname(__filename);
12
- // let templateRoot = resolve(__dirname, '../templates');
13
- const templateRoot = upath.resolve(__dirname, '../templates')
10
+ const __dirname = path.dirname(__filename);)
14
11
 
15
- console.log(chalk.redBright("DEBUG:"));
16
- console.log(__filename);
17
- console.log(__dirname)
18
- console.log(templateRoot);
19
- console.log(chalk.redBright("END DEBUG"));
20
- //${chalk.yellow("Directus with MySQL, Adminer, and GraphiQL:")}
12
+ create('create-directus-docker', {
13
+ templateRoot: upath.resolve(__dirname, '../templates'),
14
+ caveat: ({ answers }) => {
15
+ return `
16
+ {chalk.yellow("Directus with MySQL, Adminer, and GraphiQL:")}
21
17
 
22
- const caveat = `
23
- Installed successfully.
24
- `;
18
+ To configure and run your Directus services, run:
25
19
 
26
- create('create-directus-docker', {
27
- templateRoot: upath.resolve(__dirname, '../templates')
20
+ cd ${chalk.bold.green(answers.name)} && npm start
21
+
22
+ For more information, see:
23
+ https://github.com/davekobrenski/create-directus-docker
24
+
25
+ Enjoy!
26
+ `
27
+ }
28
28
  });