{"id":18283023,"url":"https://github.com/zentered/makefile-example","last_synced_at":"2025-08-31T05:41:22.443Z","repository":{"id":49713153,"uuid":"118919023","full_name":"zentered/makefile-example","owner":"zentered","description":"Node.js Makefile and Environment","archived":false,"fork":false,"pushed_at":"2021-06-10T15:54:10.000Z","size":6,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-10T11:13:22.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zentered.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}},"created_at":"2018-01-25T13:55:01.000Z","updated_at":"2025-02-17T20:26:17.000Z","dependencies_parsed_at":"2022-07-26T14:30:06.372Z","dependency_job_id":null,"html_url":"https://github.com/zentered/makefile-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zentered/makefile-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fmakefile-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fmakefile-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fmakefile-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fmakefile-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zentered","download_url":"https://codeload.github.com/zentered/makefile-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zentered%2Fmakefile-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265445608,"owners_count":23766524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-05T13:07:01.251Z","updated_at":"2025-07-15T16:39:42.087Z","avatar_url":"https://github.com/zentered.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![HC](https://img.shields.io/badge/zentered-consulting-333333.svg?style=for-the-badge)]()\n\n# Makefile for test and development environment\n\nFull article: https://zentered.co/articles/makefile-for-node-js-developers/\n\nThis is an example on how we use the Makefile to simulate different environments.\n\n## Development\n`make dev` (NODE_ENV = development)\n\n## Test\n`make test` (NODE_ENV = test)\n\n    TAP version 13\n    # add\n    ok 1 1 + 1 = 2\n    # subtract\n    ok 2 1 - 1 = 0\n\n    1..2\n    # tests 2\n    # pass  2\n\n    # ok\n\n\n## Watch\n`make watch` (NODE_ENV = development)\n\n    change:test/index.js\n    TAP version 13\n    # add\n    add\n    ok 1 1 + 1 = 2\n    # subtract\n    subtract\n    ok 2 1 - 1 = 0\n\n    1..2\n    # tests 2\n    # pass  2\n\n    # ok\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzentered%2Fmakefile-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzentered%2Fmakefile-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzentered%2Fmakefile-example/lists"}