@create-node-app/core 0.3.2 → 0.3.4
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/dist/index.js +9 -5
- package/dist/index.mjs +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -705,9 +705,9 @@ var runCommandInProjectDir = async (root, command, args = [], successMessage = "
|
|
|
705
705
|
try {
|
|
706
706
|
(0, import_child_process3.execSync)(`${command} ${args.join(" ")}`, {
|
|
707
707
|
cwd: root,
|
|
708
|
-
|
|
708
|
+
// don't show output in console
|
|
709
|
+
stdio: "ignore"
|
|
709
710
|
});
|
|
710
|
-
console.log();
|
|
711
711
|
console.log(import_chalk3.default.green(successMessage));
|
|
712
712
|
} catch (error) {
|
|
713
713
|
console.log();
|
|
@@ -828,7 +828,7 @@ var run = async ({
|
|
|
828
828
|
"git",
|
|
829
829
|
["init"],
|
|
830
830
|
"Successfully initialized git repository.",
|
|
831
|
-
"Failed to initialize git repository."
|
|
831
|
+
"Failed to initialize git repository. Run `git init` to initialize git repository after the process is completed."
|
|
832
832
|
);
|
|
833
833
|
if (installDependencies && isOnline) {
|
|
834
834
|
const packageJson = JSON.parse(
|
|
@@ -840,7 +840,8 @@ var run = async ({
|
|
|
840
840
|
root,
|
|
841
841
|
runCommand,
|
|
842
842
|
["format"],
|
|
843
|
-
"Successfully formatted code."
|
|
843
|
+
"Successfully formatted code.",
|
|
844
|
+
`Failed to format code. Run \`${runCommand} format\` to format code after the process is completed.`
|
|
844
845
|
);
|
|
845
846
|
} catch {
|
|
846
847
|
}
|
|
@@ -852,12 +853,15 @@ var run = async ({
|
|
|
852
853
|
runCommand,
|
|
853
854
|
["lint:fix"],
|
|
854
855
|
"Successfully fixed linting errors.",
|
|
855
|
-
|
|
856
|
+
`Failed to fix linting errors. Run \`${runCommand} lint:fix\` to fix linting errors after the process is completed.`
|
|
856
857
|
);
|
|
857
858
|
} catch {
|
|
858
859
|
}
|
|
859
860
|
}
|
|
860
861
|
}
|
|
862
|
+
console.log();
|
|
863
|
+
console.log(import_chalk3.default.green("Successfully created project " + appName + "."));
|
|
864
|
+
process.chdir(root);
|
|
861
865
|
};
|
|
862
866
|
var createApp = async ({
|
|
863
867
|
name,
|
package/dist/index.mjs
CHANGED
|
@@ -676,9 +676,9 @@ var runCommandInProjectDir = async (root, command, args = [], successMessage = "
|
|
|
676
676
|
try {
|
|
677
677
|
execSync2(`${command} ${args.join(" ")}`, {
|
|
678
678
|
cwd: root,
|
|
679
|
-
|
|
679
|
+
// don't show output in console
|
|
680
|
+
stdio: "ignore"
|
|
680
681
|
});
|
|
681
|
-
console.log();
|
|
682
682
|
console.log(chalk3.green(successMessage));
|
|
683
683
|
} catch (error) {
|
|
684
684
|
console.log();
|
|
@@ -799,7 +799,7 @@ var run = async ({
|
|
|
799
799
|
"git",
|
|
800
800
|
["init"],
|
|
801
801
|
"Successfully initialized git repository.",
|
|
802
|
-
"Failed to initialize git repository."
|
|
802
|
+
"Failed to initialize git repository. Run `git init` to initialize git repository after the process is completed."
|
|
803
803
|
);
|
|
804
804
|
if (installDependencies && isOnline) {
|
|
805
805
|
const packageJson = JSON.parse(
|
|
@@ -811,7 +811,8 @@ var run = async ({
|
|
|
811
811
|
root,
|
|
812
812
|
runCommand,
|
|
813
813
|
["format"],
|
|
814
|
-
"Successfully formatted code."
|
|
814
|
+
"Successfully formatted code.",
|
|
815
|
+
`Failed to format code. Run \`${runCommand} format\` to format code after the process is completed.`
|
|
815
816
|
);
|
|
816
817
|
} catch {
|
|
817
818
|
}
|
|
@@ -823,12 +824,15 @@ var run = async ({
|
|
|
823
824
|
runCommand,
|
|
824
825
|
["lint:fix"],
|
|
825
826
|
"Successfully fixed linting errors.",
|
|
826
|
-
|
|
827
|
+
`Failed to fix linting errors. Run \`${runCommand} lint:fix\` to fix linting errors after the process is completed.`
|
|
827
828
|
);
|
|
828
829
|
} catch {
|
|
829
830
|
}
|
|
830
831
|
}
|
|
831
832
|
}
|
|
833
|
+
console.log();
|
|
834
|
+
console.log(chalk3.green("Successfully created project " + appName + "."));
|
|
835
|
+
process.chdir(root);
|
|
832
836
|
};
|
|
833
837
|
var createApp = async ({
|
|
834
838
|
name,
|