UNPKG

genezio

Version:

Command line utility to interact with Genezio infrastructure.

89 lines (88 loc) 2.43 kB
import colors from "colors"; /* * When adding a new template, make sure a repository with the following link structure exists: * * https://github.com/Genez-io/${templateId}-backend-starter * * The `templateId` is the key of the template in the `backendTemplates` object. */ export const backendTemplates = { ts: { name: "TypeScript", pkgManager: "npm", coloring: colors.blue, }, js: { name: "JavaScript", pkgManager: "npm", coloring: colors.yellow, }, go: { name: "Golang (Experimental)", coloring: colors.cyan, }, "onboarding-ts": { name: "TypeScript for Onboarding", pkgManager: "npm", coloring: (s) => s, hidden: true, }, }; /* * When adding a new template, make sure a repository with the following link structure exists: * * https://github.com/Genez-io/${templateId}-frontend-starter */ export const frontendTemplates = { "react-ts": { name: "React (TypeScript)", pkgManager: "npm", coloring: colors.blue, }, "react-js": { name: "React (JavaScript)", pkgManager: "npm", coloring: colors.blue, }, "react-native": { name: "React Native (TypeScript)", pkgManager: "npm", coloring: colors.blue, }, "vue-ts": { name: "Vue (TypeScript)", pkgManager: "npm", coloring: colors.green, }, "vue-js": { name: "Vue (JavaScript)", pkgManager: "npm", coloring: colors.green, }, "svelte-ts": { name: "Svelte (TypeScript)", pkgManager: "npm", coloring: colors.red, }, "svelte-js": { name: "Svelte (JavaScript)", pkgManager: "npm", coloring: colors.red, }, flutter: { name: "Flutter", pkgManager: undefined, coloring: colors.magenta, }, "onboarding-react": { name: "React (TypeScript) for Onboarding", pkgManager: "npm", coloring: (s) => s, hidden: true, }, none: undefined, }; export const expressJsTemplate = "https://github.com/Genez-io/expressjs-starter"; export const serverlessFunctionJsTemplate = "https://github.com/Genez-io/serverlessjs-starter"; export const nitroJsTemplate = "https://github.com/Genez-io/nitrojs-starter"; export const nuxtTemplate = "https://github.com/Genez-io/nuxt-starter";