diff --git a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/Github/index.ts b/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/Github/index.ts deleted file mode 100644 index b86e730..0000000 --- a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/Github/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export const config = { - type: "npm", - displayName: "Github", - src: "githubplop" // npm i githubplop -}; - -export default function (plop) { - plop.load("githubplop"); -} diff --git a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/Github/package.json b/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/Github/package.json deleted file mode 100644 index e69de29..0000000 diff --git a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/componentReact/index.mjs b/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/componentReact/index.mjs deleted file mode 100644 index 1ae7c30..0000000 --- a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/componentReact/index.mjs +++ /dev/null @@ -1,9 +0,0 @@ -export default function (plop) { - plop.setGenerator("all", {}); - plop.setGenerator("Issues", {}); - plop.setGenerator("Github Actions", {}); -} -export const config = { - type: "local", - displayName: "Github" -}; diff --git a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/configINJ/index.mjs b/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/configINJ/index.mjs deleted file mode 100644 index ea88ebe..0000000 --- a/packages/myplop/src/templates/app copy/config/INEEDJOBTOSTARTWORK/profiles/webdev/generate/configINJ/index.mjs +++ /dev/null @@ -1,10 +0,0 @@ -export default function (plop) { - plop.setGenerator("all", {}); - plop.setGenerator("Issues", {}); - plop.setGenerator("Github Actions", {}); -} -export const config = { - type: "repo", - displayName: "Configs - INEEDJ", - src: "https://dwa.git" -}; diff --git a/packages/myplop/src/templates/app copy/plopfile.mjs b/packages/myplop/src/templates/app copy/plopfile.mjs deleted file mode 100644 index a6a861f..0000000 --- a/packages/myplop/src/templates/app copy/plopfile.mjs +++ /dev/null @@ -1,12 +0,0 @@ -import fs from "fs"; -import settings from "./settings.json" assert { type: "json" }; - -export default async function (plop) { - const [config, profile] = [settings.current.config, settings.current.profile]; - - const pathPlopFile = join(process.env.CONFIGPATH, config, profile, "generate"); - - const components = fs.readDirSync(process.env.CONFIGPATH); - - return plop.load(pathPlopFile); -} diff --git a/packages/myplop/src/templates/app copy/settings.json b/packages/myplop/src/templates/app copy/settings.json deleted file mode 100644 index cc014b3..0000000 --- a/packages/myplop/src/templates/app copy/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "current": { - "config": null, - "profile": null - } -} diff --git a/packages/myplop/src/templates/config/app/index.mjs b/packages/myplop/src/templates/config/app/index.mjs deleted file mode 100644 index 0408e13..0000000 --- a/packages/myplop/src/templates/config/app/index.mjs +++ /dev/null @@ -1,6 +0,0 @@ -export default async function (plop) { - // await plop.load(`${import.meta.url}/profiles/${appConfig.currentProfile}`); - // await plop.load(`./profiles/${appConfig.currentProfile}`); -} - -export const config = {}; diff --git a/packages/myplop/src/templates/config/local/plopfile.mjs b/packages/myplop/src/templates/config/local/plopfile.mjs deleted file mode 100644 index 393b3b6..0000000 --- a/packages/myplop/src/templates/config/local/plopfile.mjs +++ /dev/null @@ -1,13 +0,0 @@ -import { readFileSync } from "fs"; - -const appConfig = JSON.parse(readFileSync(`${import.meta.url}/settings.json`, "utf8")); - -export default async function (plop) { - // await plop.load(`${import.meta.url}/profiles/${appConfig.currentProfile}`); - // await plop.load(`./profiles/${appConfig.currentProfile}`); -} -// components - Generowane przez program nie przez usera -// pnpm MyPlop -// Każdy Component zwraca installConfig który określa czym jest i dane potrzebne -// Do instalacji -// index.ts - export default function(plop){} , export const config = {} diff --git a/packages/myplop/src/templates/config/local/profiles/default/index.js b/packages/myplop/src/templates/config/local/profiles/default/index.js deleted file mode 100644 index ff5d0dd..0000000 --- a/packages/myplop/src/templates/config/local/profiles/default/index.js +++ /dev/null @@ -1,12 +0,0 @@ -export default function (plop) { - plop.setGenerator("basics", { - description: "this is a skeleton plopfile", - prompts: [], // array of inquirer prompts - actions: [] // array of actions - }); - plop.setGenerator("basics2", { - description: "this is a skeleton plopfile", - prompts: [], // array of inquirer prompts - actions: [] // array of actions - }); -} diff --git a/packages/myplop/src/templates/config/local/settings.json b/packages/myplop/src/templates/config/local/settings.json deleted file mode 100644 index 72b1c0e..0000000 --- a/packages/myplop/src/templates/config/local/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "currentProfile": "default" -}