{"id":26430657,"url":"https://github.com/straightcurve/mei","last_synced_at":"2026-05-07T13:11:31.038Z","repository":{"id":105913910,"uuid":"488375930","full_name":"straightcurve/mei","owner":"straightcurve","description":"transpile TypeScript build scripts to CMake","archived":false,"fork":false,"pushed_at":"2025-03-15T16:27:51.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T22:59:19.226Z","etag":null,"topics":["build-system","cmake","cpp","npm","transpiler","typescript"],"latest_commit_sha":null,"homepage":"","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/straightcurve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-03T22:04:40.000Z","updated_at":"2025-03-15T16:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"96805135-38c9-4e50-aaf0-7e3a568d5892","html_url":"https://github.com/straightcurve/mei","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/straightcurve/mei","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straightcurve%2Fmei","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straightcurve%2Fmei/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straightcurve%2Fmei/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straightcurve%2Fmei/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/straightcurve","download_url":"https://codeload.github.com/straightcurve/mei/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straightcurve%2Fmei/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32739045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["build-system","cmake","cpp","npm","transpiler","typescript"],"created_at":"2025-03-18T05:33:06.057Z","updated_at":"2026-05-07T13:11:31.021Z","avatar_url":"https://github.com/straightcurve.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mei\n\n~~Simple C++ build system because I hate CMake~~\n\ni still hate CMake but **mei** is now a generator for CMake configs\n\n## TODO\n\n- [ ] ~~Switch to clang~~\n- [ ] ~~Generate compile commands instead of compiling\n  using [clang -Mj option](http://bcain-llvm.readthedocs.io/projects/clang/en/latest/ClangCommandLineReference/#cmdoption-clang-mj-arg)~~\n- [ ] Other things I will find a need for\n    - [x] Generate `CMakeLists.txt` files\n    - [x] Support [xrepo](https://xrepo.xmake.io/) packages\n    - [ ] Avoid creating an npm project (ship types somehow)\n\n## Usage\n\n### Create a New Project\n\nTo create a new project with the name **mei-is-cool**, run the following command:\n\n```bash\n$ npx @sweetacid/mei -n mei-is-cool\n[CREATE] mei-is-cool/src/main.cpp\n[CREATE] mei-is-cool/build.ts\n```\n\nThis will generate a new directory `mei-is-cool` with the following files:\n\n* `src/main.cpp` – example source file\n* `build.ts` – build configuration file (we'll edit this next)\n\n### OR\n\n### Add Config to an Existing Project\n\nIf you want to add the config to an existing project, navigate to your project directory and run:\n\n```bash\n$ npx @sweetacid/mei -c\nup to date, audited 21 packages in 2s\n\nfound 0 vulnerabilities\n[CREATE] build.ts\n```\n\nThis will add a `build.ts` file to your project directory that configures the build process.\n\n---\n\n### Edit the Generated `build.ts` file\n\n```typescript\n//  mei-is-cool/build.ts\n\nexport default async function (builder: Builder) {\n    await builder\n        .addExecutable(\"mei-is-cool\")      // Define the executable name\n        .addDirectory(\"src\")               // Add the source directory\n        .define(\"MEI_IS_REALLY_COOL\")      // Define a preprocessor macro\n        .build();                          // Trigger the build process\n}\n```\n\nYou can modify this file to suit your project's needs. For example, you can add more source directories, define\nadditional macros, or configure other build options. Check out the [test](test/) folder in this repository for examples.\n\n---\n\n### Generate CMakeLists.txt\n\nTo generate the CMakeLists.txt configuration for your project, simply run:\n\n```bash\n$ npx @sweetacid/mei\n# no output means all went well\n# check out CMakeLists.txt in the project's directory\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstraightcurve%2Fmei","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstraightcurve%2Fmei","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstraightcurve%2Fmei/lists"}