create-v-kit-spa 1.0.7 → 1.0.9
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 +9 -9
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +67 -67
- package/dist/count.d.ts +2 -2
- package/dist/count.js +44 -44
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/messages.d.ts +2 -2
- package/dist/messages.js +69 -69
- package/dist/progress.d.ts +1 -1
- package/dist/progress.js +37 -37
- package/dist/prompts.d.ts +3 -3
- package/dist/prompts.js +77 -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 +20 -20
- package/index.d.ts +2 -2
- package/lib/158/bootstrap/cache/packages.php +54 -54
- package/lib/158/bootstrap/cache/services.php +230 -230
- package/lib/158/public/css/app.css +28133 -28133
- package/lib/158/public/js/app.js +83979 -83979
- package/lib/158/public/mix-manifest.json +3 -3
- package/lib/158/storage/framework/views/1ddf75c1b95a4bfcdffdd013ed70c87e04029f74.php +38 -38
- package/lib/158/storage/framework/views/7ee0ae105f3a4c476f9d59f2047eb7c745e7d9a5.php +4 -4
- package/lib/158/storage/logs/laravel.log +91 -91
- package/lib/160/.editorconfig +18 -18
- package/lib/160/.env.example +58 -58
- package/lib/160/.gitattributes +11 -11
- package/lib/160/README.md +66 -66
- package/lib/160/app/Console/Kernel.php +32 -32
- package/lib/160/app/Exceptions/Handler.php +50 -50
- package/lib/160/app/Http/Controllers/Controller.php +13 -13
- package/lib/160/app/Http/Controllers/MainController.php +12 -12
- package/lib/160/app/Http/Kernel.php +67 -67
- package/lib/160/app/Http/Middleware/Authenticate.php +21 -21
- package/lib/160/app/Http/Middleware/EncryptCookies.php +17 -17
- package/lib/160/app/Http/Middleware/PreventRequestsDuringMaintenance.php +17 -17
- package/lib/160/app/Http/Middleware/RedirectIfAuthenticated.php +32 -32
- package/lib/160/app/Http/Middleware/TrimStrings.php +19 -19
- package/lib/160/app/Http/Middleware/TrustHosts.php +20 -20
- package/lib/160/app/Http/Middleware/TrustProxies.php +28 -28
- package/lib/160/app/Http/Middleware/ValidateSignature.php +22 -22
- package/lib/160/app/Http/Middleware/VerifyCsrfToken.php +17 -17
- package/lib/160/app/Models/User.php +44 -44
- package/lib/160/app/Providers/AppServiceProvider.php +28 -28
- package/lib/160/app/Providers/AuthServiceProvider.php +30 -30
- package/lib/160/app/Providers/BroadcastServiceProvider.php +21 -21
- package/lib/160/app/Providers/EventServiceProvider.php +42 -42
- package/lib/160/app/Providers/RouteServiceProvider.php +52 -52
- package/lib/160/artisan +53 -53
- package/lib/160/bootstrap/app.php +55 -55
- package/lib/160/bootstrap/cache/.gitignore +2 -2
- package/lib/160/composer.json +65 -65
- package/lib/160/config/app.php +215 -215
- package/lib/160/config/auth.php +111 -111
- package/lib/160/config/broadcasting.php +70 -70
- package/lib/160/config/cache.php +110 -110
- package/lib/160/config/cors.php +34 -34
- package/lib/160/config/database.php +151 -151
- package/lib/160/config/filesystems.php +76 -76
- package/lib/160/config/hashing.php +52 -52
- package/lib/160/config/logging.php +122 -122
- package/lib/160/config/mail.php +118 -118
- package/lib/160/config/queue.php +93 -93
- package/lib/160/config/sanctum.php +67 -67
- package/lib/160/config/services.php +34 -34
- package/lib/160/config/session.php +201 -201
- package/lib/160/config/view.php +36 -36
- package/lib/160/database/factories/UserFactory.php +40 -40
- package/lib/160/database/migrations/2014_10_12_000000_create_users_table.php +36 -36
- package/lib/160/database/migrations/2014_10_12_100000_create_password_resets_table.php +32 -32
- package/lib/160/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +36 -36
- package/lib/160/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +37 -37
- package/lib/160/database/seeders/DatabaseSeeder.php +24 -24
- package/lib/160/lang/en/auth.php +20 -20
- package/lib/160/lang/en/pagination.php +19 -19
- package/lib/160/lang/en/passwords.php +22 -22
- package/lib/160/lang/en/validation.php +184 -184
- package/lib/160/package.json +25 -25
- package/lib/160/phpunit.xml +31 -31
- package/lib/160/public/.htaccess +21 -21
- package/lib/160/public/index.php +55 -55
- package/lib/160/public/robots.txt +2 -2
- package/lib/160/resources/js/app.js +32 -32
- package/lib/160/resources/js/bootstrap.js +35 -35
- package/lib/160/resources/views/welcome.blade.php +132 -132
- package/lib/160/routes/api.php +19 -19
- package/lib/160/routes/channels.php +18 -18
- package/lib/160/routes/console.php +19 -19
- package/lib/160/routes/web.php +19 -19
- package/lib/160/storage/app/.gitignore +3 -3
- package/lib/160/storage/app/public/.gitignore +2 -2
- package/lib/160/storage/framework/cache/.gitignore +3 -3
- package/lib/160/storage/framework/cache/data/.gitignore +2 -2
- package/lib/160/storage/framework/sessions/.gitignore +2 -2
- package/lib/160/storage/framework/testing/.gitignore +2 -2
- package/lib/160/storage/framework/views/.gitignore +2 -2
- package/lib/160/storage/logs/.gitignore +2 -2
- package/lib/160/tests/CreatesApplication.php +22 -22
- package/lib/160/tests/Feature/ExampleTest.php +21 -21
- package/lib/160/tests/TestCase.php +10 -10
- package/lib/160/tests/Unit/ExampleTest.php +18 -18
- package/lib/160/vite.config.js +26 -26
- package/lib/161/resources/js/components/pages/About.vue +4 -4
- package/lib/161/resources/js/components/pages/Error.vue +4 -4
- package/lib/161/resources/js/components/pages/Home.vue +20 -20
- package/lib/161/resources/js/components/templates/App.vue +85 -85
- package/lib/161/resources/js/mainStore.js +19 -19
- package/lib/161/resources/js/router.js +39 -39
- package/lib/161/resources/views/layouts/app.blade.php +13 -13
- package/lib/161/storage/framework/views/2e9971bec8a529e679b1529e9584647f.php +13 -13
- package/lib/162/resources/js/components/pages/About.vue +4 -4
- package/lib/162/resources/js/components/pages/Error.vue +4 -4
- package/lib/162/resources/js/components/pages/Home.vue +20 -20
- package/lib/162/resources/js/components/templates/App.vue +85 -85
- package/lib/162/resources/js/mainStore.js +19 -19
- package/lib/162/resources/js/router.js +39 -39
- package/lib/162/resources/views/layouts/app.blade.php +13 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -68,15 +68,15 @@ https://windows.php.net/downloads/releases/archives/php-8.0.9-Win32-vs16-x64.zip
|
|
|
68
68
|
# Reference Table (❗ PHP Version is Important ❗)
|
|
69
69
|
|
|
70
70
|
### Mono Repo
|
|
71
|
-
> frontend and backend are
|
|
71
|
+
> frontend and backend are in a single folder, united via configuration.
|
|
72
72
|
|
|
73
|
-
| Version & Type
|
|
74
|
-
|
|
|
75
|
-
| `vue 2 - laravel 8`
|
|
76
|
-
| `vue 3 - laravel 8`
|
|
77
|
-
| `vue 3 - laravel 9`
|
|
78
|
-
| `vue 3 - laravel 10`
|
|
79
|
-
| `vue 3 - laravel 11`
|
|
73
|
+
| Version & Type | Features | Prerequisite |
|
|
74
|
+
| :--------------------| :-------------------------------------------------------| :-------------------------------|
|
|
75
|
+
| `vue 2 - laravel 8` | runs in `webpack`, Development Ready | php `v7.4` && node `v18^` |
|
|
76
|
+
| `vue 3 - laravel 8` | runs in `webpack`, Development Ready | php `v7.4` && node `v18^` |
|
|
77
|
+
| `vue 3 - laravel 9` | runs in `vite`, Development Ready, Developer Friendly | php `v8.0` && node `v18^` |
|
|
78
|
+
| `vue 3 - laravel 10` | runs in `vite`, Development Ready, Developer Friendly | php `v8.1` && node `v18^` |
|
|
79
|
+
| `vue 3 - laravel 11` | runs in `vite`, Development Ready, Developer Friendly | php `v8.2 - v8.3` && node `v18^`|
|
|
80
80
|
|
|
81
81
|
```
|
|
82
82
|
/
|
|
@@ -184,7 +184,7 @@ Have an idea? Found a bug? See [how to contribute](https://github.com/Shuashuaa/
|
|
|
184
184
|
|
|
185
185
|
## Contributors
|
|
186
186
|
Thanks to:
|
|
187
|
-
- [
|
|
187
|
+
- [RGienz](https://github.com/RGienz) for contributing and maintaining [vuejs3 - laravel9](#vue-3---laravel-9) 👏
|
|
188
188
|
<!-- <br>
|
|
189
189
|
|
|
190
190
|
## Changelog
|
package/dist/commands.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=commands.d.ts.map
|
package/dist/commands.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const path_1 = __importDefault(require("path"));
|
|
16
|
-
const fs_1 = __importDefault(require("fs"));
|
|
17
|
-
const utils_1 = require("./utils");
|
|
18
|
-
const prompts_1 = require("./prompts");
|
|
19
|
-
const messages_1 = require("./messages");
|
|
20
|
-
const count_1 = require("./count");
|
|
21
|
-
const yargs_1 = __importDefault(require("yargs"));
|
|
22
|
-
function createProject() {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const argv = yargs_1.default.argv;
|
|
25
|
-
let projectName = process.argv[2];
|
|
26
|
-
if (!projectName) {
|
|
27
|
-
projectName = yield (0, prompts_1.getProjectName)();
|
|
28
|
-
}
|
|
29
|
-
const boilerplateChoice = yield (0, prompts_1.getBoilerplateChoice)();
|
|
30
|
-
const templatePath = getTemplatePath(boilerplateChoice);
|
|
31
|
-
if (!templatePath) {
|
|
32
|
-
(0, messages_1.errorMessage)(new Error('\n✖ Invalid boilerplate choice.'));
|
|
33
|
-
(0, prompts_1.closeReadline)();
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const sourcePath = path_1.default.join(__dirname, '../lib', templatePath);
|
|
37
|
-
const destinationPath = path_1.default.join(process.cwd(), projectName);
|
|
38
|
-
try {
|
|
39
|
-
yield fs_1.default.promises.mkdir(destinationPath);
|
|
40
|
-
yield (0, utils_1.copyProjectStructure)(sourcePath, destinationPath);
|
|
41
|
-
(0, count_1.getCount)(sourcePath, templatePath);
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
(0, messages_1.errorMessage)(error);
|
|
45
|
-
}
|
|
46
|
-
finally {
|
|
47
|
-
(0, prompts_1.closeReadline)();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function getTemplatePath(boilerplateChoice) {
|
|
52
|
-
switch (boilerplateChoice) {
|
|
53
|
-
case 1:
|
|
54
|
-
return '158';
|
|
55
|
-
case 2:
|
|
56
|
-
return '159';
|
|
57
|
-
case 3:
|
|
58
|
-
return '160';
|
|
59
|
-
case 4:
|
|
60
|
-
return '161';
|
|
61
|
-
case 5:
|
|
62
|
-
return '162';
|
|
63
|
-
default:
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
createProject();
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const path_1 = __importDefault(require("path"));
|
|
16
|
+
const fs_1 = __importDefault(require("fs"));
|
|
17
|
+
const utils_1 = require("./utils");
|
|
18
|
+
const prompts_1 = require("./prompts");
|
|
19
|
+
const messages_1 = require("./messages");
|
|
20
|
+
const count_1 = require("./count");
|
|
21
|
+
const yargs_1 = __importDefault(require("yargs"));
|
|
22
|
+
function createProject() {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const argv = yargs_1.default.argv;
|
|
25
|
+
let projectName = process.argv[2];
|
|
26
|
+
if (!projectName) {
|
|
27
|
+
projectName = yield (0, prompts_1.getProjectName)();
|
|
28
|
+
}
|
|
29
|
+
const boilerplateChoice = yield (0, prompts_1.getBoilerplateChoice)();
|
|
30
|
+
const templatePath = getTemplatePath(boilerplateChoice);
|
|
31
|
+
if (!templatePath) {
|
|
32
|
+
(0, messages_1.errorMessage)(new Error('\n✖ Invalid boilerplate choice.'));
|
|
33
|
+
(0, prompts_1.closeReadline)();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const sourcePath = path_1.default.join(__dirname, '../lib', templatePath);
|
|
37
|
+
const destinationPath = path_1.default.join(process.cwd(), projectName);
|
|
38
|
+
try {
|
|
39
|
+
yield fs_1.default.promises.mkdir(destinationPath);
|
|
40
|
+
yield (0, utils_1.copyProjectStructure)(sourcePath, destinationPath);
|
|
41
|
+
(0, count_1.getCount)(sourcePath, templatePath);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
(0, messages_1.errorMessage)(error);
|
|
45
|
+
}
|
|
46
|
+
finally {
|
|
47
|
+
(0, prompts_1.closeReadline)();
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function getTemplatePath(boilerplateChoice) {
|
|
52
|
+
switch (boilerplateChoice) {
|
|
53
|
+
case 1:
|
|
54
|
+
return '158';
|
|
55
|
+
case 2:
|
|
56
|
+
return '159';
|
|
57
|
+
case 3:
|
|
58
|
+
return '160';
|
|
59
|
+
case 4:
|
|
60
|
+
return '161';
|
|
61
|
+
case 5:
|
|
62
|
+
return '162';
|
|
63
|
+
default:
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
createProject();
|
package/dist/count.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function countItems(dirPath: string): Promise<number>;
|
|
2
|
-
export declare function getCount(sourcePath: string, templatePath: string): void;
|
|
1
|
+
export declare function countItems(dirPath: string): Promise<number>;
|
|
2
|
+
export declare function getCount(sourcePath: string, templatePath: string): void;
|
|
3
3
|
//# sourceMappingURL=count.d.ts.map
|
package/dist/count.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.countItems = countItems;
|
|
13
|
-
exports.getCount = getCount;
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const path = require('path');
|
|
16
|
-
const progress_1 = require("./progress");
|
|
17
|
-
function countItems(dirPath) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
let count = 0;
|
|
20
|
-
const files = yield fs.promises.readdir(dirPath);
|
|
21
|
-
for (const file of files) {
|
|
22
|
-
const filePath = path.join(dirPath, file);
|
|
23
|
-
const stat = yield fs.promises.stat(filePath);
|
|
24
|
-
if (stat.isDirectory()) {
|
|
25
|
-
count += yield countItems(filePath); // Recursive
|
|
26
|
-
}
|
|
27
|
-
else if (stat.isFile()) {
|
|
28
|
-
count++;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return count;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
// const sourcePath = path.join(__dirname, '../templates', '158');
|
|
35
|
-
function getCount(sourcePath, templatePath) {
|
|
36
|
-
countItems(sourcePath)
|
|
37
|
-
.then((count) => {
|
|
38
|
-
// console.log(`There are ${count} items (files and folders) in the folder.`);
|
|
39
|
-
(0, progress_1.Progress)(count, templatePath);
|
|
40
|
-
})
|
|
41
|
-
.catch((err) => {
|
|
42
|
-
console.error('Error:', err);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.countItems = countItems;
|
|
13
|
+
exports.getCount = getCount;
|
|
14
|
+
const fs = require('fs');
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const progress_1 = require("./progress");
|
|
17
|
+
function countItems(dirPath) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
let count = 0;
|
|
20
|
+
const files = yield fs.promises.readdir(dirPath);
|
|
21
|
+
for (const file of files) {
|
|
22
|
+
const filePath = path.join(dirPath, file);
|
|
23
|
+
const stat = yield fs.promises.stat(filePath);
|
|
24
|
+
if (stat.isDirectory()) {
|
|
25
|
+
count += yield countItems(filePath); // Recursive
|
|
26
|
+
}
|
|
27
|
+
else if (stat.isFile()) {
|
|
28
|
+
count++;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return count;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
// const sourcePath = path.join(__dirname, '../templates', '158');
|
|
35
|
+
function getCount(sourcePath, templatePath) {
|
|
36
|
+
countItems(sourcePath)
|
|
37
|
+
.then((count) => {
|
|
38
|
+
// console.log(`There are ${count} items (files and folders) in the folder.`);
|
|
39
|
+
(0, progress_1.Progress)(count, templatePath);
|
|
40
|
+
})
|
|
41
|
+
.catch((err) => {
|
|
42
|
+
console.error('Error:', err);
|
|
43
|
+
});
|
|
44
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import './commands';
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import './commands';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
require("./commands");
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
require("./commands");
|
package/dist/messages.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function successMessage(sourceVal: string): Promise<void>;
|
|
2
|
-
export declare function errorMessage(error: Error): void;
|
|
1
|
+
export declare function successMessage(sourceVal: string): Promise<void>;
|
|
2
|
+
export declare function errorMessage(error: Error): void;
|
|
3
3
|
//# sourceMappingURL=messages.d.ts.map
|
package/dist/messages.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.successMessage = successMessage;
|
|
16
|
-
exports.errorMessage = errorMessage;
|
|
17
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
18
|
-
function successMessage(sourceVal) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
// console.log(sourceVal)
|
|
21
|
-
let tempVal = '';
|
|
22
|
-
if (sourceVal == '158') {
|
|
23
|
-
tempVal = 'Vue2-Laravel8';
|
|
24
|
-
}
|
|
25
|
-
else if (sourceVal == '159') {
|
|
26
|
-
tempVal = 'Vue3-Laravel8';
|
|
27
|
-
}
|
|
28
|
-
else if (sourceVal == '160') {
|
|
29
|
-
tempVal = 'Vue3-Laravel9';
|
|
30
|
-
}
|
|
31
|
-
else if (sourceVal == '161') {
|
|
32
|
-
tempVal = 'Vue3-Laravel10';
|
|
33
|
-
}
|
|
34
|
-
else if (sourceVal == '162') {
|
|
35
|
-
tempVal = 'Vue3-Laravel11';
|
|
36
|
-
}
|
|
37
|
-
console.log(chalk_1.default.green(`\n✔ ${tempVal} boilerplate is successfully downloaded!. \n`));
|
|
38
|
-
setTimeout(() => {
|
|
39
|
-
console.log(chalk_1.default.yellow.bold(" * ˜"));
|
|
40
|
-
console.log(chalk_1.default.cyan.bold(" ˜ |"));
|
|
41
|
-
console.log(chalk_1.default.red.bold(" () .-.,='``'=. - o -"));
|
|
42
|
-
console.log(chalk_1.default.yellow.bold(" '=/_ 〵 |"));
|
|
43
|
-
console.log(chalk_1.default.cyanBright.bold(" * | '=._ )"));
|
|
44
|
-
console.log(chalk_1.default.yellow.bold(" \\ `=../`, '"));
|
|
45
|
-
console.log(chalk_1.default.redBright.bold(" . '=.__.=' `=' *"));
|
|
46
|
-
console.log(chalk_1.default.yellow.bold("˜ +"));
|
|
47
|
-
console.log(chalk_1.default.cyanBright.bold(" O * ' .\n"));
|
|
48
|
-
}, 300);
|
|
49
|
-
setTimeout(() => {
|
|
50
|
-
console.log('Well done 🎉🎉,', chalk_1.default.green('These Boilerplates are created with coffee & passion by', chalk_1.default.green.
|
|
51
|
-
}, 800);
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
if (sourceVal == "158" || sourceVal == "159") {
|
|
54
|
-
console.log(chalk_1.default.bgBlack('Locate Project:'), chalk_1.default.cyanBright('cd project_name,'));
|
|
55
|
-
console.log(chalk_1.default.bgBlack('Install Dependencies:'), chalk_1.default.cyanBright('npm install') + ',', chalk_1.default.cyanBright('composer install') + ',', chalk_1.default.cyanBright('\ncopy .env.example .env'), 'and', chalk_1.default.cyanBright('php artisan key:generate'));
|
|
56
|
-
console.log(chalk_1.default.bgBlack('Run Project:'), chalk_1.default.cyanBright('npm run artisan-watch') + '.\n');
|
|
57
|
-
}
|
|
58
|
-
else if (sourceVal == "160" || sourceVal == "161" || sourceVal == "162") {
|
|
59
|
-
console.log(chalk_1.default.bgBlack('Locate Project:'), chalk_1.default.cyanBright('cd project_name,'));
|
|
60
|
-
console.log(chalk_1.default.bgBlack('Install Dependencies:'), chalk_1.default.cyanBright('yarn install') + ',', chalk_1.default.cyanBright('composer install') + ',', chalk_1.default.cyanBright('\ncopy .env.example .env'), 'and', chalk_1.default.cyanBright('php artisan key:generate'));
|
|
61
|
-
console.log(chalk_1.default.bgBlack('Run Project:'), chalk_1.default.cyanBright('npm run artisan-dev') + '.\n');
|
|
62
|
-
}
|
|
63
|
-
console.log(chalk_1.default.bgBlack('Visit:'), chalk_1.default.bold('http://127.0.0.1:8000\n'));
|
|
64
|
-
}, 500);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function errorMessage(error) {
|
|
68
|
-
console.error(chalk_1.default.red.inverse(`\n✖ Error creating project. ${error.message}`));
|
|
69
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.successMessage = successMessage;
|
|
16
|
+
exports.errorMessage = errorMessage;
|
|
17
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
18
|
+
function successMessage(sourceVal) {
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
// console.log(sourceVal)
|
|
21
|
+
let tempVal = '';
|
|
22
|
+
if (sourceVal == '158') {
|
|
23
|
+
tempVal = 'Vue2-Laravel8';
|
|
24
|
+
}
|
|
25
|
+
else if (sourceVal == '159') {
|
|
26
|
+
tempVal = 'Vue3-Laravel8';
|
|
27
|
+
}
|
|
28
|
+
else if (sourceVal == '160') {
|
|
29
|
+
tempVal = 'Vue3-Laravel9';
|
|
30
|
+
}
|
|
31
|
+
else if (sourceVal == '161') {
|
|
32
|
+
tempVal = 'Vue3-Laravel10';
|
|
33
|
+
}
|
|
34
|
+
else if (sourceVal == '162') {
|
|
35
|
+
tempVal = 'Vue3-Laravel11';
|
|
36
|
+
}
|
|
37
|
+
console.log(chalk_1.default.green(`\n✔ ${tempVal} boilerplate is successfully downloaded!. \n`));
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
console.log(chalk_1.default.yellow.bold(" * ˜"));
|
|
40
|
+
console.log(chalk_1.default.cyan.bold(" ˜ |"));
|
|
41
|
+
console.log(chalk_1.default.red.bold(" () .-.,='``'=. - o -"));
|
|
42
|
+
console.log(chalk_1.default.yellow.bold(" '=/_ 〵 |"));
|
|
43
|
+
console.log(chalk_1.default.cyanBright.bold(" * | '=._ )"));
|
|
44
|
+
console.log(chalk_1.default.yellow.bold(" \\ `=../`, '"));
|
|
45
|
+
console.log(chalk_1.default.redBright.bold(" . '=.__.=' `=' *"));
|
|
46
|
+
console.log(chalk_1.default.yellow.bold("˜ +"));
|
|
47
|
+
console.log(chalk_1.default.cyanBright.bold(" O * ' .\n"));
|
|
48
|
+
}, 300);
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
console.log('Well done 🎉🎉,', chalk_1.default.green('These Boilerplates are created with coffee & passion by', chalk_1.default.green.underline('Joshua Tania'), 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/create-v-kit-spa\n')));
|
|
51
|
+
}, 800);
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
if (sourceVal == "158" || sourceVal == "159") {
|
|
54
|
+
console.log(chalk_1.default.bgBlack('Locate Project:'), chalk_1.default.cyanBright('cd project_name,'));
|
|
55
|
+
console.log(chalk_1.default.bgBlack('Install Dependencies:'), chalk_1.default.cyanBright('npm install') + ',', chalk_1.default.cyanBright('composer install') + ',', chalk_1.default.cyanBright('\ncopy .env.example .env'), 'and', chalk_1.default.cyanBright('php artisan key:generate'));
|
|
56
|
+
console.log(chalk_1.default.bgBlack('Run Project:'), chalk_1.default.cyanBright('npm run artisan-watch') + '.\n');
|
|
57
|
+
}
|
|
58
|
+
else if (sourceVal == "160" || sourceVal == "161" || sourceVal == "162") {
|
|
59
|
+
console.log(chalk_1.default.bgBlack('Locate Project:'), chalk_1.default.cyanBright('cd project_name,'));
|
|
60
|
+
console.log(chalk_1.default.bgBlack('Install Dependencies:'), chalk_1.default.cyanBright('yarn install') + ',', chalk_1.default.cyanBright('composer install') + ',', chalk_1.default.cyanBright('\ncopy .env.example .env'), 'and', chalk_1.default.cyanBright('php artisan key:generate'));
|
|
61
|
+
console.log(chalk_1.default.bgBlack('Run Project:'), chalk_1.default.cyanBright('npm run artisan-dev') + '.\n');
|
|
62
|
+
}
|
|
63
|
+
console.log(chalk_1.default.bgBlack('Visit:'), chalk_1.default.bold('http://127.0.0.1:8000\n'));
|
|
64
|
+
}, 500);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function errorMessage(error) {
|
|
68
|
+
console.error(chalk_1.default.red.inverse(`\n✖ Error creating project. ${error.message}`));
|
|
69
|
+
}
|
package/dist/progress.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function Progress(countVal: number, sourceVal: string): Promise<void>;
|
|
1
|
+
export declare function Progress(countVal: number, sourceVal: string): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=progress.d.ts.map
|
package/dist/progress.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Progress = Progress;
|
|
13
|
-
const _progress = require('cli-progress');
|
|
14
|
-
const colors = require('ansi-colors');
|
|
15
|
-
const messages_1 = require("./messages");
|
|
16
|
-
function Progress(countVal, sourceVal) {
|
|
17
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
console.log('\n');
|
|
19
|
-
const b1 = new _progress.SingleBar({
|
|
20
|
-
format: 'Downloading... |' + colors.cyan('{bar}') + '| {percentage}% | {value}/{total} Files | ETA: {eta}s',
|
|
21
|
-
barCompleteChar: '\u2588',
|
|
22
|
-
barIncompleteChar: '\u2591',
|
|
23
|
-
hideCursor: true
|
|
24
|
-
});
|
|
25
|
-
b1.start(countVal, 0);
|
|
26
|
-
let value = 0;
|
|
27
|
-
const timer = setInterval(function () {
|
|
28
|
-
value++;
|
|
29
|
-
b1.update(value);
|
|
30
|
-
if (value >= b1.getTotal()) {
|
|
31
|
-
clearInterval(timer);
|
|
32
|
-
b1.stop();
|
|
33
|
-
(0, messages_1.successMessage)(sourceVal);
|
|
34
|
-
}
|
|
35
|
-
}, 20);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Progress = Progress;
|
|
13
|
+
const _progress = require('cli-progress');
|
|
14
|
+
const colors = require('ansi-colors');
|
|
15
|
+
const messages_1 = require("./messages");
|
|
16
|
+
function Progress(countVal, sourceVal) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
console.log('\n');
|
|
19
|
+
const b1 = new _progress.SingleBar({
|
|
20
|
+
format: 'Downloading... |' + colors.cyan('{bar}') + '| {percentage}% | {value}/{total} Files | ETA: {eta}s',
|
|
21
|
+
barCompleteChar: '\u2588',
|
|
22
|
+
barIncompleteChar: '\u2591',
|
|
23
|
+
hideCursor: true
|
|
24
|
+
});
|
|
25
|
+
b1.start(countVal, 0);
|
|
26
|
+
let value = 0;
|
|
27
|
+
const timer = setInterval(function () {
|
|
28
|
+
value++;
|
|
29
|
+
b1.update(value);
|
|
30
|
+
if (value >= b1.getTotal()) {
|
|
31
|
+
clearInterval(timer);
|
|
32
|
+
b1.stop();
|
|
33
|
+
(0, messages_1.successMessage)(sourceVal);
|
|
34
|
+
}
|
|
35
|
+
}, 20);
|
|
36
|
+
});
|
|
37
|
+
}
|
package/dist/prompts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getProjectName(): Promise<string>;
|
|
2
|
-
export declare function getBoilerplateChoice(): Promise<number>;
|
|
3
|
-
export declare function closeReadline(): void;
|
|
1
|
+
export declare function getProjectName(): Promise<string>;
|
|
2
|
+
export declare function getBoilerplateChoice(): Promise<number>;
|
|
3
|
+
export declare function closeReadline(): void;
|
|
4
4
|
//# sourceMappingURL=prompts.d.ts.map
|