{"id":20645117,"url":"https://github.com/jesusgraterol/gui-environment","last_synced_at":"2026-02-04T18:02:06.915Z","repository":{"id":237721676,"uuid":"795130315","full_name":"jesusgraterol/gui-environment","owner":"jesusgraterol","description":"The gui-environment package is a command-line tool that simplifies managing environment variables for your application. Easily set up different configurations based on your build mode (development or production) for a smooth development workflow.","archived":false,"fork":false,"pushed_at":"2025-07-28T14:36:01.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T01:59:27.947Z","etag":null,"topics":["development","env","environment","environment-variables","production","react","typescript","vite"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gui-environment","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jesusgraterol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T16:37:25.000Z","updated_at":"2025-07-28T14:35:45.000Z","dependencies_parsed_at":"2024-05-03T02:52:34.843Z","dependency_job_id":"bfbe47f7-fa27-4eaf-9592-55a6b4673b7d","html_url":"https://github.com/jesusgraterol/gui-environment","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"9790671701411ce2113bfb2845528908bd1a8ccb"},"previous_names":["jesusgraterol/gui-environment"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jesusgraterol/gui-environment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusgraterol%2Fgui-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusgraterol%2Fgui-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusgraterol%2Fgui-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusgraterol%2Fgui-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesusgraterol","download_url":"https://codeload.github.com/jesusgraterol/gui-environment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusgraterol%2Fgui-environment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29092714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","env","environment","environment-variables","production","react","typescript","vite"],"created_at":"2024-11-16T16:18:44.998Z","updated_at":"2026-02-04T18:02:06.909Z","avatar_url":"https://github.com/jesusgraterol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GUI Environment\n\nThe `gui-environment` package is a command-line tool that simplifies managing environment variables for your application. Easily set up different configurations based on your build mode (development, staging or production) for a smooth development workflow.\n\n\u003c/br\u003e\n\n## Getting Started\n\nInstall the package:\n```bash\nnpm i -D gui-environment\n```\n\nInitialize your project's environment:\n```bash\nnpx gui-environment --init\n\n# using a custom source path\nnpx gui-environment --src=\"custom-src\" --init\n```\n\nInclude the `gui-environment` binary in your `package.json` file:\n```json\n...\n\"scripts\": {\n  \"build-dev\": \"gui-environment --development \u0026\u0026 tsc -b \u0026\u0026 vite build \u0026\u0026 ...\",\n  \"build-staging\": \"gui-environment --staging \u0026\u0026 tsc -b \u0026\u0026 vite build \u0026\u0026 ...\",\n  \"build-production\": \"gui-environment --production \u0026\u0026 tsc -b \u0026\u0026 vite build \u0026\u0026 ...\",\n\n  // using a custom source path\n  \"build-dev\": \"gui-environment --src='custom-src' --development \u0026\u0026 tsc -b \u0026\u0026 vite build \u0026\u0026 ...\",\n}\n...\n```\n\n\n\n\n### Output Example\n\n```\nproject\n    │\n    src/\n    │  ├───components/\n    │  │         └───...\n    │  ├───environment/\n    │  |         ├───environment.development.ts\n    │  |         ├───environment.production.ts\n    │  |         ├───environment.staging.ts\n    │  |         ├───environment.ts\n    │  |         └───types.ts\n    │  └───main.tsx\n    │\n    package.json\n    tsconfig.json\n    ...\n```\n\n### Usage\n\nOnce initialized, include your environment variables in the following files accordingly:\n\n- `environment.development.ts`\n\n- `environment.production.ts`\n\n- `environment.staging.ts`\n\n- `types.ts`\n\nUse the environment variables anywhere:\n\n```typescript\n// main.tsx\nimport { ENVIRONMENT } from './environment/environment.ts';\n\nENVIRONMENT\n// {\n//    production: false,\n//    version: '1.0.0'\n// }\n```\n\n\u003cbr/\u003e\n\n**Important:** keep in mind that whatever data you include in these files will be public when your app is deployed. Avoid sharing sensitive information such as API keys, secrets, etc...\n\n\n\n\n\n\u003cbr/\u003e\n\n## Built With\n\n- TypeScript\n\n\n\n\n\n\u003cbr/\u003e\n\n## Running the Tests\n```bash\n# unit tests\nnpm run test:unit\n\n# integration tests\nnpm run test:integration\n```\n\n\n\n\u003cbr/\u003e\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesusgraterol%2Fgui-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesusgraterol%2Fgui-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesusgraterol%2Fgui-environment/lists"}