web-ggf 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +1 -1
  2. package/bin/file-helper-8mCRd8gz.js +1 -0
  3. package/bin/index-D2RdtCtg.js +1 -0
  4. package/bin/index-DK7oafLf.js +1 -0
  5. package/bin/index-DO4ucSmr.js +1 -0
  6. package/bin/index-TZeQiMQl.js +1 -0
  7. package/bin/index-cJPNUbWu.js +1 -0
  8. package/bin/index-h2TvLleI.js +1 -0
  9. package/bin/index.js +2 -0
  10. package/bin/npm-install-CsYXwCS0.js +1 -0
  11. package/package.json +3 -3
  12. package/bin/_chunks/file-helper-D3QczOlm.js +0 -55
  13. package/bin/_chunks/file-helper-D3QczOlm.js.map +0 -1
  14. package/bin/_chunks/index-BbfKFDuQ.js +0 -132
  15. package/bin/_chunks/index-BbfKFDuQ.js.map +0 -1
  16. package/bin/_chunks/index-BksocSTH.js +0 -120
  17. package/bin/_chunks/index-BksocSTH.js.map +0 -1
  18. package/bin/_chunks/index-BxF5ETQg.js +0 -48
  19. package/bin/_chunks/index-BxF5ETQg.js.map +0 -1
  20. package/bin/_chunks/index-C7IjWgfh.js +0 -134
  21. package/bin/_chunks/index-C7IjWgfh.js.map +0 -1
  22. package/bin/_chunks/index-CnWNcsRs.js +0 -10
  23. package/bin/_chunks/index-CnWNcsRs.js.map +0 -1
  24. package/bin/_chunks/npm-install-7LYQx09p.js +0 -19
  25. package/bin/_chunks/npm-install-7LYQx09p.js.map +0 -1
  26. package/bin/nextjs15/index.js +0 -24
  27. package/bin/nextjs15/index.js.map +0 -1
  28. package/bin/types/nextjs15/adjust-files/auth-page.d.ts +0 -2
  29. package/bin/types/nextjs15/adjust-files/auth-page.d.ts.map +0 -1
  30. package/bin/types/nextjs15/adjust-files/favicon.ico.d.ts +0 -2
  31. package/bin/types/nextjs15/adjust-files/favicon.ico.d.ts.map +0 -1
  32. package/bin/types/nextjs15/adjust-files/globalcss.d.ts +0 -2
  33. package/bin/types/nextjs15/adjust-files/globalcss.d.ts.map +0 -1
  34. package/bin/types/nextjs15/adjust-files/home-page.d.ts +0 -2
  35. package/bin/types/nextjs15/adjust-files/home-page.d.ts.map +0 -1
  36. package/bin/types/nextjs15/adjust-files/index.d.ts +0 -8
  37. package/bin/types/nextjs15/adjust-files/index.d.ts.map +0 -1
  38. package/bin/types/nextjs15/adjust-files/layout.d.ts +0 -2
  39. package/bin/types/nextjs15/adjust-files/layout.d.ts.map +0 -1
  40. package/bin/types/nextjs15/adjust-files/middleware.d.ts +0 -2
  41. package/bin/types/nextjs15/adjust-files/middleware.d.ts.map +0 -1
  42. package/bin/types/nextjs15/adjust-files/next-config.d.ts +0 -2
  43. package/bin/types/nextjs15/adjust-files/next-config.d.ts.map +0 -1
  44. package/bin/types/nextjs15/adjust-files/unwanted.d.ts +0 -2
  45. package/bin/types/nextjs15/adjust-files/unwanted.d.ts.map +0 -1
  46. package/bin/types/nextjs15/base-dependencies/index.d.ts +0 -2
  47. package/bin/types/nextjs15/base-dependencies/index.d.ts.map +0 -1
  48. package/bin/types/nextjs15/configs/APP_CONFIG.d.ts +0 -2
  49. package/bin/types/nextjs15/configs/APP_CONFIG.d.ts.map +0 -1
  50. package/bin/types/nextjs15/configs/APP_CONFIG_D.d.ts +0 -2
  51. package/bin/types/nextjs15/configs/APP_CONFIG_D.d.ts.map +0 -1
  52. package/bin/types/nextjs15/configs/HOST_CONFIG.d.ts +0 -2
  53. package/bin/types/nextjs15/configs/HOST_CONFIG.d.ts.map +0 -1
  54. package/bin/types/nextjs15/configs/HOST_CONFIG_D.d.ts +0 -2
  55. package/bin/types/nextjs15/configs/HOST_CONFIG_D.d.ts.map +0 -1
  56. package/bin/types/nextjs15/configs/MIDDLEWARE_CONFIG.d.ts +0 -2
  57. package/bin/types/nextjs15/configs/MIDDLEWARE_CONFIG.d.ts.map +0 -1
  58. package/bin/types/nextjs15/configs/STORE_KEY_CONFIG.d.ts +0 -2
  59. package/bin/types/nextjs15/configs/STORE_KEY_CONFIG.d.ts.map +0 -1
  60. package/bin/types/nextjs15/configs/STORE_KEY_CONFIG_D.d.ts +0 -2
  61. package/bin/types/nextjs15/configs/STORE_KEY_CONFIG_D.d.ts.map +0 -1
  62. package/bin/types/nextjs15/configs/THEME_CONFIG.d.ts +0 -2
  63. package/bin/types/nextjs15/configs/THEME_CONFIG.d.ts.map +0 -1
  64. package/bin/types/nextjs15/configs/favicon.d.ts +0 -2
  65. package/bin/types/nextjs15/configs/favicon.d.ts.map +0 -1
  66. package/bin/types/nextjs15/configs/index.d.ts +0 -9
  67. package/bin/types/nextjs15/configs/index.d.ts.map +0 -1
  68. package/bin/types/nextjs15/graphql/apollo-provider.d.ts +0 -2
  69. package/bin/types/nextjs15/graphql/apollo-provider.d.ts.map +0 -1
  70. package/bin/types/nextjs15/graphql/dependencies.d.ts +0 -2
  71. package/bin/types/nextjs15/graphql/dependencies.d.ts.map +0 -1
  72. package/bin/types/nextjs15/graphql/index.d.ts +0 -3
  73. package/bin/types/nextjs15/graphql/index.d.ts.map +0 -1
  74. package/bin/types/nextjs15/helper/file-helper.d.ts +0 -15
  75. package/bin/types/nextjs15/helper/file-helper.d.ts.map +0 -1
  76. package/bin/types/nextjs15/helper/npm-install.d.ts +0 -6
  77. package/bin/types/nextjs15/helper/npm-install.d.ts.map +0 -1
  78. package/bin/types/nextjs15/helper/package-json-helper.d.ts +0 -14
  79. package/bin/types/nextjs15/helper/package-json-helper.d.ts.map +0 -1
  80. package/bin/types/nextjs15/index.d.ts +0 -4
  81. package/bin/types/nextjs15/index.d.ts.map +0 -1
  82. package/bin/types/nextjs15/lingui/dependencies.d.ts +0 -2
  83. package/bin/types/nextjs15/lingui/dependencies.d.ts.map +0 -1
  84. package/bin/types/nextjs15/lingui/index.d.ts +0 -7
  85. package/bin/types/nextjs15/lingui/index.d.ts.map +0 -1
  86. package/bin/types/nextjs15/lingui/init-lingui.d.ts +0 -2
  87. package/bin/types/nextjs15/lingui/init-lingui.d.ts.map +0 -1
  88. package/bin/types/nextjs15/lingui/lingui-client-provider.d.ts +0 -2
  89. package/bin/types/nextjs15/lingui/lingui-client-provider.d.ts.map +0 -1
  90. package/bin/types/nextjs15/lingui/lingui-config-js.d.ts +0 -2
  91. package/bin/types/nextjs15/lingui/lingui-config-js.d.ts.map +0 -1
  92. package/bin/types/nextjs15/lingui/lingui-server-instance.d.ts +0 -2
  93. package/bin/types/nextjs15/lingui/lingui-server-instance.d.ts.map +0 -1
  94. package/bin/types/nextjs15/lingui/packagejson.d.ts +0 -2
  95. package/bin/types/nextjs15/lingui/packagejson.d.ts.map +0 -1
package/README.md CHANGED
@@ -5,5 +5,5 @@ UI, form, and graphql components for react. Hope you enjoy it. So many configura
5
5
  ## 📦 Usage
6
6
 
7
7
  ```bash
8
- npx web-ggf init
8
+ npx web-ggf nextjs15
9
9
  ```
@@ -0,0 +1 @@
1
+ import*as n from"fs";import*as e from"path";function r(n){if(c(n))return console.warn(`❎ ${n} is existing`),e.join(process.cwd(),n);for(const e of n.split("/").reduce((n,e,r)=>0===r?[e]:[...n,`${n.slice(-1)[0]}/${e}`],[]))e.includes(".")||(c(e)?console.warn(`${e} is exist`):(console.warn(`${e} is not exist`),t(e)));return e.join(process.cwd(),n)}function o(e){c(e)&&(n.unlinkSync(s(e)),console.warn(`${e} is removed`))}function s(n){return e.join(process.cwd(),n)}function c(e){return n.existsSync(s(e))}function t(e){return n.mkdirSync(s(e),{recursive:!0}),console.warn(`🆗 ${e} directory created`)}function i(e){return JSON.parse(n.readFileSync(e,"utf-8"))}function a({targetPath:e,content:r,fileName:o,option:s}){try{n.writeFileSync(e,r,s),console.warn(`🆗 -> ${o} successfully ${n.existsSync(e)?"updated":"created"}`)}catch(n){console.error("❌ Error creating file:",n)}}export{o as d,r as f,s as g,i as r,a as w};
@@ -0,0 +1 @@
1
+ import{f as n,w as e}from"./file-helper-8mCRd8gz.js";import"fs";import"path";const t="APP_CONFIG.d.ts";e({targetPath:n(`src/configs/${t}`),content:"export interface AppConfigProps {\n appIndex: string;\n tokens: {\n uid: string;\n secret: string;\n };\n map: {\n googleMapApiKey: string;\n defaultCenter: { lat: number; lng: number };\n defaultZoom: number;\n };\n}\n",fileName:t});const o="APP_CONFIG.ts";e({targetPath:n(`src/configs/${o}`),content:"import type { AppConfigProps } from './APP_CONFIG.d';\n\nexport const APP_CONFIG: AppConfigProps = {\n appIndex: '<app_index>',\n tokens: { uid: '<uid>', secret: '<secret>' },\n map: { googleMapApiKey: '', defaultCenter: { lat: 47.919045645074696, lng: 106.91752910614014 }, defaultZoom: 12 },\n};\n",fileName:o});const r="HOST_CONFIG.d.ts";e({targetPath:n(`src/configs/${r}`),content:"export interface HostConfigProps {\n host: string;\n elastic: {\n host: string;\n username: string;\n password: string;\n };\n}\n",fileName:r});const s="HOST_CONFIG.ts";e({targetPath:n(`src/configs/${s}`),content:"import type { HostConfigProps } from './HOST_CONFIG.d';\n\nexport const HOST_CONFIG: HostConfigProps = {\n host: '<host_url>',\n elastic: {\n host: '<host_url>',\n username: '<username>',\n password: '<password>'\n }\n};\n",fileName:s});const i="MIDDLEWARE_CONFIG.ts";e({targetPath:n(`src/configs/${i}`),content:"import { NextJSAuthMiddleware } from 'web-ggf/nextjs-middleware';\n\nimport { APP_CONFIG } from '@/configs/APP_CONFIG';\nimport { HOST_CONFIG } from '@/configs/HOST_CONFIG';\nimport { STORE_KEY_CONFIG } from '@/configs/STORE_KEY_CONFIG';\n\nexport const middlewareConfig = new NextJSAuthMiddleware({\n userTokenKey: STORE_KEY_CONFIG.USER_TOKEN,\n clientTokenKey: STORE_KEY_CONFIG.CLIENT_TOKEN,\n refreshTokenKey: STORE_KEY_CONFIG.REFRESH_TOKEN,\n appKey: APP_CONFIG.tokens.uid,\n appSecret: APP_CONFIG.tokens.secret,\n host: HOST_CONFIG.host,\n protectedPaths: [/^(\\/\\w{2})?\\/account\\/?/, /^(\\/\\w{2})?\\/checkout\\/address\\/?/, /^(\\/\\w{2})?\\/checkout\\/confirm\\/?/],\n secure: process.env.NODE_ENV === 'production',\n locale: 'mn',\n});\n",fileName:i});const a="STORE_KEY_CONFIG.d.ts";e({targetPath:n(`src/configs/${a}`),content:"export interface StoreKeyConfigProps {\n USER_TOKEN: string;\n REFRESH_TOKEN: string;\n CLIENT_TOKEN: string;\n EXPIRES_IN: string;\n}\n",fileName:a});const p="STORE_KEY_CONFIG.ts";e({targetPath:n(`src/configs/${p}`),content:"import type { StoreKeyConfigProps } from './STORE_KEY_CONFIG.d';\n\nimport { APP_CONFIG } from '@/configs/APP_CONFIG';\n\nexport const STORE_KEY_CONFIG: StoreKeyConfigProps = {\n USER_TOKEN: `${APP_CONFIG.appIndex}_USER_TOKEN`,\n CLIENT_TOKEN: `${APP_CONFIG.appIndex}CLIENT_TOKEN`,\n REFRESH_TOKEN: `${APP_CONFIG.appIndex}REFRESH_TOKEN`,\n EXPIRES_IN: `${APP_CONFIG.appIndex}EXPIRES_IN`,\n};\n",fileName:p});const c="index.css";e({targetPath:n(`src/configs/THEME_CONFIG/${c}`),content:'@plugin "daisyui" {\n /*noinspection CssUnknownProperty*/\n themes: light --default, dark --prefersdark;\n}\n@plugin "daisyui/theme" {\n /*noinspection CssUnknownProperty*/\n default: true;\n name: light;\n --color-primary: #EE3562;\n --color-secondary: teal;\n}\n@plugin "daisyui/theme" {\n /*noinspection CssUnknownProperty*/\n prefersdark: true;\n name: dark;\n --color-primary: #EE3562;\n --color-secondary: teal;\n}\n',fileName:c});
@@ -0,0 +1 @@
1
+ import{f as n,w as e}from"./file-helper-8mCRd8gz.js";import{n as o}from"./npm-install-CsYXwCS0.js";import"fs";import"path";import"child_process";const r="apollo-provider.tsx";e({targetPath:n(`src/utils/${r}`),content:"'use client';\n\nimport { ReactNode } from 'react';\n\nimport cookies from 'js-cookie';\nimport { ApolloWrapper, GenerateMakeClient } from 'web-ggf/apollo-nextjs-wrapper';\n\nimport { HOST_CONFIG } from '@/configs/HOST_CONFIG';\nimport { STORE_KEY_CONFIG } from '@/configs/STORE_KEY_CONFIG';\n\nexport function ApolloProvider({ children }: { children: ReactNode }) {\n return (\n <ApolloWrapper\n makeClient={() =>\n new GenerateMakeClient({\n host: HOST_CONFIG.host,\n getToken: () => {\n const user = cookies.get(STORE_KEY_CONFIG.USER_TOKEN);\n const client = cookies.get(STORE_KEY_CONFIG.CLIENT_TOKEN);\n return user || client || '-';\n },\n })\n }\n >\n <>{children}</>\n </ApolloWrapper>\n );\n}\n",fileName:r}),o([{name:"@apollo/client",version:"^4.1.6"},{name:"@apollo/client-integration-nextjs",version:"^0.14.4"},{name:"rxjs",version:"^7.8.2"},{name:"graphql",version:"^16.13.1"},{name:"apollo-upload-client",version:"^19.0.0"},{name:"@types/apollo-upload-client",version:"^19.0.0",dev:!0}]);
@@ -0,0 +1 @@
1
+ import{n}from"./npm-install-CsYXwCS0.js";import{f as e,w as t,g as a,r as s}from"./file-helper-8mCRd8gz.js";import"child_process";import"fs";import"path";n([{name:"@lingui/cli",version:"latest",dev:!0},{name:"@lingui/swc-plugin",version:"5.7.0",dev:!0},{name:"@lingui/loader",version:"latest",dev:!0},{name:"@lingui/react",version:"latest"},{name:"@lingui/core",version:"latest"}]);const i="init-lingui.ts";t({targetPath:e(`src/locales/${i}`),content:"import { setI18n } from '@lingui/react/server';\n\nimport { getI18nInstance } from './lingui-server-instance';\n\nexport type PageLangParam = {\n params: Promise<{ locale: string }>;\n};\n\nexport function initLingui(lang: string) {\n const i18n = getI18nInstance(lang);\n setI18n(i18n);\n return i18n;\n}\n",fileName:i});const l="linqui-client-provider.tsx";t({targetPath:e(`src/utils/${l}`),content:"'use client';\n\nimport { type ReactNode, useState } from 'react';\n\nimport { type Messages, setupI18n } from '@lingui/core';\nimport { I18nProvider } from '@lingui/react';\n\nexport function LinguiClientProvider({\n children,\n initialLocale,\n initialMessages,\n}: {\n children: ReactNode;\n initialLocale: string;\n initialMessages: Messages;\n}) {\n const [i18n] = useState(() =>\n setupI18n({\n locale: initialLocale,\n messages: { [initialLocale]: initialMessages },\n }),\n );\n\n return <I18nProvider i18n={i18n}>{children}</I18nProvider>;\n}\n",fileName:l});const o="lingui.config.js";t({targetPath:e(o),content:"/** @type {import('@lingui/conf').LinguiConfig} */\nmodule.exports = {\n locales: ['en', 'mn'],\n sourceLocale: 'en',\n fallbackLocales: { default: 'en' },\n catalogs: [\n {\n path: 'src/locales/{locale}',\n include: ['src/'],\n },\n ],\n format: 'po',\n orderBy: 'message',\n compileNamespace: 'ts',\n};\n",fileName:o});const c="lingui-server-instance.ts";t({targetPath:e(`src/locales/${c}`),content:"import 'server-only';\n\nimport { I18n, Messages, setupI18n } from '@lingui/core';\n\nimport linguiConfig from '../../lingui.config';\n\nconst { locales } = linguiConfig;\n// optionally use a stricter union type\ntype SupportedLocales = string;\n\nasync function loadCatalog(locale: SupportedLocales): Promise<{\n [k: string]: Messages;\n}> {\n const { messages } = await import(`./${locale}.po`);\n return {\n [locale]: messages,\n };\n}\nconst catalogs = await Promise.all(locales.map(loadCatalog));\n\n// transform array of catalogs into a single object\nexport const allMessages = catalogs.reduce((acc, oneCatalog) => ({ ...acc, ...oneCatalog }), {});\n\ntype AllI18nInstances = { [K in SupportedLocales]: I18n };\n\nexport const allI18nInstances: AllI18nInstances = locales.reduce((acc, locale) => {\n const messages = allMessages[locale] ?? {};\n const i18n = setupI18n({\n locale,\n messages: { [locale]: messages },\n });\n return { ...acc, [locale]: i18n };\n}, {});\n\nexport const getI18nInstance = (locale: SupportedLocales): I18n => {\n if (!allI18nInstances[locale]) {\n console.warn(`No i18n instance found for locale \"${locale}\"`);\n }\n return allI18nInstances[locale] || allI18nInstances['en']!;\n};\n",fileName:c});const r="package.json",g=a(r),p=s(g);p.scripts["lingui:extract:clean"]="lingui extract --clean",p.scripts["lingui:compile:typescript"]="lingui compile --typescript",t({targetPath:g,content:JSON.stringify(p,null,2),fileName:r,option:"utf-8"});
@@ -0,0 +1 @@
1
+ import{f as n,w as e,d as t}from"./file-helper-8mCRd8gz.js";import"fs";import"path";const a="page.tsx";e({targetPath:n(`src/app/[locale]/auth/${a}`),content:"export default function AuthPage() {\n return <div>AuthPage</div>;\n}\n",fileName:a});const o="globals.css";e({targetPath:n(`src/app/[locale]/${o}`),content:'@import "tailwindcss";\n@import "../../configs/THEME_CONFIG/index.css";\n',fileName:o});const i="page.tsx";e({targetPath:n(`src/app/[locale]/${i}`),content:"import { t } from '@lingui/core/macro';\n\nimport { initLingui, PageLangParam } from '@/locales/init-lingui';\n\nexport default async function Page({ params }: PageLangParam) {\n const { locale } = await params;\n initLingui(locale);\n\n return (\n <div>\n <p>{t`Hello world`}</p>\n </div>\n );\n}\n",fileName:i});const r="layout.tsx";e({targetPath:n(`src/app/[locale]/${r}`),content:"import { ReactNode } from 'react';\n\nimport { i18n as Lingui18n } from '@lingui/core';\nimport type { Metadata } from 'next';\n\nimport './globals.css';\n\nimport { allMessages } from '@/locales/lingui-server-instance';\nimport { ApolloProvider } from '@/utils/apollo-provider';\nimport { LinguiClientProvider } from '@/utils/linqui-client-provider';\n\nexport default async function RootLayout({ children, params }: Readonly<{ children: ReactNode; params: Promise<{ locale: string }> }>) {\n const { locale } = await params;\n Lingui18n.loadAndActivate({ locale, messages: allMessages[locale] });\n\n return (\n <html lang={locale}>\n <body>\n <LinguiClientProvider initialLocale={locale} initialMessages={allMessages[locale]!}>\n <ApolloProvider>\n <>{children}</>\n </ApolloProvider>\n </LinguiClientProvider>\n </body>\n </html>\n );\n}\n\nexport const metadata: Metadata = {\n title: 'Test title',\n description: 'Test description',\n};\n",fileName:r});const l="middleware.ts";e({targetPath:n(`src/${l}`),content:"import { NextRequest } from 'next/server';\n\nimport { middlewareConfig } from '@/configs/MIDDLEWARE_CONFIG';\n\nexport async function middleware(request: NextRequest) {\n return middlewareConfig.generateResponse(request as never);\n}\n\nexport const config = {\n matcher: '/((?!api|_next/data|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)',\n};\n",fileName:l});const s="next.config.ts";e({targetPath:n(s),content:"import type { NextConfig } from 'next';\n\nconst nextConfig: NextConfig = {\n experimental: {\n swcPlugins: [['@lingui/swc-plugin', {}]],\n },\n webpack: (config) => {\n config.module.rules.push({\n test: /\\.po$/,\n use: {\n loader: '@lingui/loader',\n },\n });\n\n return config;\n },\n};\n\nexport default nextConfig;\n",fileName:s}),t("src/app/page.tsx"),t("src/app/layout.tsx"),t("src/app/favicon.ico"),t("src/app/globals.css");
@@ -0,0 +1 @@
1
+ import{n as e}from"./npm-install-CsYXwCS0.js";import"child_process";import"fs";e([{name:"web-ggf",version:"latest"},{name:"js-cookie",version:"^3.0.5"},{name:"daisyui",version:"latest",dev:!0},{name:"@types/js-cookie",version:"^3.0.6",dev:!0}]);
@@ -0,0 +1 @@
1
+ async function i(){try{await import("./index-D2RdtCtg.js"),await import("./index-TZeQiMQl.js"),await import("./index-DK7oafLf.js"),await import("./index-DO4ucSmr.js"),await import("./index-cJPNUbWu.js")}catch(i){console.error(i),process.exit(1)}}export{i as nextjs15};
package/bin/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ "nextjs15"===process.argv[2]&&import("./index-h2TvLleI.js").then(e=>e.nextjs15());
@@ -0,0 +1 @@
1
+ import{execSync as n}from"child_process";import{existsSync as r}from"fs";const e={npm:{install:"install",devFlag:"-D",pin:"@"},pnpm:{install:"add",devFlag:"-D",pin:"@"},yarn:{install:"add",devFlag:"--dev",pin:"@"},bun:{install:"add",devFlag:"-d",pin:"@"}};function t(n,r){const{install:t,devFlag:i,pin:o}=e[n];return`${n} ${t}${r.dev?` ${i}`:""} ${r.name}${o}${r.version}`}function i(e,i=function(){if(r("pnpm-lock.yaml"))return"pnpm";if(r("yarn.lock"))return"yarn";if(r("package-lock.json"))return"npm";if(r("bun.lockb"))return"bun";try{return n("pnpm --version",{stdio:"ignore"}),"pnpm"}catch{}try{return n("yarn --version",{stdio:"ignore"}),"yarn"}catch{}return"npm"}()){try{for(const r of e)process.stdout.write(`⌛ Installing "${r.name}"...`),n(`${t(i,r)} --silent`,{stdio:"ignore",cwd:process.cwd()}),process.stdout.write(`\r✅ Installed "${r.name}@${r.version}"\n`)}catch(n){console.error("❌ Failed to install dependencies:",n?.message),process.exit(1)}}export{i as n};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "web-ggf",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "type": "module",
9
9
  "bin": {
10
- "web-ggf-nextjs15": "./bin/nextjs15/index.js"
10
+ "web-ggf": "./bin/index.js"
11
11
  },
12
12
  "exports": {
13
13
  "./apollo-nextjs-client": {
@@ -41,7 +41,7 @@
41
41
  "build": "npm run build:client && npm run build:server && npm run build:bin",
42
42
  "build:client": "rollup -c rollup.client.config.mjs",
43
43
  "build:server": "rollup -c rollup.server.config.mjs",
44
- "build:bin": "rollup -c rollup.bin.nextjs15.config.mjs",
44
+ "build:bin": "rollup -c rollup.bin.config.mjs",
45
45
  "build:watch": "rollup -c rollup.client.config.mjs --watch",
46
46
  "prebuild:bin": "rm -rf bin",
47
47
  "prebuild": "rm -rf dist",
@@ -1,55 +0,0 @@
1
- import * as fs from 'fs';
2
- import * as path from 'path';
3
-
4
- function findOrInitialsFile(pathWithNameExtension) {
5
- if (isExist(pathWithNameExtension)) {
6
- console.warn(`❎ ${pathWithNameExtension} is existing`);
7
- return path.join(process.cwd(), pathWithNameExtension);
8
- }
9
- for (const pathName of pathWithNameExtension.split('/').reduce((acc, cur, idx) => {
10
- if (idx === 0)
11
- return [cur];
12
- return [...acc, `${acc.slice(-1)[0]}/${cur}`];
13
- }, [])) {
14
- if (pathName.includes('.'))
15
- continue;
16
- if (!isExist(pathName)) {
17
- console.warn(`${pathName} is not exist`);
18
- mkdirSync(pathName);
19
- }
20
- else
21
- console.warn(`${pathName} is exist`);
22
- }
23
- return path.join(process.cwd(), pathWithNameExtension);
24
- }
25
- function deleteFile(filePath) {
26
- if (isExist(filePath)) {
27
- fs.unlinkSync(getFilePath(filePath));
28
- console.warn(`${filePath} is removed`);
29
- }
30
- }
31
- function getFilePath(name) {
32
- return path.join(process.cwd(), name);
33
- }
34
- function isExist(name) {
35
- return fs.existsSync(getFilePath(name));
36
- }
37
- function mkdirSync(name) {
38
- fs.mkdirSync(getFilePath(name), { recursive: true });
39
- return console.warn(`🆗 ${name} directory created`);
40
- }
41
- function readUtf8File(filePath) {
42
- return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
43
- }
44
- function writeFileSyncWithLog({ targetPath, content, fileName, option }) {
45
- try {
46
- fs.writeFileSync(targetPath, content, option);
47
- console.warn(`🆗 -> ${fileName} successfully ${fs.existsSync(targetPath) ? 'updated' : 'created'}`);
48
- }
49
- catch (err) {
50
- console.error('❌ Error creating file:', err);
51
- }
52
- }
53
-
54
- export { deleteFile as d, findOrInitialsFile as f, getFilePath as g, readUtf8File as r, writeFileSyncWithLog as w };
55
- //# sourceMappingURL=file-helper-D3QczOlm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-helper-D3QczOlm.js","sources":["../../src/src/bin/nextjs15/helper/file-helper.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIM,SAAU,kBAAkB,CAAC,qBAA6B,EAAA;AAC9D,IAAA,IAAI,OAAO,CAAC,qBAAqB,CAAC,EAAE;AAClC,QAAA,OAAO,CAAC,IAAI,CAAC,KAAK,qBAAqB,CAAA,YAAA,CAAc,CAAC;QACtD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,qBAAqB,CAAC;IACxD;AACA,IAAA,KAAK,MAAM,QAAQ,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAa,EAAE,GAAG,EAAE,GAAG,KAAI;QACzF,IAAI,GAAG,KAAK,CAAC;YAAE,OAAO,CAAC,GAAG,CAAC;AAC3B,QAAA,OAAO,CAAC,GAAG,GAAG,EAAE,CAAA,EAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAA,CAAE,CAAC;AAC/C,IAAA,CAAC,EAAE,EAAE,CAAC,EAAE;AACN,QAAA,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE;AAC5B,QAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;AACtB,YAAA,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAA,aAAA,CAAe,CAAC;YACxC,SAAS,CAAC,QAAQ,CAAC;QACrB;;AAAO,YAAA,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAA,SAAA,CAAW,CAAC;IAC7C;IACA,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,qBAAqB,CAAC;AACxD;AAEM,SAAU,UAAU,CAAC,QAAgB,EAAA;AACzC,IAAA,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE;QACrB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AACpC,QAAA,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAA,WAAA,CAAa,CAAC;IACxC;AACF;AAEM,SAAU,WAAW,CAAC,IAAY,EAAA;IACtC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC;AACvC;AAEM,SAAU,OAAO,CAAC,IAAY,EAAA;IAClC,OAAO,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACzC;AACM,SAAU,SAAS,CAAC,IAAY,EAAA;AACpC,IAAA,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACpD,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAA,kBAAA,CAAoB,CAAC;AACrD;AAEM,SAAU,YAAY,CAAC,QAAgB,EAAA;AAI3C,IAAA,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvD;AAEM,SAAU,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAA6B,EAAA;AACvG,IAAA,IAAI;QACF,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC;QAC7C,OAAO,CAAC,IAAI,CAAC,CAAA,MAAA,EAAS,QAAQ,CAAA,cAAA,EAAiB,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,SAAS,CAAA,CAAE,CAAC;IACrG;IAAE,OAAO,GAAG,EAAE;AACZ,QAAA,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,GAAG,CAAC;IAC9C;AACF;;;;"}
@@ -1,132 +0,0 @@
1
- import { f as findOrInitialsFile, w as writeFileSyncWithLog } from './file-helper-D3QczOlm.js';
2
- import 'fs';
3
- import 'path';
4
-
5
- const fileName$7 = `APP_CONFIG.d.ts`;
6
- const targetPath$7 = findOrInitialsFile(`src/configs/${fileName$7}`);
7
- const content$7 = `export interface AppConfigProps {
8
- appIndex: string;
9
- tokens: {
10
- uid: string;
11
- secret: string;
12
- };
13
- map: {
14
- googleMapApiKey: string;
15
- defaultCenter: { lat: number; lng: number };
16
- defaultZoom: number;
17
- };
18
- }
19
- `;
20
- writeFileSyncWithLog({ targetPath: targetPath$7, content: content$7, fileName: fileName$7 });
21
-
22
- const fileName$6 = `APP_CONFIG.ts`;
23
- const targetPath$6 = findOrInitialsFile(`src/configs/${fileName$6}`);
24
- const content$6 = `import type { AppConfigProps } from './APP_CONFIG.d';
25
-
26
- export const APP_CONFIG: AppConfigProps = {
27
- appIndex: '<app_index>',
28
- tokens: { uid: '<uid>', secret: '<secret>' },
29
- map: { googleMapApiKey: '', defaultCenter: { lat: 47.919045645074696, lng: 106.91752910614014 }, defaultZoom: 12 },
30
- };
31
- `;
32
- writeFileSyncWithLog({ targetPath: targetPath$6, content: content$6, fileName: fileName$6 });
33
-
34
- const fileName$5 = `HOST_CONFIG.d.ts`;
35
- const targetPath$5 = findOrInitialsFile(`src/configs/${fileName$5}`);
36
- const content$5 = `export interface HostConfigProps {
37
- host: string;
38
- elastic: {
39
- host: string;
40
- username: string;
41
- password: string;
42
- };
43
- }
44
- `;
45
- writeFileSyncWithLog({ targetPath: targetPath$5, content: content$5, fileName: fileName$5 });
46
-
47
- const fileName$4 = `HOST_CONFIG.ts`;
48
- const targetPath$4 = findOrInitialsFile(`src/configs/${fileName$4}`);
49
- const content$4 = `import type { HostConfigProps } from './HOST_CONFIG.d';
50
-
51
- export const HOST_CONFIG: HostConfigProps = {
52
- host: '<host_url>',
53
- elastic: {
54
- host: '<host_url>',
55
- username: '<username>',
56
- password: '<password>'
57
- }
58
- };
59
- `;
60
- writeFileSyncWithLog({ targetPath: targetPath$4, content: content$4, fileName: fileName$4 });
61
-
62
- const fileName$3 = `MIDDLEWARE_CONFIG.ts`;
63
- const targetPath$3 = findOrInitialsFile(`src/configs/${fileName$3}`);
64
- const content$3 = `import { NextJSAuthMiddleware } from 'web-ggf/nextjs-middleware';
65
-
66
- import { APP_CONFIG } from '@/configs/APP_CONFIG';
67
- import { HOST_CONFIG } from '@/configs/HOST_CONFIG';
68
- import { STORE_KEY_CONFIG } from '@/configs/STORE_KEY_CONFIG';
69
-
70
- export const middlewareConfig = new NextJSAuthMiddleware({
71
- userTokenKey: STORE_KEY_CONFIG.USER_TOKEN,
72
- clientTokenKey: STORE_KEY_CONFIG.CLIENT_TOKEN,
73
- refreshTokenKey: STORE_KEY_CONFIG.REFRESH_TOKEN,
74
- appKey: APP_CONFIG.tokens.uid,
75
- appSecret: APP_CONFIG.tokens.secret,
76
- host: HOST_CONFIG.host,
77
- protectedPaths: [/^(\\/\\w{2})?\\/account\\/?/, /^(\\/\\w{2})?\\/checkout\\/address\\/?/, /^(\\/\\w{2})?\\/checkout\\/confirm\\/?/],
78
- secure: process.env.NODE_ENV === 'production',
79
- locale: 'mn',
80
- });
81
- `;
82
- writeFileSyncWithLog({ targetPath: targetPath$3, content: content$3, fileName: fileName$3 });
83
-
84
- const fileName$2 = `STORE_KEY_CONFIG.d.ts`;
85
- const targetPath$2 = findOrInitialsFile(`src/configs/${fileName$2}`);
86
- const content$2 = `export interface StoreKeyConfigProps {
87
- USER_TOKEN: string;
88
- REFRESH_TOKEN: string;
89
- CLIENT_TOKEN: string;
90
- EXPIRES_IN: string;
91
- }
92
- `;
93
- writeFileSyncWithLog({ targetPath: targetPath$2, content: content$2, fileName: fileName$2 });
94
-
95
- const fileName$1 = `STORE_KEY_CONFIG.ts`;
96
- const targetPath$1 = findOrInitialsFile(`src/configs/${fileName$1}`);
97
- const content$1 = `import type { StoreKeyConfigProps } from './STORE_KEY_CONFIG.d';
98
-
99
- import { APP_CONFIG } from '@/configs/APP_CONFIG';
100
-
101
- export const STORE_KEY_CONFIG: StoreKeyConfigProps = {
102
- USER_TOKEN: \`\${APP_CONFIG.appIndex}_USER_TOKEN\`,
103
- CLIENT_TOKEN: \`\${APP_CONFIG.appIndex}CLIENT_TOKEN\`,
104
- REFRESH_TOKEN: \`\${APP_CONFIG.appIndex}REFRESH_TOKEN\`,
105
- EXPIRES_IN: \`\${APP_CONFIG.appIndex}EXPIRES_IN\`,
106
- };
107
- `;
108
- writeFileSyncWithLog({ targetPath: targetPath$1, content: content$1, fileName: fileName$1 });
109
-
110
- const fileName = `index.css`;
111
- const targetPath = findOrInitialsFile(`src/configs/THEME_CONFIG/${fileName}`);
112
- const content = `@plugin "daisyui" {
113
- /*noinspection CssUnknownProperty*/
114
- themes: light --default, dark --prefersdark;
115
- }
116
- @plugin "daisyui/theme" {
117
- /*noinspection CssUnknownProperty*/
118
- default: true;
119
- name: light;
120
- --color-primary: #EE3562;
121
- --color-secondary: teal;
122
- }
123
- @plugin "daisyui/theme" {
124
- /*noinspection CssUnknownProperty*/
125
- prefersdark: true;
126
- name: dark;
127
- --color-primary: #EE3562;
128
- --color-secondary: teal;
129
- }
130
- `;
131
- writeFileSyncWithLog({ targetPath, content, fileName });
132
- //# sourceMappingURL=index-BbfKFDuQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BbfKFDuQ.js","sources":["../../src/src/bin/nextjs15/configs/APP_CONFIG_D.ts","../../src/src/bin/nextjs15/configs/APP_CONFIG.ts","../../src/src/bin/nextjs15/configs/HOST_CONFIG_D.ts","../../src/src/bin/nextjs15/configs/HOST_CONFIG.ts","../../src/src/bin/nextjs15/configs/MIDDLEWARE_CONFIG.ts","../../src/src/bin/nextjs15/configs/STORE_KEY_CONFIG_D.ts","../../src/src/bin/nextjs15/configs/STORE_KEY_CONFIG.ts","../../src/src/bin/nextjs15/configs/THEME_CONFIG.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["fileName","targetPath","content"],"mappings":";;;;AAEA,MAAMA,UAAQ,GAAG,CAAA,eAAA,CAAiB;AAClC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;CAYf;AACD,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACfvD,MAAMA,UAAQ,GAAG,CAAA,aAAA,CAAe;AAChC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;CAOf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACXvD,MAAMA,UAAQ,GAAG,CAAA,gBAAA,CAAkB;AACnC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;CAQf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACZvD,MAAMA,UAAQ,GAAG,CAAA,cAAA,CAAgB;AACjC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;CAUf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACdvD,MAAMA,UAAQ,GAAG,CAAA,oBAAA,CAAsB;AACvC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACrBvD,MAAMA,UAAQ,GAAG,CAAA,qBAAA,CAAuB;AACxC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;CAMf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACVvD,MAAMA,UAAQ,GAAG,CAAA,mBAAA,CAAqB;AACtC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;CAUf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACdvD,MAAM,QAAQ,GAAG,CAAA,SAAA,CAAW;AAC5B,MAAM,UAAU,GAAG,kBAAkB,CAAC,4BAA4B,QAAQ,CAAA,CAAE,CAAC;AAC7E,MAAM,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;CAkBf;AAED,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,120 +0,0 @@
1
- import { f as findOrInitialsFile, w as writeFileSyncWithLog, d as deleteFile } from './file-helper-D3QczOlm.js';
2
- import 'fs';
3
- import 'path';
4
-
5
- const fileName$5 = `page.tsx`;
6
- const targetPath$5 = findOrInitialsFile(`src/app/[locale]/auth/${fileName$5}`);
7
- const content$5 = `export default function AuthPage() {
8
- return <div>AuthPage</div>;
9
- }
10
- `;
11
- writeFileSyncWithLog({ targetPath: targetPath$5, content: content$5, fileName: fileName$5 });
12
-
13
- const fileName$4 = `globals.css`;
14
- const targetPath$4 = findOrInitialsFile(`src/app/[locale]/${fileName$4}`);
15
- const content$4 = `@import "tailwindcss";
16
- @import "../../configs/THEME_CONFIG/index.css";
17
- `;
18
- writeFileSyncWithLog({ targetPath: targetPath$4, content: content$4, fileName: fileName$4 });
19
-
20
- const fileName$3 = `page.tsx`;
21
- const targetPath$3 = findOrInitialsFile(`src/app/[locale]/${fileName$3}`);
22
- const content$3 = `import { t } from '@lingui/core/macro';
23
-
24
- import { initLingui, PageLangParam } from '@/locales/init-lingui';
25
-
26
- export default async function Page({ params }: PageLangParam) {
27
- const { locale } = await params;
28
- initLingui(locale);
29
-
30
- return (
31
- <div>
32
- <p>{t\`Hello world\`}</p>
33
- </div>
34
- );
35
- }
36
- `;
37
- writeFileSyncWithLog({ targetPath: targetPath$3, content: content$3, fileName: fileName$3 });
38
-
39
- const fileName$2 = `layout.tsx`;
40
- const targetPath$2 = findOrInitialsFile(`src/app/[locale]/${fileName$2}`);
41
- const content$2 = `import { ReactNode } from 'react';
42
-
43
- import { i18n as Lingui18n } from '@lingui/core';
44
- import type { Metadata } from 'next';
45
-
46
- import './globals.css';
47
-
48
- import { allMessages } from '@/locales/lingui-server-instance';
49
- import { ApolloProvider } from '@/utils/apollo-provider';
50
- import { LinguiClientProvider } from '@/utils/linqui-client-provider';
51
-
52
- export default async function RootLayout({ children, params }: Readonly<{ children: ReactNode; params: Promise<{ locale: string }> }>) {
53
- const { locale } = await params;
54
- Lingui18n.loadAndActivate({ locale, messages: allMessages[locale] });
55
-
56
- return (
57
- <html lang={locale}>
58
- <body>
59
- <LinguiClientProvider initialLocale={locale} initialMessages={allMessages[locale]!}>
60
- <ApolloProvider>
61
- <>{children}</>
62
- </ApolloProvider>
63
- </LinguiClientProvider>
64
- </body>
65
- </html>
66
- );
67
- }
68
-
69
- export const metadata: Metadata = {
70
- title: 'Test title',
71
- description: 'Test description',
72
- };
73
- `;
74
- writeFileSyncWithLog({ targetPath: targetPath$2, content: content$2, fileName: fileName$2 });
75
-
76
- const fileName$1 = `middleware.ts`;
77
- const targetPath$1 = findOrInitialsFile(`src/${fileName$1}`);
78
- const content$1 = `import { NextRequest } from 'next/server';
79
-
80
- import { middlewareConfig } from '@/configs/MIDDLEWARE_CONFIG';
81
-
82
- export async function middleware(request: NextRequest) {
83
- return middlewareConfig.generateResponse(request as never);
84
- }
85
-
86
- export const config = {
87
- matcher: '/((?!api|_next/data|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)',
88
- };
89
- `;
90
- writeFileSyncWithLog({ targetPath: targetPath$1, content: content$1, fileName: fileName$1 });
91
-
92
- const fileName = `next.config.ts`;
93
- const targetPath = findOrInitialsFile(fileName);
94
- const content = `import type { NextConfig } from 'next';
95
-
96
- const nextConfig: NextConfig = {
97
- experimental: {
98
- swcPlugins: [['@lingui/swc-plugin', {}]],
99
- },
100
- webpack: (config) => {
101
- config.module.rules.push({
102
- test: /\\.po$/,
103
- use: {
104
- loader: '@lingui/loader',
105
- },
106
- });
107
-
108
- return config;
109
- },
110
- };
111
-
112
- export default nextConfig;
113
- `;
114
- writeFileSyncWithLog({ targetPath, content, fileName });
115
-
116
- deleteFile('src/app/page.tsx');
117
- deleteFile('src/app/layout.tsx');
118
- deleteFile('src/app/favicon.ico');
119
- deleteFile('src/app/globals.css');
120
- //# sourceMappingURL=index-BksocSTH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BksocSTH.js","sources":["../../src/src/bin/nextjs15/adjust-files/auth-page.ts","../../src/src/bin/nextjs15/adjust-files/globalcss.ts","../../src/src/bin/nextjs15/adjust-files/home-page.ts","../../src/src/bin/nextjs15/adjust-files/layout.ts","../../src/src/bin/nextjs15/adjust-files/middleware.ts","../../src/src/bin/nextjs15/adjust-files/next-config.ts","../../src/src/bin/nextjs15/adjust-files/unwanted.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["fileName","targetPath","content"],"mappings":";;;;AAEA,MAAMA,UAAQ,GAAG,CAAA,QAAA,CAAU;AAC3B,MAAMC,YAAU,GAAG,kBAAkB,CAAC,yBAAyBD,UAAQ,CAAA,CAAE,CAAC;AAC1E,MAAME,SAAO,GAAG,CAAA;;;CAGf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACPvD,MAAMA,UAAQ,GAAG,CAAA,WAAA,CAAa;AAC9B,MAAMC,YAAU,GAAG,kBAAkB,CAAC,oBAAoBD,UAAQ,CAAA,CAAE,CAAC;AACrE,MAAME,SAAO,GAAG,CAAA;;CAEf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACNvD,MAAMA,UAAQ,GAAG,CAAA,QAAA,CAAU;AAC3B,MAAMC,YAAU,GAAG,kBAAkB,CAAC,oBAAoBD,UAAQ,CAAA,CAAE,CAAC;AACrE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;;CAcf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;AClBvD,MAAMA,UAAQ,GAAG,CAAA,UAAA,CAAY;AAC7B,MAAMC,YAAU,GAAG,kBAAkB,CAAC,oBAAoBD,UAAQ,CAAA,CAAE,CAAC;AACrE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACpCvD,MAAMA,UAAQ,GAAG,CAAA,aAAA,CAAe;AAChC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,OAAOD,UAAQ,CAAA,CAAE,CAAC;AACxD,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;CAWf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACfvD,MAAM,QAAQ,GAAG,CAAA,cAAA,CAAgB;AACjC,MAAM,UAAU,GAAG,kBAAkB,CAAC,QAAQ,CAAC;AAC/C,MAAM,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;CAmBf;AAED,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;ACvBvD,UAAU,CAAC,kBAAkB,CAAC;AAC9B,UAAU,CAAC,oBAAoB,CAAC;AAChC,UAAU,CAAC,qBAAqB,CAAC;AACjC,UAAU,CAAC,qBAAqB,CAAC"}
@@ -1,48 +0,0 @@
1
- import { f as findOrInitialsFile, w as writeFileSyncWithLog } from './file-helper-D3QczOlm.js';
2
- import { n as npmInstall } from './npm-install-7LYQx09p.js';
3
- import 'fs';
4
- import 'path';
5
- import 'child_process';
6
-
7
- const fileName = `apollo-provider.tsx`;
8
- const targetPath = findOrInitialsFile(`src/utils/${fileName}`);
9
- const content = `'use client';
10
-
11
- import { ReactNode } from 'react';
12
-
13
- import cookies from 'js-cookie';
14
- import { ApolloWrapper, GenerateMakeClient } from 'web-ggf/apollo-nextjs-wrapper';
15
-
16
- import { HOST_CONFIG } from '@/configs/HOST_CONFIG';
17
- import { STORE_KEY_CONFIG } from '@/configs/STORE_KEY_CONFIG';
18
-
19
- export function ApolloProvider({ children }: { children: ReactNode }) {
20
- return (
21
- <ApolloWrapper
22
- makeClient={() =>
23
- new GenerateMakeClient({
24
- host: HOST_CONFIG.host,
25
- getToken: () => {
26
- const user = cookies.get(STORE_KEY_CONFIG.USER_TOKEN);
27
- const client = cookies.get(STORE_KEY_CONFIG.CLIENT_TOKEN);
28
- return user || client || '-';
29
- },
30
- })
31
- }
32
- >
33
- <>{children}</>
34
- </ApolloWrapper>
35
- );
36
- }
37
- `;
38
- writeFileSyncWithLog({ targetPath, content, fileName });
39
-
40
- npmInstall([
41
- { name: '@apollo/client', version: '^4.1.6' },
42
- { name: '@apollo/client-integration-nextjs', version: '^0.14.4' },
43
- { name: 'rxjs', version: '^7.8.2' },
44
- { name: 'graphql', version: '^16.13.1' },
45
- { name: 'apollo-upload-client', version: '^19.0.0' },
46
- { name: '@types/apollo-upload-client', version: '^19.0.0', dev: true },
47
- ]);
48
- //# sourceMappingURL=index-BxF5ETQg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BxF5ETQg.js","sources":["../../src/src/bin/nextjs15/graphql/apollo-provider.ts","../../src/src/bin/nextjs15/graphql/dependencies.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;AAEA,MAAM,QAAQ,GAAG,CAAA,mBAAA,CAAqB;AACtC,MAAM,UAAU,GAAG,kBAAkB,CAAC,aAAa,QAAQ,CAAA,CAAE,CAAC;AAE9D,MAAM,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Bf;AAED,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;ACjCvD,UAAU,CAAC;AACT,IAAA,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC7C,IAAA,EAAE,IAAI,EAAE,mCAAmC,EAAE,OAAO,EAAE,SAAS,EAAE;AACjE,IAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACnC,IAAA,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE;AACxC,IAAA,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,SAAS,EAAE;IACpD,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE;AACvE,CAAA,CAAC"}
@@ -1,134 +0,0 @@
1
- import { n as npmInstall } from './npm-install-7LYQx09p.js';
2
- import { f as findOrInitialsFile, w as writeFileSyncWithLog, g as getFilePath, r as readUtf8File } from './file-helper-D3QczOlm.js';
3
- import 'child_process';
4
- import 'fs';
5
- import 'path';
6
-
7
- npmInstall([
8
- { name: '@lingui/cli', version: 'latest', dev: true },
9
- { name: '@lingui/swc-plugin', version: '5.7.0', dev: true },
10
- { name: '@lingui/loader', version: 'latest', dev: true },
11
- { name: '@lingui/react', version: 'latest' },
12
- { name: '@lingui/core', version: 'latest' },
13
- ]);
14
-
15
- const fileName$4 = `init-lingui.ts`;
16
- const targetPath$4 = findOrInitialsFile(`src/locales/${fileName$4}`);
17
- const content$4 = `import { setI18n } from '@lingui/react/server';
18
-
19
- import { getI18nInstance } from './lingui-server-instance';
20
-
21
- export type PageLangParam = {
22
- params: Promise<{ locale: string }>;
23
- };
24
-
25
- export function initLingui(lang: string) {
26
- const i18n = getI18nInstance(lang);
27
- setI18n(i18n);
28
- return i18n;
29
- }
30
- `;
31
- writeFileSyncWithLog({ targetPath: targetPath$4, content: content$4, fileName: fileName$4 });
32
-
33
- const fileName$3 = `linqui-client-provider.tsx`;
34
- const targetPath$3 = findOrInitialsFile(`src/utils/${fileName$3}`);
35
- const content$3 = `'use client';
36
-
37
- import { type ReactNode, useState } from 'react';
38
-
39
- import { type Messages, setupI18n } from '@lingui/core';
40
- import { I18nProvider } from '@lingui/react';
41
-
42
- export function LinguiClientProvider({
43
- children,
44
- initialLocale,
45
- initialMessages,
46
- }: {
47
- children: ReactNode;
48
- initialLocale: string;
49
- initialMessages: Messages;
50
- }) {
51
- const [i18n] = useState(() =>
52
- setupI18n({
53
- locale: initialLocale,
54
- messages: { [initialLocale]: initialMessages },
55
- }),
56
- );
57
-
58
- return <I18nProvider i18n={i18n}>{children}</I18nProvider>;
59
- }
60
- `;
61
- writeFileSyncWithLog({ targetPath: targetPath$3, content: content$3, fileName: fileName$3 });
62
-
63
- const fileName$2 = `lingui.config.js`;
64
- const targetPath$2 = findOrInitialsFile(fileName$2);
65
- const content$2 = `/** @type {import('@lingui/conf').LinguiConfig} */
66
- module.exports = {
67
- locales: ['en', 'mn'],
68
- sourceLocale: 'en',
69
- fallbackLocales: { default: 'en' },
70
- catalogs: [
71
- {
72
- path: 'src/locales/{locale}',
73
- include: ['src/'],
74
- },
75
- ],
76
- format: 'po',
77
- orderBy: 'message',
78
- compileNamespace: 'ts',
79
- };
80
- `;
81
- writeFileSyncWithLog({ targetPath: targetPath$2, content: content$2, fileName: fileName$2 });
82
-
83
- const fileName$1 = `lingui-server-instance.ts`;
84
- const targetPath$1 = findOrInitialsFile(`src/locales/${fileName$1}`);
85
- const content$1 = `import 'server-only';
86
-
87
- import { I18n, Messages, setupI18n } from '@lingui/core';
88
-
89
- import linguiConfig from '../../lingui.config';
90
-
91
- const { locales } = linguiConfig;
92
- // optionally use a stricter union type
93
- type SupportedLocales = string;
94
-
95
- async function loadCatalog(locale: SupportedLocales): Promise<{
96
- [k: string]: Messages;
97
- }> {
98
- const { messages } = await import(\`./\${locale}.po\`);
99
- return {
100
- [locale]: messages,
101
- };
102
- }
103
- const catalogs = await Promise.all(locales.map(loadCatalog));
104
-
105
- // transform array of catalogs into a single object
106
- export const allMessages = catalogs.reduce((acc, oneCatalog) => ({ ...acc, ...oneCatalog }), {});
107
-
108
- type AllI18nInstances = { [K in SupportedLocales]: I18n };
109
-
110
- export const allI18nInstances: AllI18nInstances = locales.reduce((acc, locale) => {
111
- const messages = allMessages[locale] ?? {};
112
- const i18n = setupI18n({
113
- locale,
114
- messages: { [locale]: messages },
115
- });
116
- return { ...acc, [locale]: i18n };
117
- }, {});
118
-
119
- export const getI18nInstance = (locale: SupportedLocales): I18n => {
120
- if (!allI18nInstances[locale]) {
121
- console.warn(\`No i18n instance found for locale "\${locale}"\`);
122
- }
123
- return allI18nInstances[locale] || allI18nInstances['en']!;
124
- };
125
- `;
126
- writeFileSyncWithLog({ targetPath: targetPath$1, content: content$1, fileName: fileName$1 });
127
-
128
- const fileName = `package.json`;
129
- const targetPath = getFilePath(fileName);
130
- const content = readUtf8File(targetPath);
131
- content.scripts['lingui:extract:clean'] = `lingui extract --clean`;
132
- content.scripts['lingui:compile:typescript'] = `lingui compile --typescript`;
133
- writeFileSyncWithLog({ targetPath, content: JSON.stringify(content, null, 2), fileName, option: 'utf-8' });
134
- //# sourceMappingURL=index-C7IjWgfh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-C7IjWgfh.js","sources":["../../src/src/bin/nextjs15/lingui/dependencies.ts","../../src/src/bin/nextjs15/lingui/init-lingui.ts","../../src/src/bin/nextjs15/lingui/lingui-client-provider.ts","../../src/src/bin/nextjs15/lingui/lingui-config-js.ts","../../src/src/bin/nextjs15/lingui/lingui-server-instance.ts","../../src/src/bin/nextjs15/lingui/packagejson.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["fileName","targetPath","content"],"mappings":";;;;;;AAEA,UAAU,CAAC;IACT,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE;IACrD,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE;IAC3D,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE;AACxD,IAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC5C,IAAA,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC5C,CAAA,CAAC;;ACNF,MAAMA,UAAQ,GAAG,CAAA,cAAA,CAAgB;AACjC,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;CAaf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACjBvD,MAAMA,UAAQ,GAAG,CAAA,0BAAA,CAA4B;AAC7C,MAAMC,YAAU,GAAG,kBAAkB,CAAC,aAAaD,UAAQ,CAAA,CAAE,CAAC;AAC9D,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;AC7BvD,MAAMA,UAAQ,GAAG,CAAA,gBAAA,CAAkB;AACnC,MAAMC,YAAU,GAAG,kBAAkB,CAACD,UAAQ,CAAC;AAC/C,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;;;CAef;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;ACnBvD,MAAMA,UAAQ,GAAG,CAAA,yBAAA,CAA2B;AAC5C,MAAMC,YAAU,GAAG,kBAAkB,CAAC,eAAeD,UAAQ,CAAA,CAAE,CAAC;AAChE,MAAME,SAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCf;AAED,oBAAoB,CAAC,cAAED,YAAU,WAAEC,SAAO,YAAEF,UAAQ,EAAE,CAAC;;AC5CvD,MAAM,QAAQ,GAAG,CAAA,YAAA,CAAc;AAC/B,MAAM,UAAU,GAAG,WAAW,CAAC,QAAQ,CAAC;AACxC,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,CAAC;AAExC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,wBAAwB;AAClE,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC,GAAG,6BAA6B;AAE5E,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC"}
@@ -1,10 +0,0 @@
1
- import { n as npmInstall } from './npm-install-7LYQx09p.js';
2
- import 'child_process';
3
-
4
- npmInstall([
5
- { name: 'web-ggf', version: 'latest' },
6
- { name: 'js-cookie', version: '^3.0.5' },
7
- { name: 'daisyui', version: 'latest', dev: true },
8
- { name: '@types/js-cookie', version: '^3.0.6', dev: true },
9
- ]);
10
- //# sourceMappingURL=index-CnWNcsRs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CnWNcsRs.js","sources":["../../src/src/bin/nextjs15/base-dependencies/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAEA,UAAU,CAAC;AACT,IAAA,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE;AACtC,IAAA,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE;IACxC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE;IACjD,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE;AAC3D,CAAA,CAAC"}
@@ -1,19 +0,0 @@
1
- import { execSync } from 'child_process';
2
-
3
- //
4
- function npmInstall(dependencies) {
5
- try {
6
- for (const dep of dependencies) {
7
- process.stdout.write(`⌛ Installing "${dep.name}"...`);
8
- execSync(`npm i${dep.dev ? ' -D' : ''} ${dep.name}@${dep.version} --silent`, { stdio: 'ignore', cwd: process.cwd() });
9
- process.stdout.write(`\r✅ Installed "${dep.name}@${dep.version}"\n`);
10
- }
11
- }
12
- catch (error) {
13
- console.error('❌ Failed to install dependencies:', error?.message);
14
- process.exit(1);
15
- }
16
- }
17
-
18
- export { npmInstall as n };
19
- //# sourceMappingURL=npm-install-7LYQx09p.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"npm-install-7LYQx09p.js","sources":["../../src/src/bin/nextjs15/helper/npm-install.ts"],"sourcesContent":[null],"names":[],"mappings":";;AACA;AAEM,SAAU,UAAU,CAAC,YAAgE,EAAA;AACzF,IAAA,IAAI;AACF,QAAA,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE;YAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,cAAA,EAAiB,GAAG,CAAC,IAAI,CAAA,IAAA,CAAM,CAAC;AAErD,YAAA,QAAQ,CAAC,CAAA,KAAA,EAAQ,GAAG,CAAC,GAAG,GAAG,KAAK,GAAG,EAAE,CAAA,CAAA,EAAI,GAAG,CAAC,IAAI,CAAA,CAAA,EAAI,GAAG,CAAC,OAAO,CAAA,SAAA,CAAW,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;AACrH,YAAA,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,eAAA,EAAkB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,CAAA,GAAA,CAAK,CAAC;QACtE;IACF;IAAE,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAG,KAAe,EAAE,OAAO,CAAC;AAC7E,QAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACjB;AACF;;;;"}
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env node
2
- const init = process.argv[2];
3
- if (!init || init !== 'nextjs15') {
4
- console.error('Invalid init. Usage: npx web-ggf nextjs15');
5
- process.exit(1);
6
- }
7
- async function main() {
8
- try {
9
- await import('../_chunks/index-BbfKFDuQ.js');
10
- await import('../_chunks/index-BksocSTH.js');
11
- await import('../_chunks/index-BxF5ETQg.js');
12
- await import('../_chunks/index-C7IjWgfh.js');
13
- await import('../_chunks/index-CnWNcsRs.js');
14
- }
15
- catch (error) {
16
- console.error(error);
17
- process.exit(1);
18
- }
19
- }
20
- main().catch((error) => {
21
- console.error(error);
22
- process.exit(1);
23
- });
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/src/bin/nextjs15/index.ts"],"sourcesContent":[null],"names":[],"mappings":";AACA,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAE5B,IAAI,CAAC,IAAI,IAAI,IAAI,KAAK,UAAU,EAAE;AAChC,IAAA,OAAO,CAAC,KAAK,CAAC,2CAA2C,CAAC;AAC1D,IAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACjB;AAEA,eAAe,IAAI,GAAA;AACjB,IAAA,IAAI;AACF,QAAA,MAAM,OAAO,8BAAW,CAAC;AACzB,QAAA,MAAM,OAAO,8BAAgB,CAAC;AAC9B,QAAA,MAAM,OAAO,8BAAW,CAAC;AACzB,QAAA,MAAM,OAAO,8BAAU,CAAC;AACxB,QAAA,MAAM,OAAO,8BAAqB,CAAC;IACrC;IAAE,OAAO,KAAK,EAAE;AACd,QAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,QAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACjB;AACF;AAEA,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,KAAI;AACrB,IAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,IAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=auth-page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-page.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/auth-page.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=favicon.ico.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"favicon.ico.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/favicon.ico.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=globalcss.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globalcss.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/globalcss.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=home-page.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"home-page.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/home-page.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export * from './auth-page';
2
- export * from './globalcss';
3
- export * from './home-page';
4
- export * from './layout';
5
- export * from './middleware';
6
- export * from './next-config';
7
- export * from './unwanted';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/layout.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=middleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/middleware.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=next-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next-config.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/next-config.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=unwanted.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unwanted.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/adjust-files/unwanted.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/base-dependencies/index.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=APP_CONFIG.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"APP_CONFIG.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/APP_CONFIG.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=APP_CONFIG_D.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"APP_CONFIG_D.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/APP_CONFIG_D.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=HOST_CONFIG.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HOST_CONFIG.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/HOST_CONFIG.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=HOST_CONFIG_D.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HOST_CONFIG_D.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/HOST_CONFIG_D.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=MIDDLEWARE_CONFIG.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MIDDLEWARE_CONFIG.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/MIDDLEWARE_CONFIG.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=STORE_KEY_CONFIG.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"STORE_KEY_CONFIG.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/STORE_KEY_CONFIG.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=STORE_KEY_CONFIG_D.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"STORE_KEY_CONFIG_D.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/STORE_KEY_CONFIG_D.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=THEME_CONFIG.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"THEME_CONFIG.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/THEME_CONFIG.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=favicon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"favicon.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/favicon.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import './APP_CONFIG_D';
2
- import './APP_CONFIG';
3
- import './HOST_CONFIG_D';
4
- import './HOST_CONFIG';
5
- import './MIDDLEWARE_CONFIG';
6
- import './STORE_KEY_CONFIG_D';
7
- import './STORE_KEY_CONFIG';
8
- import './THEME_CONFIG';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AACtB,OAAO,iBAAiB,CAAC;AACzB,OAAO,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=apollo-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apollo-provider.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/graphql/apollo-provider.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dependencies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/graphql/dependencies.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from './apollo-provider';
2
- export * from './dependencies';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { WriteFileOptions } from 'fs';
2
- export declare function findOrInitialsFile(pathWithNameExtension: string): string;
3
- export declare function deleteFile(filePath: string): void;
4
- export declare function getFilePath(name: string): string;
5
- export declare function isExist(name: string): boolean;
6
- export declare function mkdirSync(name: string): void;
7
- export declare function readUtf8File(filePath: string): Record<string, any>;
8
- export declare function writeFileSyncWithLog({ targetPath, content, fileName, option }: WriteFileSyncWithLogProps): void;
9
- export interface WriteFileSyncWithLogProps {
10
- targetPath: string;
11
- content: string;
12
- fileName: string;
13
- option?: WriteFileOptions;
14
- }
15
- //# sourceMappingURL=file-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-helper.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/helper/file-helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAI3C,wBAAgB,kBAAkB,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAgBxE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAKjD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,UAEvC;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,WAEnC;AACD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,QAGrC;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CACpD,MAAM,EACN,GAAG,CACJ,CAEA;AAED,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,yBAAyB,QAOxG;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -1,6 +0,0 @@
1
- export declare function npmInstall(dependencies: {
2
- name: string;
3
- version: string;
4
- dev?: boolean;
5
- }[]): void;
6
- //# sourceMappingURL=npm-install.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"npm-install.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/helper/npm-install.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,QAY1F"}
@@ -1,14 +0,0 @@
1
- export declare function updatePackageJson({ scripts, devDependencies, dependencies }?: UpdatePackageJsonProps): Promise<void>;
2
- interface UpdatePackageJsonProps {
3
- scripts?: {
4
- [key: string]: string;
5
- };
6
- dependencies?: {
7
- [key: string]: string;
8
- };
9
- devDependencies?: {
10
- [key: string]: string;
11
- };
12
- }
13
- export {};
14
- //# sourceMappingURL=package-json-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-json-helper.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/helper/package-json-helper.ts"],"names":[],"mappings":"AAGA,wBAAsB,iBAAiB,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,GAAE,sBAA2B,iBAc9G;AAQD,UAAU,sBAAsB;IAC9B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACzC,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC7C"}
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- declare const init: string;
3
- declare function main(): Promise<void>;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/nextjs15/index.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,IAAI,QAAkB,CAAC;AAO7B,iBAAe,IAAI,kBAWlB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dependencies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/dependencies.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- export * from './dependencies';
2
- export * from './init-lingui';
3
- export * from './lingui-client-provider';
4
- export * from './lingui-config-js';
5
- export * from './lingui-server-instance';
6
- export * from './packagejson';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=init-lingui.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-lingui.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/init-lingui.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lingui-client-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lingui-client-provider.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/lingui-client-provider.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lingui-config-js.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lingui-config-js.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/lingui-config-js.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lingui-server-instance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lingui-server-instance.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/lingui-server-instance.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=packagejson.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"packagejson.d.ts","sourceRoot":"","sources":["../../../../src/bin/nextjs15/lingui/packagejson.ts"],"names":[],"mappings":""}