Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-raisan/easyprepare
This tool is designed to enable efficient project setup (generation of env files, etc.).
https://github.com/code-raisan/easyprepare
cli cli-tool developer-tools
Last synced: about 2 months ago
JSON representation
This tool is designed to enable efficient project setup (generation of env files, etc.).
- Host: GitHub
- URL: https://github.com/code-raisan/easyprepare
- Owner: code-raisan
- Created: 2024-02-16T23:56:55.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-17T00:12:48.000Z (11 months ago)
- Last Synced: 2024-11-03T07:23:18.518Z (2 months ago)
- Topics: cli, cli-tool, developer-tools
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/easy-prepare
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Easy Prepare
プロジェクトの設定(envファイル等の生成)を効率的に行えるようにするためのツールです。
## Use
`.easy-prepare.js` をプロジェクトのルートに作成して以下のフォーマットで記述してください
```js
module.exports = {
version: 1,
workflows: {
select_environment: {
name: "Select environment",
type: "select",
options: [
{ name: "Develop", returnval: "development", do: (utils) => utils.copy(".env.sample", ".env.development") },
{ name: "Production", returnval: "production", do: (utils) => utils.copy(".env.sample", ".env.production") }
]
},
prepare_smtp_testing: {
name: "Ues SMTP testing?",
type: "select",
filter: (workflows) => workflows.select_environment.options === "development",
options: [
{ name: "Yes", do: (utils, workflows) => utils.envedit("SMTP_SERVER_HOST", "smtp.com",`.env.${workflows.select_environment.options}`) },
{ name: "No" },
]
},
set_default_developing_value: {
name: "Set default developing value.",
type: "task",
filter: (workflows) => workflows.select_environment.options === "development",
do: () =>{ console.log("DEFAULT RUN") }
}
}
};```