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.
- package/README.md +4 -1
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +80 -67
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/messages.d.ts +2 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +39 -69
- package/dist/prompts.d.ts +15 -3
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +98 -77
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +33 -33
- package/dist/version.d.ts +1 -1
- package/dist/version.js +25 -20
- package/lib/162/.env.example +1 -7
- package/lib/162/README.md +0 -19
- package/lib/162/app/Http/Controllers/MainController.php +12 -0
- package/lib/162/composer.json +3 -7
- package/lib/162/composer.lock +579 -1140
- package/lib/162/config/cache.php +4 -3
- package/lib/162/config/database.php +5 -2
- package/lib/162/config/filesystems.php +3 -2
- package/lib/162/config/logging.php +1 -1
- package/lib/162/config/mail.php +15 -2
- package/lib/162/config/queue.php +4 -4
- package/lib/162/config/services.php +4 -0
- package/lib/162/config/session.php +0 -1
- package/lib/162/package.json +1 -9
- package/lib/162/public/.htaccess +6 -8
- package/lib/162/resources/js/app.js +10 -10
- package/lib/162/resources/js/components/About.vue +4 -4
- package/lib/162/resources/js/components/Home.vue +11 -11
- package/lib/162/resources/js/components/pages/About.vue +5 -0
- package/lib/162/resources/js/components/pages/Error.vue +5 -0
- package/lib/162/resources/js/components/pages/Home.vue +21 -0
- package/lib/162/resources/js/components/templates/App.vue +86 -0
- package/lib/162/resources/js/failOver.js +8 -8
- package/lib/162/resources/js/mainStore.js +20 -0
- package/lib/162/resources/js/router.js +40 -24
- package/lib/162/resources/js/store.js +18 -18
- package/lib/162/resources/js/templates/App.vue +65 -65
- package/lib/162/resources/js/views/HomeView.vue +7 -7
- package/lib/162/resources/views/layouts/app.blade.php +13 -14
- package/lib/162/resources/views/welcome.blade.php +2 -2
- package/lib/162/routes/web.php +2 -3
- package/lib/162/vite.config.js +1 -1
- package/package.json +2 -4
- package/dist/count.d.ts +0 -3
- package/dist/count.d.ts.map +0 -1
- package/dist/count.js +0 -44
- package/dist/progress.d.ts +0 -2
- package/dist/progress.d.ts.map +0 -1
- package/dist/progress.js +0 -37
- 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
|
|
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
|
+
});
|
package/lib/162/.env.example
CHANGED
|
@@ -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
|
-
```
|
package/lib/162/composer.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"require": {
|
|
8
8
|
"php": "^8.2",
|
|
9
|
-
"laravel/framework": "^11.
|
|
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": "^
|
|
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
|
}
|