Skip to content

Commit 71b85d3

Browse files
authored
Merge pull request #14 from reactplay/Issue-13-cleanup
Issue 13 cleanup and doc update
2 parents 241c4c0 + d0c192b commit 71b85d3

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

bin/global.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import fs from "fs";
77

88
// Displays the text in the console
99
let meta = JSON.parse(fs.readFileSync("package.json", "utf-8"));
10+
console.log("");
1011
console.log(
1112
CONSOLE_COLORS.FgGreen,
1213
"┌─────────────────────────────────────────────────────────────────────────┐"

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { arg_objects } from "./arg-parser.js";
22
import { toKebabCase } from "../util/util.js";
3-
import prompt from "prompt";
43
import { ALL_ARGS_TYPES } from "../util/const.js";
54
import * as hooks from "../hooks/index.js";
65
import { Log } from "../log/index.js";

lib/services/template/play_index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ const writeFile = (plays, dirs) => {
3030
playPath = pathSegmentation[2];
3131
if (playPath !== play.kebab_name) {
3232
Log.log(
33-
`Play name and path is not matching : ${
34-
play.name
35-
}(${playPath} >> ${JSON.stringify(play)})`
33+
`Play name and path is not matching : ${play.name}(${playPath})`
3634
);
3735
}
3836
}

log/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ const highlight = (text) => {
2222

2323
const segementStart = (text) => {
2424
console.log(`----------------- Start: ${text}-----------------------`);
25+
console.log("");
2526
};
2627
const segementEnd = (text) => {
27-
console.log(`----------------- Start: ${text}-----------------------`);
28+
console.log("");
29+
console.log(`----------------- End: ${text}-----------------------`);
30+
console.log("");
2831
};
2932

3033
const newLine = (text) => {

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-react-play",
3-
"version": "0.0.5",
3+
"version": "0.0.7",
44
"description": "Boiler plate for creating a play within reactplay system",
55
"main": "index.js",
66
"bin": {
@@ -20,12 +20,10 @@
2020
"homepage": "https://reactplay.io/",
2121
"dependencies": {
2222
"axios": "^0.27.2",
23-
"child-process": "^1.0.2",
2423
"dotenv": "^16.0.1",
25-
"json-graphql-parser": "^0.0.9",
26-
"prompt": "^1.3.0"
24+
"json-graphql-parser": "^0.0.9"
2725
},
28-
"repository": "git://github.com/reactplay/react-play-dev-kit.git",
26+
"repository": "git://github.com/reactplay/create-react-play.git",
2927
"devDependencies": {
3028
"@types/node": "^18.0.0"
3129
}

0 commit comments

Comments
 (0)