create-v-kit-spa 1.0.4 → 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.
@@ -0,0 +1,3 @@
1
+ declare const spawn: any;
2
+ declare const phpProcess: any;
3
+ //# sourceMappingURL=version.d.ts.map
@@ -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"}
@@ -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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-v-kit-spa",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "description": "A simple way to start your Vue-Laravel-spa projects",
6
6
  "repository": "Shuashuaa/v-kit-spa",