create-v-kit-spa 1.0.3 → 1.0.5
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/messages.js +1 -1
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +15 -0
- package/package.json +1 -1
package/dist/messages.js
CHANGED
|
@@ -47,7 +47,7 @@ function successMessage(sourceVal) {
|
|
|
47
47
|
console.log(chalk_1.default.cyanBright.bold(" O * ' .\n"));
|
|
48
48
|
}, 300);
|
|
49
49
|
setTimeout(() => {
|
|
50
|
-
console.log('Well done 🎉🎉,', chalk_1.default.green('These Boilerplates are created with coffee & passion by', chalk_1.default.green.bold.underline('Shuashuaa'), chalk_1.default.whiteBright('\nFor more info (github): >>'), chalk_1.default.green.underline('https://github.com/Shuashuaa/v-kit-spa'), chalk_1.default.whiteBright('\nFor more info (gitlab): >>'), chalk_1.default.green.underline('https://gitlab.com/Shuashuaa/v-kit-spa\n')));
|
|
50
|
+
console.log('Well done 🎉🎉,', chalk_1.default.green('These Boilerplates are created with coffee & passion by', chalk_1.default.green.bold.underline('Shuashuaa'), chalk_1.default.whiteBright('\nFor more info (github): >>'), chalk_1.default.green.underline('https://github.com/Shuashuaa/create-v-kit-spa'), chalk_1.default.whiteBright('\nFor more info (gitlab): >>'), chalk_1.default.green.underline('https://gitlab.com/Shuashuaa/v-kit-spa\n')));
|
|
51
51
|
}, 800);
|
|
52
52
|
setTimeout(() => {
|
|
53
53
|
if (sourceVal == "158" || sourceVal == "159") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,QAAA,MAAQ,KAAK,KAA6B,CAAC;AAE3C,QAAA,MAAM,UAAU,KAAuB,CAAC"}
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const { spawn } = require('child_process');
|
|
3
|
+
const phpProcess = spawn('php', ['-v']);
|
|
4
|
+
phpProcess.stdout.on('data', (data) => {
|
|
5
|
+
const match = data.toString().match(/PHP (\d+\.\d+\.\d+)/);
|
|
6
|
+
if (match) {
|
|
7
|
+
console.log(`Your Php Version is: v${match[1]}`);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
console.error('Could not find Php version');
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
phpProcess.stderr.on('data', (data) => {
|
|
14
|
+
console.error(`Php not found: ${data}`);
|
|
15
|
+
});
|