diff --git a/dist/data/npm/viltDsJetstreamDeps.d.ts b/dist/data/npm/viltDsJetstreamDeps.d.ts index bacacc26..5317b234 100644 --- a/dist/data/npm/viltDsJetstreamDeps.d.ts +++ b/dist/data/npm/viltDsJetstreamDeps.d.ts @@ -1,3 +1,3 @@ -export type ViltDsJetstreamDependency = 'typescript' | '@types/node' | '@inertiajs/progress' | '@types/ziggy-js' | 'ziggy-js' | '@obewds/vueventus' | '@headlessui/vue' | '@tailwindcss/aspect-ratio' | '@headlessui/tailwindcss' | 'tailwind-scrollbar' | '@types/gsap' | 'gsap'; +export type ViltDsJetstreamDependency = 'typescript' | '@types/node' | '@inertiajs/progress' | '@types/ziggy-js' | 'ziggy-js' | '@obewds/vueventus' | '@headlessui/vue' | '@tailwindcss/aspect-ratio' | '@headlessui/tailwindcss' | 'tailwind-scrollbar' | 'gsap'; declare const _default: ViltDsJetstreamDependency[]; export default _default; diff --git a/dist/data/npm/viltDsJetstreamDeps.js b/dist/data/npm/viltDsJetstreamDeps.js index c3ba02f3..06c38670 100644 --- a/dist/data/npm/viltDsJetstreamDeps.js +++ b/dist/data/npm/viltDsJetstreamDeps.js @@ -10,7 +10,6 @@ export default [ '@tailwindcss/aspect-ratio', '@headlessui/tailwindcss', 'tailwind-scrollbar', - '@types/gsap', 'gsap', ]; //# sourceMappingURL=viltDsJetstreamDeps.js.map \ No newline at end of file diff --git a/dist/data/npm/viltDsJetstreamDeps.js.map b/dist/data/npm/viltDsJetstreamDeps.js.map index c63fb902..1a6977fe 100644 --- a/dist/data/npm/viltDsJetstreamDeps.js.map +++ b/dist/data/npm/viltDsJetstreamDeps.js.map @@ -1 +1 @@ -{"version":3,"file":"viltDsJetstreamDeps.js","sourceRoot":"","sources":["../../../src/data/npm/viltDsJetstreamDeps.ts"],"names":[],"mappings":"AAAA,wCAAwC;AAexC,eAAe;IACX,YAAY;IACZ,aAAa;IACb,qBAAqB;IACrB,iBAAiB;IACjB,UAAU;IACV,mBAAmB;IACnB,iBAAiB;IACjB,2BAA2B;IAC3B,yBAAyB;IACzB,oBAAoB;IACpB,aAAa;IACb,MAAM;CAC2B,CAAA"} \ No newline at end of file +{"version":3,"file":"viltDsJetstreamDeps.js","sourceRoot":"","sources":["../../../src/data/npm/viltDsJetstreamDeps.ts"],"names":[],"mappings":"AAAA,wCAAwC;AAcxC,eAAe;IACX,YAAY;IACZ,aAAa;IACb,qBAAqB;IACrB,iBAAiB;IACjB,UAAU;IACV,mBAAmB;IACnB,iBAAiB;IACjB,2BAA2B;IAC3B,yBAAyB;IACzB,oBAAoB;IACpB,MAAM;CAC2B,CAAA"} \ No newline at end of file diff --git a/dist/data/typescript/viltDsTypescriptConfig.d.ts b/dist/data/typescript/viltDsTypescriptConfig.d.ts new file mode 100644 index 00000000..cd28b81f --- /dev/null +++ b/dist/data/typescript/viltDsTypescriptConfig.d.ts @@ -0,0 +1,35 @@ +declare const _default: { + compilerOptions: { + target: string; + module: string; + strict: boolean; + noImplicitThis: boolean; + noEmit: boolean; + noUnusedParameters: boolean; + noFallthroughCasesInSwitch: boolean; + jsx: string; + moduleResolution: string; + skipLibCheck: boolean; + esModuleInterop: boolean; + isolatedModules: boolean; + resolveJsonModule: boolean; + useDefineForClassFields: boolean; + forceConsistentCasingInFileNames: boolean; + importHelpers: boolean; + experimentalDecorators: boolean; + allowImportingTsExtensions: boolean; + allowJs: boolean; + allowSyntheticDefaultImports: boolean; + sourceMap: boolean; + baseUrl: string; + types: string[]; + paths: { + "@/*": string[]; + }; + lib: string[]; + }; + typeRoots: string[]; + include: string[]; + exclude: string[]; +}; +export default _default; diff --git a/dist/generators/jetstream/generateJetstreamTypescriptConfig.js b/dist/data/typescript/viltDsTypescriptConfig.js similarity index 69% rename from dist/generators/jetstream/generateJetstreamTypescriptConfig.js rename to dist/data/typescript/viltDsTypescriptConfig.js index 539833eb..e0f76d62 100644 --- a/dist/generators/jetstream/generateJetstreamTypescriptConfig.js +++ b/dist/data/typescript/viltDsTypescriptConfig.js @@ -1,20 +1,19 @@ -// ./src/generators/jetstream/generateJetstreamTypescriptConfig.ts -export default function () { - return `{ +// ./src/data/typescript/viltDsTypescriptConfig.ts +export default { "compilerOptions": { // A few notes: // - Vue 3 supports ES2016+ // - For Vite, the actual compilation target is determined by the - // ` + "`build.target`" + ` option in the Vite config. - // So don't change the ` + "`target`" + ` field here. It has to be - // at least ` + "`ES2020`" + ` for dynamic ` + "`import()`" + `s and ` + "`import.meta`" + ` to work correctly. - // - If you are not using Vite, feel free to override the ` + "`target`" + ` field. + // `build.target` option in the Vite config. + // So don't change the `target` field here. It has to be + // at least `ES2020` for dynamic `import()`s and `import.meta` to work correctly. + // - If you are not using Vite, feel free to override the `target` field. "target": "ESNext", "module": "ESNext", "strict": true, - // ` + '"noImplicitThis": true' + ` is part of ` + "`strict`" + ` - // Added again here in case some users decide to disable ` + "`strict`" + `. - // This enables stricter inference for data properties on ` + "`this`" + `. + // "noImplicitThis": true is part of `strict` + // Added again here in case some users decide to disable `strict`. + // This enables stricter inference for data properties on `this`. "noImplicitThis": true, "noEmit": true, // "noUnusedLocals": true, @@ -32,12 +31,12 @@ export default function () { "resolveJsonModule": true, "useDefineForClassFields": true, "forceConsistentCasingInFileNames": true, - "importHelpers": true, // ? - "experimentalDecorators": true, // ? + "importHelpers": true, + "experimentalDecorators": true, "allowImportingTsExtensions": true, - "allowJs": true, // ? - "allowSyntheticDefaultImports": true, // ? - "sourceMap": true, // ? + "allowJs": true, + "allowSyntheticDefaultImports": true, + "sourceMap": true, "baseUrl": ".", "types": [ "vite/client", @@ -71,7 +70,5 @@ export default function () { "node_modules", "vendor" ], -} -`; -} -//# sourceMappingURL=generateJetstreamTypescriptConfig.js.map \ No newline at end of file +}; +//# sourceMappingURL=viltDsTypescriptConfig.js.map \ No newline at end of file diff --git a/dist/data/typescript/viltDsTypescriptConfig.js.map b/dist/data/typescript/viltDsTypescriptConfig.js.map new file mode 100644 index 00000000..be5a9dce --- /dev/null +++ b/dist/data/typescript/viltDsTypescriptConfig.js.map @@ -0,0 +1 @@ +{"version":3,"file":"viltDsTypescriptConfig.js","sourceRoot":"","sources":["../../../src/data/typescript/viltDsTypescriptConfig.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,eAAe;IACX,iBAAiB,EAAE;QACf,eAAe;QACf,2BAA2B;QAC3B,iEAAiE;QACjE,8CAA8C;QAC9C,0DAA0D;QAC1D,mFAAmF;QACnF,yEAAyE;QACzE,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,IAAI;QACd,6CAA6C;QAC7C,kEAAkE;QAClE,iEAAiE;QACjE,gBAAgB,EAAE,IAAI;QACtB,QAAQ,EAAE,IAAI;QACd,0BAA0B;QAC1B,oBAAoB,EAAE,IAAI;QAC1B,4BAA4B,EAAE,IAAI;QAClC,2BAA2B;QAC3B,KAAK,EAAE,UAAU;QACjB,kBAAkB,EAAE,MAAM;QAC1B,mDAAmD;QACnD,cAAc,EAAE,IAAI;QACpB,cAAc;QACd,iBAAiB,EAAE,IAAI;QACvB,mBAAmB;QACnB,iBAAiB,EAAE,IAAI;QACvB,mBAAmB,EAAE,IAAI;QACzB,yBAAyB,EAAE,IAAI;QAC/B,kCAAkC,EAAE,IAAI;QACxC,eAAe,EAAE,IAAI;QACrB,wBAAwB,EAAE,IAAI;QAC9B,4BAA4B,EAAE,IAAI;QAClC,SAAS,EAAE,IAAI;QACf,8BAA8B,EAAE,IAAI;QACpC,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,GAAG;QACd,OAAO,EAAE;YACL,aAAa;YACb,MAAM;YACN,UAAU;YACV,MAAM;SACT;QACD,OAAO,EAAE;YACL,KAAK,EAAE,CAAC,aAAa,CAAC;SACzB;QACD,KAAK,EAAE;YACH,QAAQ;YACR,KAAK;YACL,cAAc;YACd,YAAY;SACf;KACJ;IACD,WAAW,EAAE;QACT,cAAc;QACd,qBAAqB;QACrB,cAAc;KACjB;IACD,SAAS,EAAE;QACP,sBAAsB;QACtB,wBAAwB;QACxB,oBAAoB;QACpB,oCAAoC;KACvC;IACD,SAAS,EAAE;QACP,WAAW;QACX,cAAc;QACd,QAAQ;KACX;CACJ,CAAA"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateGitignore.d.ts b/dist/generators/jetstream/generateGitignore.d.ts new file mode 100644 index 00000000..1ec893bc --- /dev/null +++ b/dist/generators/jetstream/generateGitignore.d.ts @@ -0,0 +1 @@ +export default function (installedGitignoreText: string): string; diff --git a/dist/generators/jetstream/generateJetstreamGitignore.js b/dist/generators/jetstream/generateGitignore.js similarity index 54% rename from dist/generators/jetstream/generateJetstreamGitignore.js rename to dist/generators/jetstream/generateGitignore.js index 3df87a75..0f7456c7 100644 --- a/dist/generators/jetstream/generateJetstreamGitignore.js +++ b/dist/generators/jetstream/generateGitignore.js @@ -1,11 +1,11 @@ -// ./src/generators/jetstream/generateJetstreamGitignore.ts +// ./src/generators/jetstream/generateGitignore.ts import developer from '../../data/gitignore/developer.js'; import mac from '../../data/gitignore/mac.js'; import windows from '../../data/gitignore/windows.js'; -export default function (jetstreamGitignoreText) { +export default function (installedGitignoreText) { return `# ./.gitignore -${jetstreamGitignoreText} +${installedGitignoreText} ${developer} @@ -14,4 +14,4 @@ ${mac} ${windows} `; } -//# sourceMappingURL=generateJetstreamGitignore.js.map \ No newline at end of file +//# sourceMappingURL=generateGitignore.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/generateGitignore.js.map b/dist/generators/jetstream/generateGitignore.js.map new file mode 100644 index 00000000..2d5e22f4 --- /dev/null +++ b/dist/generators/jetstream/generateGitignore.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generateGitignore.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateGitignore.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,SAAS,MAAM,mCAAmC,CAAA;AACzD,OAAO,GAAG,MAAM,6BAA6B,CAAA;AAC7C,OAAO,OAAO,MAAM,iCAAiC,CAAA;AAErD,MAAM,CAAC,OAAO,WAAW,sBAA6B;IAEtD,OAAO;;EAEL,sBAAsB;;EAEtB,SAAS;;EAET,GAAG;;EAEH,OAAO;CACR,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateJetstreamGitignore.d.ts b/dist/generators/jetstream/generateJetstreamGitignore.d.ts deleted file mode 100644 index c2427656..00000000 --- a/dist/generators/jetstream/generateJetstreamGitignore.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function (jetstreamGitignoreText: string): string; diff --git a/dist/generators/jetstream/generateJetstreamGitignore.js.map b/dist/generators/jetstream/generateJetstreamGitignore.js.map deleted file mode 100644 index 4dbc9c5b..00000000 --- a/dist/generators/jetstream/generateJetstreamGitignore.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generateJetstreamGitignore.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateJetstreamGitignore.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAE3D,OAAO,SAAS,MAAM,mCAAmC,CAAA;AACzD,OAAO,GAAG,MAAM,6BAA6B,CAAA;AAC7C,OAAO,OAAO,MAAM,iCAAiC,CAAA;AAErD,MAAM,CAAC,OAAO,WAAW,sBAA6B;IAEtD,OAAO;;EAEL,sBAAsB;;EAEtB,SAAS;;EAET,GAAG;;EAEH,OAAO;CACR,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateJetstreamTailwindConfig.js.map b/dist/generators/jetstream/generateJetstreamTailwindConfig.js.map deleted file mode 100644 index 8320bb82..00000000 --- a/dist/generators/jetstream/generateJetstreamTailwindConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generateJetstreamTailwindConfig.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateJetstreamTailwindConfig.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateJetstreamTypescriptConfig.js.map b/dist/generators/jetstream/generateJetstreamTypescriptConfig.js.map deleted file mode 100644 index c0267f38..00000000 --- a/dist/generators/jetstream/generateJetstreamTypescriptConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generateJetstreamTypescriptConfig.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateJetstreamTypescriptConfig.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAElE,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;cAKO,GAAG,gBAAgB,GAAG;kCACF,GAAG,UAAU,GAAG;uBAC3B,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,QAAQ,GAAG,eAAe,GAAG;mEAClC,GAAG,UAAU,GAAG;;;;YAIvE,GAAG,wBAAwB,GAAG,cAAc,GAAG,UAAU,GAAG;kEACN,GAAG,UAAU,GAAG;mEACf,GAAG,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DhF,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateJetstreamViteConfig.d.ts b/dist/generators/jetstream/generateJetstreamViteConfig.d.ts deleted file mode 100644 index 2c5e828c..00000000 --- a/dist/generators/jetstream/generateJetstreamViteConfig.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function (): string; diff --git a/dist/generators/jetstream/generateJetstreamViteConfig.js.map b/dist/generators/jetstream/generateJetstreamViteConfig.js.map deleted file mode 100644 index 13c5444e..00000000 --- a/dist/generators/jetstream/generateJetstreamViteConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generateJetstreamViteConfig.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateJetstreamViteConfig.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateJetstreamTailwindConfig.d.ts b/dist/generators/jetstream/generateTailwindConfigTs.d.ts similarity index 100% rename from dist/generators/jetstream/generateJetstreamTailwindConfig.d.ts rename to dist/generators/jetstream/generateTailwindConfigTs.d.ts diff --git a/dist/generators/jetstream/generateJetstreamTailwindConfig.js b/dist/generators/jetstream/generateTailwindConfigTs.js similarity index 97% rename from dist/generators/jetstream/generateJetstreamTailwindConfig.js rename to dist/generators/jetstream/generateTailwindConfigTs.js index fbfaf75c..44fa64df 100644 --- a/dist/generators/jetstream/generateJetstreamTailwindConfig.js +++ b/dist/generators/jetstream/generateTailwindConfigTs.js @@ -1,4 +1,4 @@ -// ./src/generators/jetstream/generateJetstreamTailwindConfig.ts +// ./src/generators/jetstream/generateTailwindConfigTs.ts export default function () { return `// ./tailwind.config.ts @@ -99,4 +99,4 @@ export default >{ } `; } -//# sourceMappingURL=generateJetstreamTailwindConfig.js.map \ No newline at end of file +//# sourceMappingURL=generateTailwindConfigTs.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/generateTailwindConfigTs.js.map b/dist/generators/jetstream/generateTailwindConfigTs.js.map new file mode 100644 index 00000000..17606325 --- /dev/null +++ b/dist/generators/jetstream/generateTailwindConfigTs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generateTailwindConfigTs.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateTailwindConfigTs.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/generateJetstreamTypescriptConfig.d.ts b/dist/generators/jetstream/generateViteConfigTs.d.ts similarity index 100% rename from dist/generators/jetstream/generateJetstreamTypescriptConfig.d.ts rename to dist/generators/jetstream/generateViteConfigTs.d.ts diff --git a/dist/generators/jetstream/generateJetstreamViteConfig.js b/dist/generators/jetstream/generateViteConfigTs.js similarity index 87% rename from dist/generators/jetstream/generateJetstreamViteConfig.js rename to dist/generators/jetstream/generateViteConfigTs.js index 789bdb10..95b8a64e 100644 --- a/dist/generators/jetstream/generateJetstreamViteConfig.js +++ b/dist/generators/jetstream/generateViteConfigTs.js @@ -1,4 +1,4 @@ -// ./src/generators/jetstream/generateJetstreamViteConfig.ts +// ./src/generators/jetstream/generateViteConfigTs.ts export default function () { return `// ./vite.config.ts @@ -32,4 +32,4 @@ export default defineConfig({ }) `; } -//# sourceMappingURL=generateJetstreamViteConfig.js.map \ No newline at end of file +//# sourceMappingURL=generateViteConfigTs.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/generateViteConfigTs.js.map b/dist/generators/jetstream/generateViteConfigTs.js.map new file mode 100644 index 00000000..8b2fca15 --- /dev/null +++ b/dist/generators/jetstream/generateViteConfigTs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generateViteConfigTs.js","sourceRoot":"","sources":["../../../src/generators/jetstream/generateViteConfigTs.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/installers/installViltDsJetstream.js b/dist/installers/installViltDsJetstream.js index 07f1084e..f2bbd0bb 100644 --- a/dist/installers/installViltDsJetstream.js +++ b/dist/installers/installViltDsJetstream.js @@ -2,6 +2,7 @@ import installVscodeExtensionsJson from '../installers/jetstream/installVscodeExtensionsJson.js'; import installNpmDeps from '../installers/jetstream/installNpmDeps.js'; import installTailwindConfigTs from '../installers/jetstream/installTailwindConfigTs.js'; +import installTsconfigJson from '../installers/jetstream/installTsconfigJson.js'; import installViteConfigTs from '../installers/jetstream/installViteConfigTs.js'; import updateConfigJetstreamPhp from '../updaters/jetstream/updateConfigJetstreamPhp.js'; import updateGitignore from '../updaters/jetstream/updateGitignore.js'; @@ -11,6 +12,7 @@ export default function () { updateGitignore(); installNpmDeps(); installVscodeExtensionsJson(); + installTsconfigJson(); installTailwindConfigTs(); installViteConfigTs(); updateConfigJetstreamPhp(); diff --git a/dist/installers/installViltDsJetstream.js.map b/dist/installers/installViltDsJetstream.js.map index 5080b250..662e2b95 100644 --- a/dist/installers/installViltDsJetstream.js.map +++ b/dist/installers/installViltDsJetstream.js.map @@ -1 +1 @@ -{"version":3,"file":"installViltDsJetstream.js","sourceRoot":"","sources":["../../src/installers/installViltDsJetstream.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAE7C,OAAO,2BAA2B,MAAM,wDAAwD,CAAA;AAChG,OAAO,cAAc,MAAM,2CAA2C,CAAA;AACtE,OAAO,uBAAuB,MAAM,oDAAoD,CAAA;AACxF,OAAO,mBAAmB,MAAM,gDAAgD,CAAA;AAEhF,OAAO,wBAAwB,MAAM,mDAAmD,CAAA;AACxF,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;AAC1E,OAAO,kBAAkB,MAAM,6CAA6C,CAAA;AAE5E,MAAM,CAAC,OAAO;IAEV,eAAe,EAAE,CAAA;IAEjB,cAAc,EAAE,CAAA;IAEhB,2BAA2B,EAAE,CAAA;IAE7B,uBAAuB,EAAE,CAAA;IAEzB,mBAAmB,EAAE,CAAA;IAErB,wBAAwB,EAAE,CAAA;IAE1B,kBAAkB,EAAE,CAAA;IAEpB,iBAAiB,EAAE,CAAA;AAEvB,CAAC"} \ No newline at end of file +{"version":3,"file":"installViltDsJetstream.js","sourceRoot":"","sources":["../../src/installers/installViltDsJetstream.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAE7C,OAAO,2BAA2B,MAAM,wDAAwD,CAAA;AAChG,OAAO,cAAc,MAAM,2CAA2C,CAAA;AACtE,OAAO,uBAAuB,MAAM,oDAAoD,CAAA;AACxF,OAAO,mBAAmB,MAAM,gDAAgD,CAAA;AAChF,OAAO,mBAAmB,MAAM,gDAAgD,CAAA;AAEhF,OAAO,wBAAwB,MAAM,mDAAmD,CAAA;AACxF,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;AAC1E,OAAO,kBAAkB,MAAM,6CAA6C,CAAA;AAE5E,MAAM,CAAC,OAAO;IAEV,eAAe,EAAE,CAAA;IAEjB,cAAc,EAAE,CAAA;IAEhB,2BAA2B,EAAE,CAAA;IAE7B,mBAAmB,EAAE,CAAA;IAErB,uBAAuB,EAAE,CAAA;IAEzB,mBAAmB,EAAE,CAAA;IAErB,wBAAwB,EAAE,CAAA;IAE1B,kBAAkB,EAAE,CAAA;IAEpB,iBAAiB,EAAE,CAAA;AAEvB,CAAC"} \ No newline at end of file diff --git a/dist/installers/jetstream/installTailwindConfigTs.js b/dist/installers/jetstream/installTailwindConfigTs.js index 883ded9d..9d199a4e 100644 --- a/dist/installers/jetstream/installTailwindConfigTs.js +++ b/dist/installers/jetstream/installTailwindConfigTs.js @@ -1,6 +1,6 @@ // ./src/installers/installTailwindConfigTs.ts import fs from 'fs-extra'; -import generateJetstreamTailwindConfig from '../../generators/jetstream/generateJetstreamTailwindConfig.js'; +import generateTailwindConfigTs from '../../generators/jetstream/generateTailwindConfigTs.js'; import cliSuccessMessage from '../../helpers/cliSuccessMessage.js'; import cliWarningMessage from '../../helpers/cliWarningMessage.js'; import cwd from '../../helpers/cwd.js'; @@ -9,7 +9,7 @@ export default function () { const filename = 'tailwind.config.ts'; const filepath = '/' + filename; if (!projectFileDoesExist(filepath)) { - fs.outputFileSync(cwd + filepath, generateJetstreamTailwindConfig(), { flag: 'w+' }); + fs.outputFileSync(cwd + filepath, generateTailwindConfigTs(), { flag: 'w+' }); cliSuccessMessage(filepath + ' file was created successfully!', false, false); } else { diff --git a/dist/installers/jetstream/installTailwindConfigTs.js.map b/dist/installers/jetstream/installTailwindConfigTs.js.map index 96ad4c14..1010bd05 100644 --- a/dist/installers/jetstream/installTailwindConfigTs.js.map +++ b/dist/installers/jetstream/installTailwindConfigTs.js.map @@ -1 +1 @@ -{"version":3,"file":"installTailwindConfigTs.js","sourceRoot":"","sources":["../../../src/installers/jetstream/installTailwindConfigTs.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,+BAA+B,MAAM,+DAA+D,CAAA;AAE3G,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,oBAAoB,CAAA;IACrC,MAAM,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAA;IAE/B,IAAK,CAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAEpC,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,+BAA+B,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAEpF,iBAAiB,CAAC,QAAQ,GAAG,iCAAiC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAEhF;SAAM;QAEH,iBAAiB,CAAC,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAErF;AAEL,CAAC"} \ No newline at end of file +{"version":3,"file":"installTailwindConfigTs.js","sourceRoot":"","sources":["../../../src/installers/jetstream/installTailwindConfigTs.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,wBAAwB,MAAM,wDAAwD,CAAA;AAE7F,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,oBAAoB,CAAA;IACrC,MAAM,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAA;IAE/B,IAAK,CAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAEpC,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,wBAAwB,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAE7E,iBAAiB,CAAC,QAAQ,GAAG,iCAAiC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAEhF;SAAM;QAEH,iBAAiB,CAAC,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAErF;AAEL,CAAC"} \ No newline at end of file diff --git a/dist/installers/jetstream/installTsconfigJson.js b/dist/installers/jetstream/installTsconfigJson.js index 955eb60b..babb2832 100644 --- a/dist/installers/jetstream/installTsconfigJson.js +++ b/dist/installers/jetstream/installTsconfigJson.js @@ -1,19 +1,19 @@ // ./src/installers/installTsconfigJson.ts import fs from 'fs-extra'; -import generateJetstreamTypescriptConfig from '../../generators/jetstream/generateJetstreamTypescriptConfig.js'; import cliSuccessMessage from '../../helpers/cliSuccessMessage.js'; import cliWarningMessage from '../../helpers/cliWarningMessage.js'; import cwd from '../../helpers/cwd.js'; import projectFileDoesExist from '../../helpers/projectFileDoesExist.js'; +import viltDsTypescriptConfig from '../../data/typescript/viltDsTypescriptConfig.js'; export default function () { - const filename = 'vite.config.ts'; + const filename = 'tsconfig.json'; const filepath = '/' + filename; if (!projectFileDoesExist(filepath)) { - fs.outputFileSync(cwd + filepath, generateJetstreamTypescriptConfig(), { flag: 'w+' }); - cliSuccessMessage(filepath + ' file was created successfully!', false, false); + fs.outputFileSync(cwd + filepath, JSON.stringify(viltDsTypescriptConfig, null, 4), { flag: 'w+' }); + cliSuccessMessage(cwd + filepath + ' file was created successfully!', false, false); } else { - cliWarningMessage(filepath + ' was found, so no changes were made!', false, false); + cliWarningMessage(cwd + filepath + ' was found, so no changes were made!', false, false); } } //# sourceMappingURL=installTsconfigJson.js.map \ No newline at end of file diff --git a/dist/installers/jetstream/installTsconfigJson.js.map b/dist/installers/jetstream/installTsconfigJson.js.map index 28a59c79..866f1895 100644 --- a/dist/installers/jetstream/installTsconfigJson.js.map +++ b/dist/installers/jetstream/installTsconfigJson.js.map @@ -1 +1 @@ -{"version":3,"file":"installTsconfigJson.js","sourceRoot":"","sources":["../../../src/installers/jetstream/installTsconfigJson.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,iCAAiC,MAAM,iEAAiE,CAAA;AAE/G,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,gBAAgB,CAAA;IACjC,MAAM,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAA;IAE/B,IAAK,CAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAEpC,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,iCAAiC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAEtF,iBAAiB,CAAC,QAAQ,GAAG,iCAAiC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAEhF;SAAM;QAEH,iBAAiB,CAAC,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAErF;AAGL,CAAC"} \ No newline at end of file +{"version":3,"file":"installTsconfigJson.js","sourceRoot":"","sources":["../../../src/installers/jetstream/installTsconfigJson.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,OAAO,sBAAsB,MAAM,iDAAiD,CAAA;AAEpF,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,eAAe,CAAA;IAChC,MAAM,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAA;IAE/B,IAAK,CAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAEpC,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,sBAAsB,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAElG,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,iCAAiC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAEtF;SAAM;QAEH,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAE3F;AAGL,CAAC"} \ No newline at end of file diff --git a/dist/installers/jetstream/installViteConfigTs.js b/dist/installers/jetstream/installViteConfigTs.js index b9912e7c..444f9635 100644 --- a/dist/installers/jetstream/installViteConfigTs.js +++ b/dist/installers/jetstream/installViteConfigTs.js @@ -1,6 +1,6 @@ // ./src/installers/installViteConfigTs.ts import fs from 'fs-extra'; -import generateJetstreamViteConfig from '../../generators/jetstream/generateJetstreamViteConfig.js'; +import generateViteConfigTs from '../../generators/jetstream/generateViteConfigTs.js'; import cliSuccessMessage from '../../helpers/cliSuccessMessage.js'; import cliWarningMessage from '../../helpers/cliWarningMessage.js'; import cwd from '../../helpers/cwd.js'; @@ -9,7 +9,7 @@ export default function () { const filename = 'vite.config.ts'; const filepath = '/' + filename; if (!projectFileDoesExist(filepath)) { - fs.outputFileSync(cwd + filepath, generateJetstreamViteConfig(), { flag: 'w+' }); + fs.outputFileSync(cwd + filepath, generateViteConfigTs(), { flag: 'w+' }); cliSuccessMessage(filepath + ' file was created successfully!', false, false); } else { diff --git a/dist/installers/jetstream/installViteConfigTs.js.map b/dist/installers/jetstream/installViteConfigTs.js.map index 8f27a3dd..e2bca794 100644 --- a/dist/installers/jetstream/installViteConfigTs.js.map +++ b/dist/installers/jetstream/installViteConfigTs.js.map @@ -1 +1 @@ -{"version":3,"file":"installViteConfigTs.js","sourceRoot":"","sources":["../../../src/installers/jetstream/installViteConfigTs.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,2BAA2B,MAAM,2DAA2D,CAAA;AAEnG,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,gBAAgB,CAAA;IACjC,MAAM,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAA;IAE/B,IAAK,CAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAEpC,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,2BAA2B,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAEhF,iBAAiB,CAAC,QAAQ,GAAG,iCAAiC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAEhF;SAAM;QAEH,iBAAiB,CAAC,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAErF;AAGL,CAAC"} \ No newline at end of file +{"version":3,"file":"installViteConfigTs.js","sourceRoot":"","sources":["../../../src/installers/jetstream/installViteConfigTs.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAE1C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,oBAAoB,MAAM,oDAAoD,CAAA;AAErF,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,gBAAgB,CAAA;IACjC,MAAM,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAA;IAE/B,IAAK,CAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAEpC,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAEzE,iBAAiB,CAAC,QAAQ,GAAG,iCAAiC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAEhF;SAAM;QAEH,iBAAiB,CAAC,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAErF;AAGL,CAAC"} \ No newline at end of file diff --git a/dist/updaters/jetstream/updateGitignore.js b/dist/updaters/jetstream/updateGitignore.js index c3a205d6..3f7af493 100644 --- a/dist/updaters/jetstream/updateGitignore.js +++ b/dist/updaters/jetstream/updateGitignore.js @@ -1,6 +1,6 @@ -// ./src/updaters/jetstream/updateGitignoreFile.ts +// ./src/updaters/jetstream/updateGitignore.ts import fs from 'fs-extra'; -import generateJetstreamGitignore from '../../generators/jetstream/generateJetstreamGitignore.js'; +import generateGitignore from '../../generators/jetstream/generateGitignore.js'; import cliSuccessMessage from '../../helpers/cliSuccessMessage.js'; import cliWarningMessage from '../../helpers/cliWarningMessage.js'; import cwd from '../../helpers/cwd.js'; @@ -16,7 +16,7 @@ export default function () { throw err; } // If no error, then overwrite the current gitignore file content wrapped in VILT DS gitignore code - fs.outputFileSync(cwd + filepath, generateJetstreamGitignore(String(data)), { flag: 'w+' }); + fs.outputFileSync(cwd + filepath, generateGitignore(String(data)), { flag: 'w+' }); cliSuccessMessage(cwd + filepath + ' file updated successfully!', false, false); }); } diff --git a/dist/updaters/jetstream/updateGitignore.js.map b/dist/updaters/jetstream/updateGitignore.js.map index ba86a3e4..f0515b5a 100644 --- a/dist/updaters/jetstream/updateGitignore.js.map +++ b/dist/updaters/jetstream/updateGitignore.js.map @@ -1 +1 @@ -{"version":3,"file":"updateGitignore.js","sourceRoot":"","sources":["../../../src/updaters/jetstream/updateGitignore.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,0BAA0B,MAAM,0DAA0D,CAAA;AAEjG,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,aAAa,CAAA;IAE9B,sFAAsF;IACtF,IAAK,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAElC,gEAAgE;QAChE,EAAE,CAAC,QAAQ,CAAC,GAAG,GAAG,QAAQ,EAAE,MAAM,EAAE,UAAS,GAAG,EAAE,IAAI;YAElD,cAAc;YACd,IAAI,GAAG,EAAE;gBAAE,MAAM,GAAG,CAAA;aAAE;YAEtB,mGAAmG;YACnG,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;YAE3F,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,6BAA6B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAEnF,CAAC,CAAC,CAAA;KAEL;SAAM;QAEH,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAE3F;AAEL,CAAC"} \ No newline at end of file +{"version":3,"file":"updateGitignore.js","sourceRoot":"","sources":["../../../src/updaters/jetstream/updateGitignore.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,iBAAiB,MAAM,iDAAiD,CAAA;AAE/E,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,aAAa,CAAA;IAE9B,sFAAsF;IACtF,IAAK,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAElC,gEAAgE;QAChE,EAAE,CAAC,QAAQ,CAAC,GAAG,GAAG,QAAQ,EAAE,MAAM,EAAE,UAAS,GAAG,EAAE,IAAI;YAElD,cAAc;YACd,IAAI,GAAG,EAAE;gBAAE,MAAM,GAAG,CAAA;aAAE;YAEtB,mGAAmG;YACnG,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;YAElF,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,6BAA6B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAEnF,CAAC,CAAC,CAAA;KAEL;SAAM;QAEH,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAE3F;AAEL,CAAC"} \ No newline at end of file diff --git a/dist/updaters/jetstream/updateRoutesWebPhp.js b/dist/updaters/jetstream/updateRoutesWebPhp.js index 08f0cdb8..86122591 100644 --- a/dist/updaters/jetstream/updateRoutesWebPhp.js +++ b/dist/updaters/jetstream/updateRoutesWebPhp.js @@ -4,23 +4,10 @@ import cliSuccessMessage from '../../helpers/cliSuccessMessage.js'; import cliWarningMessage from '../../helpers/cliWarningMessage.js'; import cwd from '../../helpers/cwd.js'; import projectFileDoesExist from '../../helpers/projectFileDoesExist.js'; -const newRoutesWebPhpCode = `}); - -Route::middleware([ - 'auth:sanctum', - config('jetstream.auth_session'), - 'verified', -])->group(function () { - - Route::get('/dashboard', function () { - return Inertia::render('Dashboard'); - })->name('dashboard'); - +const newRoutesWebPhpCode = `})->name('dashboard'); Route::get('/vueventus', function () { return Inertia::render('VueVentus'); - })->name('vueventus'); - -});`; + })->name('vueventus');`; export default function () { const filename = 'web.php'; const filepath = '/routes/' + filename; @@ -30,7 +17,7 @@ export default function () { if (err) { throw err; } - let modifiedData = String(data).replace('});', newRoutesWebPhpCode); + let modifiedData = String(data).replace(` })->name('dashboard');`, newRoutesWebPhpCode); // If no error, then overwrite the current config/jetstream.php file content with the modifications fs.outputFileSync(cwd + filepath, modifiedData, { flag: 'w+' }); cliSuccessMessage(cwd + filepath + ' file updated successfully!', false, false); diff --git a/dist/updaters/jetstream/updateRoutesWebPhp.js.map b/dist/updaters/jetstream/updateRoutesWebPhp.js.map index da121600..66d6eec1 100644 --- a/dist/updaters/jetstream/updateRoutesWebPhp.js.map +++ b/dist/updaters/jetstream/updateRoutesWebPhp.js.map @@ -1 +1 @@ -{"version":3,"file":"updateRoutesWebPhp.js","sourceRoot":"","sources":["../../../src/updaters/jetstream/updateRoutesWebPhp.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;IAgBxB,CAAA;AAEJ,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,SAAS,CAAA;IAC1B,MAAM,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAA;IAEtC,IAAK,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAElC,EAAE,CAAC,QAAQ,CAAC,GAAG,GAAG,QAAQ,EAAE,MAAM,EAAE,UAAS,GAAG,EAAE,IAAI;YAElD,cAAc;YACd,IAAI,GAAG,EAAE;gBAAE,MAAM,GAAG,CAAA;aAAE;YAEtB,IAAI,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CACnC,KAAK,EACL,mBAAmB,CACtB,CAAA;YAED,mGAAmG;YACnG,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;YAE/D,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,6BAA6B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAEnF,CAAC,CAAC,CAAA;KAEL;SAAM;QAEH,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAE3F;AAEL,CAAC"} \ No newline at end of file +{"version":3,"file":"updateRoutesWebPhp.js","sourceRoot":"","sources":["../../../src/updaters/jetstream/updateRoutesWebPhp.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,EAAE,MAAM,UAAU,CAAA;AAEzB,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,GAAG,MAAM,sBAAsB,CAAA;AACtC,OAAO,oBAAoB,MAAM,uCAAuC,CAAA;AAExE,MAAM,mBAAmB,GAAG;;;2BAGD,CAAA;AAE3B,MAAM,CAAC,OAAO;IAEV,MAAM,QAAQ,GAAG,SAAS,CAAA;IAC1B,MAAM,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAA;IAEtC,IAAK,oBAAoB,CAAC,QAAQ,CAAC,EAAG;QAElC,EAAE,CAAC,QAAQ,CAAC,GAAG,GAAG,QAAQ,EAAE,MAAM,EAAE,UAAS,GAAG,EAAE,IAAI;YAElD,cAAc;YACd,IAAI,GAAG,EAAE;gBAAE,MAAM,GAAG,CAAA;aAAE;YAEtB,IAAI,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CACnC,4BAA4B,EAC5B,mBAAmB,CACtB,CAAA;YAED,mGAAmG;YACnG,EAAE,CAAC,cAAc,CAAC,GAAG,GAAG,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;YAE/D,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,6BAA6B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAEnF,CAAC,CAAC,CAAA;KAEL;SAAM;QAEH,iBAAiB,CAAC,GAAG,GAAG,QAAQ,GAAG,sCAAsC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;KAE3F;AAEL,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 092eefe5..62295b3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@obewds/vilt-ds", - "version": "0.1.10", + "version": "0.1.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@obewds/vilt-ds", - "version": "0.1.10", + "version": "0.1.11", "license": "MIT", "dependencies": { "fs-extra": "^11.1.1", diff --git a/package.json b/package.json index 5748fcc8..64b7d203 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@obewds/vilt-ds", - "version": "0.1.10", + "version": "0.1.11", "description": "The official repository for the VILT Design System for the Vue.js, Inertia.js, Laravel, and Tailwind CSS web app stack that is turbocharged with Typescript and VueVentus.", "license": "MIT", "author": "Matt McT", diff --git a/src/data/npm/viltDsJetstreamDeps.ts b/src/data/npm/viltDsJetstreamDeps.ts index 4a2d1cc3..221f8e96 100644 --- a/src/data/npm/viltDsJetstreamDeps.ts +++ b/src/data/npm/viltDsJetstreamDeps.ts @@ -10,7 +10,6 @@ export type ViltDsJetstreamDependency = 'typescript' | '@tailwindcss/aspect-ratio' | '@headlessui/tailwindcss' | 'tailwind-scrollbar' -| '@types/gsap' | 'gsap' export default [ @@ -24,6 +23,5 @@ export default [ '@tailwindcss/aspect-ratio', '@headlessui/tailwindcss', 'tailwind-scrollbar', - '@types/gsap', 'gsap', ] as Array diff --git a/src/generators/jetstream/generateJetstreamTypescriptConfig.ts b/src/data/typescript/viltDsTypescriptConfig.ts similarity index 78% rename from src/generators/jetstream/generateJetstreamTypescriptConfig.ts rename to src/data/typescript/viltDsTypescriptConfig.ts index 4c2fce80..0a8c55f3 100644 --- a/src/generators/jetstream/generateJetstreamTypescriptConfig.ts +++ b/src/data/typescript/viltDsTypescriptConfig.ts @@ -1,22 +1,20 @@ -// ./src/generators/jetstream/generateJetstreamTypescriptConfig.ts +// ./src/data/typescript/viltDsTypescriptConfig.ts -export default function (): string { - -return `{ +export default { "compilerOptions": { // A few notes: // - Vue 3 supports ES2016+ // - For Vite, the actual compilation target is determined by the - // ` + "`build.target`" + ` option in the Vite config. - // So don't change the ` + "`target`" + ` field here. It has to be - // at least ` + "`ES2020`" + ` for dynamic ` + "`import()`" + `s and ` + "`import.meta`" + ` to work correctly. - // - If you are not using Vite, feel free to override the ` + "`target`" + ` field. + // `build.target` option in the Vite config. + // So don't change the `target` field here. It has to be + // at least `ES2020` for dynamic `import()`s and `import.meta` to work correctly. + // - If you are not using Vite, feel free to override the `target` field. "target": "ESNext", "module": "ESNext", "strict": true, - // ` + '"noImplicitThis": true' + ` is part of ` + "`strict`" + ` - // Added again here in case some users decide to disable ` + "`strict`" + `. - // This enables stricter inference for data properties on ` + "`this`" + `. + // "noImplicitThis": true is part of `strict` + // Added again here in case some users decide to disable `strict`. + // This enables stricter inference for data properties on `this`. "noImplicitThis": true, "noEmit": true, // "noUnusedLocals": true, @@ -73,7 +71,4 @@ return `{ "node_modules", "vendor" ], -} -`; - } \ No newline at end of file diff --git a/src/generators/jetstream/generateJetstreamGitignore.ts b/src/generators/jetstream/generateGitignore.ts similarity index 60% rename from src/generators/jetstream/generateJetstreamGitignore.ts rename to src/generators/jetstream/generateGitignore.ts index 93705a66..5e75c5d4 100644 --- a/src/generators/jetstream/generateJetstreamGitignore.ts +++ b/src/generators/jetstream/generateGitignore.ts @@ -1,14 +1,14 @@ -// ./src/generators/jetstream/generateJetstreamGitignore.ts +// ./src/generators/jetstream/generateGitignore.ts import developer from '../../data/gitignore/developer.js' import mac from '../../data/gitignore/mac.js' import windows from '../../data/gitignore/windows.js' -export default function (jetstreamGitignoreText:string): string { +export default function (installedGitignoreText:string): string { return `# ./.gitignore -${jetstreamGitignoreText} +${installedGitignoreText} ${developer} diff --git a/src/generators/jetstream/generateJetstreamTailwindConfig.ts b/src/generators/jetstream/generateTailwindConfigTs.ts similarity index 98% rename from src/generators/jetstream/generateJetstreamTailwindConfig.ts rename to src/generators/jetstream/generateTailwindConfigTs.ts index 08775ee6..b0caca0d 100644 --- a/src/generators/jetstream/generateJetstreamTailwindConfig.ts +++ b/src/generators/jetstream/generateTailwindConfigTs.ts @@ -1,4 +1,4 @@ -// ./src/generators/jetstream/generateJetstreamTailwindConfig.ts +// ./src/generators/jetstream/generateTailwindConfigTs.ts export default function (): string { diff --git a/src/generators/jetstream/generateJetstreamViteConfig.ts b/src/generators/jetstream/generateViteConfigTs.ts similarity index 93% rename from src/generators/jetstream/generateJetstreamViteConfig.ts rename to src/generators/jetstream/generateViteConfigTs.ts index 20f49ff1..e1942d76 100644 --- a/src/generators/jetstream/generateJetstreamViteConfig.ts +++ b/src/generators/jetstream/generateViteConfigTs.ts @@ -1,4 +1,4 @@ -// ./src/generators/jetstream/generateJetstreamViteConfig.ts +// ./src/generators/jetstream/generateViteConfigTs.ts export default function (): string { diff --git a/src/installers/installViltDsJetstream.ts b/src/installers/installViltDsJetstream.ts index 73c20229..19f05049 100644 --- a/src/installers/installViltDsJetstream.ts +++ b/src/installers/installViltDsJetstream.ts @@ -3,6 +3,7 @@ import installVscodeExtensionsJson from '../installers/jetstream/installVscodeExtensionsJson.js' import installNpmDeps from '../installers/jetstream/installNpmDeps.js' import installTailwindConfigTs from '../installers/jetstream/installTailwindConfigTs.js' +import installTsconfigJson from '../installers/jetstream/installTsconfigJson.js' import installViteConfigTs from '../installers/jetstream/installViteConfigTs.js' import updateConfigJetstreamPhp from '../updaters/jetstream/updateConfigJetstreamPhp.js' @@ -18,6 +19,8 @@ export default function (): void { installVscodeExtensionsJson() + installTsconfigJson() + installTailwindConfigTs() installViteConfigTs() diff --git a/src/installers/jetstream/installTailwindConfigTs.ts b/src/installers/jetstream/installTailwindConfigTs.ts index c5a4c790..cdcfe235 100644 --- a/src/installers/jetstream/installTailwindConfigTs.ts +++ b/src/installers/jetstream/installTailwindConfigTs.ts @@ -2,7 +2,7 @@ import fs from 'fs-extra' -import generateJetstreamTailwindConfig from '../../generators/jetstream/generateJetstreamTailwindConfig.js' +import generateTailwindConfigTs from '../../generators/jetstream/generateTailwindConfigTs.js' import cliSuccessMessage from '../../helpers/cliSuccessMessage.js' import cliWarningMessage from '../../helpers/cliWarningMessage.js' @@ -16,7 +16,7 @@ export default function (): void { if ( ! projectFileDoesExist(filepath) ) { - fs.outputFileSync(cwd + filepath, generateJetstreamTailwindConfig(), { flag: 'w+' }) + fs.outputFileSync(cwd + filepath, generateTailwindConfigTs(), { flag: 'w+' }) cliSuccessMessage(filepath + ' file was created successfully!', false, false) diff --git a/src/installers/jetstream/installTsconfigJson.ts b/src/installers/jetstream/installTsconfigJson.ts index 96a0e489..a1bf5de5 100644 --- a/src/installers/jetstream/installTsconfigJson.ts +++ b/src/installers/jetstream/installTsconfigJson.ts @@ -2,27 +2,27 @@ import fs from 'fs-extra' -import generateJetstreamTypescriptConfig from '../../generators/jetstream/generateJetstreamTypescriptConfig.js' - import cliSuccessMessage from '../../helpers/cliSuccessMessage.js' import cliWarningMessage from '../../helpers/cliWarningMessage.js' import cwd from '../../helpers/cwd.js' import projectFileDoesExist from '../../helpers/projectFileDoesExist.js' +import viltDsTypescriptConfig from '../../data/typescript/viltDsTypescriptConfig.js' + export default function (): void { - const filename = 'vite.config.ts' + const filename = 'tsconfig.json' const filepath = '/' + filename if ( ! projectFileDoesExist(filepath) ) { - fs.outputFileSync(cwd + filepath, generateJetstreamTypescriptConfig(), { flag: 'w+' }) + fs.outputFileSync(cwd + filepath, JSON.stringify(viltDsTypescriptConfig, null, 4), { flag: 'w+' }) - cliSuccessMessage(filepath + ' file was created successfully!', false, false) + cliSuccessMessage(cwd + filepath + ' file was created successfully!', false, false) } else { - cliWarningMessage(filepath + ' was found, so no changes were made!', false, false) + cliWarningMessage(cwd + filepath + ' was found, so no changes were made!', false, false) } diff --git a/src/installers/jetstream/installViteConfigTs.ts b/src/installers/jetstream/installViteConfigTs.ts index 9d929aec..0532eb1d 100644 --- a/src/installers/jetstream/installViteConfigTs.ts +++ b/src/installers/jetstream/installViteConfigTs.ts @@ -2,7 +2,7 @@ import fs from 'fs-extra' -import generateJetstreamViteConfig from '../../generators/jetstream/generateJetstreamViteConfig.js' +import generateViteConfigTs from '../../generators/jetstream/generateViteConfigTs.js' import cliSuccessMessage from '../../helpers/cliSuccessMessage.js' import cliWarningMessage from '../../helpers/cliWarningMessage.js' @@ -16,7 +16,7 @@ export default function (): void { if ( ! projectFileDoesExist(filepath) ) { - fs.outputFileSync(cwd + filepath, generateJetstreamViteConfig(), { flag: 'w+' }) + fs.outputFileSync(cwd + filepath, generateViteConfigTs(), { flag: 'w+' }) cliSuccessMessage(filepath + ' file was created successfully!', false, false) diff --git a/src/updaters/jetstream/updateGitignore.ts b/src/updaters/jetstream/updateGitignore.ts index 66471358..9461343d 100644 --- a/src/updaters/jetstream/updateGitignore.ts +++ b/src/updaters/jetstream/updateGitignore.ts @@ -1,8 +1,8 @@ -// ./src/updaters/jetstream/updateGitignoreFile.ts +// ./src/updaters/jetstream/updateGitignore.ts import fs from 'fs-extra' -import generateJetstreamGitignore from '../../generators/jetstream/generateJetstreamGitignore.js' +import generateGitignore from '../../generators/jetstream/generateGitignore.js' import cliSuccessMessage from '../../helpers/cliSuccessMessage.js' import cliWarningMessage from '../../helpers/cliWarningMessage.js' @@ -23,7 +23,7 @@ export default function (): void { if (err) { throw err } // If no error, then overwrite the current gitignore file content wrapped in VILT DS gitignore code - fs.outputFileSync(cwd + filepath, generateJetstreamGitignore(String(data)), { flag: 'w+' }) + fs.outputFileSync(cwd + filepath, generateGitignore(String(data)), { flag: 'w+' }) cliSuccessMessage(cwd + filepath + ' file updated successfully!', false, false) diff --git a/src/updaters/jetstream/updateRoutesWebPhp.ts b/src/updaters/jetstream/updateRoutesWebPhp.ts index 52e94ee8..2d8236b5 100644 --- a/src/updaters/jetstream/updateRoutesWebPhp.ts +++ b/src/updaters/jetstream/updateRoutesWebPhp.ts @@ -7,23 +7,10 @@ import cliWarningMessage from '../../helpers/cliWarningMessage.js' import cwd from '../../helpers/cwd.js' import projectFileDoesExist from '../../helpers/projectFileDoesExist.js' -const newRoutesWebPhpCode = `}); - -Route::middleware([ - 'auth:sanctum', - config('jetstream.auth_session'), - 'verified', -])->group(function () { - - Route::get('/dashboard', function () { - return Inertia::render('Dashboard'); - })->name('dashboard'); - +const newRoutesWebPhpCode = `})->name('dashboard'); Route::get('/vueventus', function () { return Inertia::render('VueVentus'); - })->name('vueventus'); - -});` + })->name('vueventus');` export default function (): void { @@ -38,7 +25,7 @@ export default function (): void { if (err) { throw err } let modifiedData = String(data).replace( - '});', + ` })->name('dashboard');`, newRoutesWebPhpCode )