create-v-kit-spa 1.0.10 → 1.1.0

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 (55) hide show
  1. package/README.md +4 -1
  2. package/dist/commands.d.ts +1 -1
  3. package/dist/commands.js +80 -67
  4. package/dist/index.d.ts +2 -2
  5. package/dist/index.js +3 -3
  6. package/dist/messages.d.ts +2 -2
  7. package/dist/messages.d.ts.map +1 -1
  8. package/dist/messages.js +39 -69
  9. package/dist/prompts.d.ts +15 -3
  10. package/dist/prompts.d.ts.map +1 -1
  11. package/dist/prompts.js +98 -77
  12. package/dist/utils.d.ts +1 -1
  13. package/dist/utils.js +33 -33
  14. package/dist/version.d.ts +1 -1
  15. package/dist/version.js +25 -20
  16. package/lib/162/.env.example +1 -7
  17. package/lib/162/README.md +0 -19
  18. package/lib/162/app/Http/Controllers/MainController.php +12 -0
  19. package/lib/162/composer.json +3 -7
  20. package/lib/162/composer.lock +579 -1140
  21. package/lib/162/config/cache.php +4 -3
  22. package/lib/162/config/database.php +5 -2
  23. package/lib/162/config/filesystems.php +3 -2
  24. package/lib/162/config/logging.php +1 -1
  25. package/lib/162/config/mail.php +15 -2
  26. package/lib/162/config/queue.php +4 -4
  27. package/lib/162/config/services.php +4 -0
  28. package/lib/162/config/session.php +0 -1
  29. package/lib/162/package.json +1 -9
  30. package/lib/162/public/.htaccess +6 -8
  31. package/lib/162/resources/js/app.js +10 -10
  32. package/lib/162/resources/js/components/About.vue +4 -4
  33. package/lib/162/resources/js/components/Home.vue +11 -11
  34. package/lib/162/resources/js/components/pages/About.vue +5 -0
  35. package/lib/162/resources/js/components/pages/Error.vue +5 -0
  36. package/lib/162/resources/js/components/pages/Home.vue +21 -0
  37. package/lib/162/resources/js/components/templates/App.vue +86 -0
  38. package/lib/162/resources/js/failOver.js +8 -8
  39. package/lib/162/resources/js/mainStore.js +20 -0
  40. package/lib/162/resources/js/router.js +40 -24
  41. package/lib/162/resources/js/store.js +18 -18
  42. package/lib/162/resources/js/templates/App.vue +65 -65
  43. package/lib/162/resources/js/views/HomeView.vue +7 -7
  44. package/lib/162/resources/views/layouts/app.blade.php +13 -14
  45. package/lib/162/resources/views/welcome.blade.php +2 -2
  46. package/lib/162/routes/web.php +2 -3
  47. package/lib/162/vite.config.js +1 -1
  48. package/package.json +2 -4
  49. package/dist/count.d.ts +0 -3
  50. package/dist/count.d.ts.map +0 -1
  51. package/dist/count.js +0 -44
  52. package/dist/progress.d.ts +0 -2
  53. package/dist/progress.d.ts.map +0 -1
  54. package/dist/progress.js +0 -37
  55. package/lib/162/package-lock.json +0 -1330
package/dist/version.js CHANGED
@@ -1,20 +1,25 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const chalk_1 = __importDefault(require("chalk"));
7
- const { spawn } = require('child_process');
8
- const phpProcess = spawn('php', ['-v']);
9
- phpProcess.stdout.on('data', (data) => {
10
- const match = data.toString().match(/PHP (\d+\.\d+\.\d+)/);
11
- if (match) {
12
- console.log('Scanning... your php is:', chalk_1.default.greenBright(`v${match[1]}`));
13
- }
14
- else {
15
- console.error('Could not find Php version');
16
- }
17
- });
18
- phpProcess.stderr.on('data', (data) => {
19
- console.error(`Php not found: ${data}`);
20
- });
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const chalk_1 = __importDefault(require("chalk"));
7
+ const { spawn } = require('child_process');
8
+ const phpProcess = spawn('php', ['-v'], { shell: true });
9
+ phpProcess.stdout.on('data', (data) => {
10
+ const match = data.toString().match(/PHP (\d+\.\d+\.\d+)/);
11
+ if (match) {
12
+ console.log('Scanning... your php is:', chalk_1.default.greenBright(`v${match[1]}`));
13
+ }
14
+ else {
15
+ console.error('Could not find Php version');
16
+ }
17
+ });
18
+ phpProcess.stderr.on('data', (data) => {
19
+ console.error(`Php check error: ${data}`);
20
+ });
21
+ // Spawn failure (binary not found) emits 'error', not stderr.
22
+ // Without this, Node throws on the unhandled 'error' event and crashes.
23
+ phpProcess.on('error', () => {
24
+ console.error(chalk_1.default.redBright('Php not found in PATH.'));
25
+ });
@@ -5,18 +5,12 @@ APP_DEBUG=true
5
5
  APP_TIMEZONE=UTC
6
6
  APP_URL=http://localhost
7
7
 
8
- # DEPLOYMENT
9
- ASSET_URL=http://{ip_address}:{port}/ProjectName
10
- VITE_HOST={ip_address}
11
- VITE_BASE_URL=http://{ip_address}:{port}/ProjectName
12
- VITE_LOCAL_IP={ip_address}
13
-
14
8
  APP_LOCALE=en
15
9
  APP_FALLBACK_LOCALE=en
16
10
  APP_FAKER_LOCALE=en_US
17
11
 
18
12
  APP_MAINTENANCE_DRIVER=file
19
- APP_MAINTENANCE_STORE=database
13
+ # APP_MAINTENANCE_STORE=database
20
14
 
21
15
  BCRYPT_ROUNDS=12
22
16
 
package/lib/162/README.md CHANGED
@@ -64,22 +64,3 @@ If you discover a security vulnerability within Laravel, please send an e-mail t
64
64
  ## License
65
65
 
66
66
  The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
67
-
68
- ## isNeed of api.php
69
- ```
70
- php artisan install:api
71
- ```
72
-
73
- ## Deployment
74
-
75
- ```
76
- // .env
77
- ASSET_URL=http://{ip_address}:{port}/ProjectName
78
- VITE_HOST={ip_address}
79
- VITE_BASE_URL=http://{ip_address}:{port}/ProjectName
80
- VITE_LOCAL_IP={ip_address}
81
- ```
82
-
83
- ```
84
- npm run build
85
- ```
@@ -0,0 +1,12 @@
1
+ <?php
2
+
3
+ namespace App\Http\Controllers;
4
+
5
+ use Illuminate\Http\Request;
6
+
7
+ class mainController extends Controller
8
+ {
9
+ public function index(){
10
+ return view('layouts.app');
11
+ }
12
+ }
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "require": {
8
8
  "php": "^8.2",
9
- "laravel/framework": "^11.0",
9
+ "laravel/framework": "^11.9",
10
10
  "laravel/tinker": "^2.9"
11
11
  },
12
12
  "require-dev": {
@@ -15,8 +15,7 @@
15
15
  "laravel/sail": "^1.26",
16
16
  "mockery/mockery": "^1.6",
17
17
  "nunomaduro/collision": "^8.0",
18
- "phpunit/phpunit": "^10.5",
19
- "spatie/laravel-ignition": "^2.4"
18
+ "phpunit/phpunit": "^11.0.1"
20
19
  },
21
20
  "autoload": {
22
21
  "psr-4": {
@@ -44,13 +43,10 @@
44
43
  "post-create-project-cmd": [
45
44
  "@php artisan key:generate --ansi",
46
45
  "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
47
- "@php artisan migrate --ansi"
46
+ "@php artisan migrate --graceful --ansi"
48
47
  ]
49
48
  },
50
49
  "extra": {
51
- "branch-alias": {
52
- "dev-master": "11.x-dev"
53
- },
54
50
  "laravel": {
55
51
  "dont-discover": []
56
52
  }