@hybridly/vite 0.1.0-alpha.9 → 0.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/dist/index.cjs +2 -13
- package/dist/index.mjs +2 -13
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -225,9 +225,10 @@ async function writeDefinitions(options, routing) {
|
|
|
225
225
|
}
|
|
226
226
|
function generateDefinitions() {
|
|
227
227
|
return `
|
|
228
|
+
/* eslint-disable */
|
|
229
|
+
/* prettier-ignore */
|
|
228
230
|
// This file has been automatically generated by Hybridly
|
|
229
231
|
// Modifications will be discarded
|
|
230
|
-
// It is recommended to add it in your .gitignore
|
|
231
232
|
|
|
232
233
|
declare module 'hybridly' {
|
|
233
234
|
export interface GlobalRouteCollection {
|
|
@@ -533,17 +534,6 @@ function generateTsConfig(options, config) {
|
|
|
533
534
|
};
|
|
534
535
|
write(JSON.stringify(tsconfig, null, 2), "tsconfig.json");
|
|
535
536
|
}
|
|
536
|
-
function generateVueShims(options) {
|
|
537
|
-
if (options.shims === false) {
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
const shims = `declare module '*.vue' {
|
|
541
|
-
import type { DefineComponent } from 'vue'
|
|
542
|
-
const component: DefineComponent<{}, {}, any>
|
|
543
|
-
export default component
|
|
544
|
-
}`;
|
|
545
|
-
write(shims, "vue-shims.d.ts");
|
|
546
|
-
}
|
|
547
537
|
function generateLaravelIdeaHelper(config) {
|
|
548
538
|
const ideJson = {
|
|
549
539
|
$schema: "https://laravel-ide.com/schema/laravel-ide-v2.json",
|
|
@@ -578,7 +568,6 @@ function write(data, filename) {
|
|
|
578
568
|
async function plugin(options = {}) {
|
|
579
569
|
const config$1 = await config.loadHybridlyConfig();
|
|
580
570
|
generateTsConfig(options, config$1);
|
|
581
|
-
generateVueShims(options);
|
|
582
571
|
generateLaravelIdeaHelper(config$1);
|
|
583
572
|
return [
|
|
584
573
|
initialize(options, config$1),
|
package/dist/index.mjs
CHANGED
|
@@ -207,9 +207,10 @@ async function writeDefinitions(options, routing) {
|
|
|
207
207
|
}
|
|
208
208
|
function generateDefinitions() {
|
|
209
209
|
return `
|
|
210
|
+
/* eslint-disable */
|
|
211
|
+
/* prettier-ignore */
|
|
210
212
|
// This file has been automatically generated by Hybridly
|
|
211
213
|
// Modifications will be discarded
|
|
212
|
-
// It is recommended to add it in your .gitignore
|
|
213
214
|
|
|
214
215
|
declare module 'hybridly' {
|
|
215
216
|
export interface GlobalRouteCollection {
|
|
@@ -515,17 +516,6 @@ function generateTsConfig(options, config) {
|
|
|
515
516
|
};
|
|
516
517
|
write(JSON.stringify(tsconfig, null, 2), "tsconfig.json");
|
|
517
518
|
}
|
|
518
|
-
function generateVueShims(options) {
|
|
519
|
-
if (options.shims === false) {
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
const shims = `declare module '*.vue' {
|
|
523
|
-
import type { DefineComponent } from 'vue'
|
|
524
|
-
const component: DefineComponent<{}, {}, any>
|
|
525
|
-
export default component
|
|
526
|
-
}`;
|
|
527
|
-
write(shims, "vue-shims.d.ts");
|
|
528
|
-
}
|
|
529
519
|
function generateLaravelIdeaHelper(config) {
|
|
530
520
|
const ideJson = {
|
|
531
521
|
$schema: "https://laravel-ide.com/schema/laravel-ide-v2.json",
|
|
@@ -560,7 +550,6 @@ function write(data, filename) {
|
|
|
560
550
|
async function plugin(options = {}) {
|
|
561
551
|
const config = await loadHybridlyConfig();
|
|
562
552
|
generateTsConfig(options, config);
|
|
563
|
-
generateVueShims(options);
|
|
564
553
|
generateLaravelIdeaHelper(config);
|
|
565
554
|
return [
|
|
566
555
|
initialize(options, config),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vite",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Vite plugin for Hybridly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hybridly",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"unplugin-icons": "^0.15.3",
|
|
49
49
|
"unplugin-vue-components": "^0.24.1",
|
|
50
50
|
"vite-plugin-run": "^0.4.0",
|
|
51
|
-
"@hybridly/core": "0.1.0
|
|
51
|
+
"@hybridly/core": "0.1.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@iconify/json": "^2.2.37",
|