{"id":19316224,"url":"https://github.com/userfrosting/ts-log-adapter-gulplog","last_synced_at":"2025-04-22T16:33:18.894Z","repository":{"id":37955584,"uuid":"258091000","full_name":"userfrosting/ts-log-adapter-gulplog","owner":"userfrosting","description":"An adapter for the ts-log interface that pushes logging to gulplog with optional arguments JSON encoded.","archived":false,"fork":false,"pushed_at":"2025-04-15T09:26:49.000Z","size":3596,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T10:33:59.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/userfrosting.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":"userfrosting","ko_fi":"lcharette","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-04-23T04:08:01.000Z","updated_at":"2025-04-15T09:26:47.000Z","dependencies_parsed_at":"2023-10-02T23:28:15.320Z","dependency_job_id":"e0c152da-0047-4c99-a6ed-3f120725a746","html_url":"https://github.com/userfrosting/ts-log-adapter-gulplog","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fts-log-adapter-gulplog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fts-log-adapter-gulplog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fts-log-adapter-gulplog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userfrosting%2Fts-log-adapter-gulplog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/userfrosting","download_url":"https://codeload.github.com/userfrosting/ts-log-adapter-gulplog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250277508,"owners_count":21404048,"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-10T01:10:31.876Z","updated_at":"2025-04-22T16:33:18.609Z","avatar_url":"https://github.com/userfrosting.png","language":"TypeScript","funding_links":["https://opencollective.com/userfrosting","https://ko-fi.com/lcharette"],"categories":[],"sub_categories":[],"readme":"# ts-log-adapter-gulplog\n\n| Branch | Status |\n| ------ | ------ |\n| master | [![Continuous Integration](https://github.com/userfrosting/ts-log-adapter-gulplog/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/userfrosting/ts-log-adapter-gulplog/actions?query=branch:master+workflow:\"Continuous+Integration\") [![codecov](https://codecov.io/gh/userfrosting/ts-log-adapter-gulplog/branch/master/graph/badge.svg)](https://codecov.io/gh/userfrosting/ts-log-adapter-gulplog/branch/master) |\n\nAn adapter for the ts-log interface that pushes logging to gulplog.\n\nBefore being passed to `gulplog`, the message optional arguments will be processed to ensure proper logging. The `trace` log level does not map across and will be directed to `GulpLog.debug` with `TRACE: ` prefixed to logging.\n\n## Install\n\n```bash\nnpm i -D  @userfrosting/ts-log-adapter-gulplog\n```\n\n## Usage\n\n```js\n// gulpfile.mjs\nimport { GulpLogLogger } from \"@userfrosting/ts-log-adapter-gulplog\";\nimport { src, dest } from \"gulp\";\nimport AssetBundler from \"@userfrosting/gulp-bundle-assets\";\nimport cleanCss from \"gulp-clean-css\";\nimport concatCss from \"gulp-concat-css\";\nimport concatJs from \"gulp-concat-js\";\nimport uglify from \"gulp-uglify\";\n\nexport function bundle() {\n    const config = {\n        bundle: {\n            example: {\n                scripts: [\n                    \"foo.js\",\n                    \"bar.js\"\n                ],\n                styles: [\n                    \"foo.css\",\n                    \"bar.css\"\n                ]\n            }\n        },\n        logger: new GulpLogLogger(),\n    };\n    const joiner = {\n        Scripts(bundleStream, name) {\n            return bundleStream\n                .pipe(concatJs(name + \".js\"))// example.js\n                .pipe(uglify());\n        },\n        Styles(bundleStream, name) {\n            return bundleStream\n                .pipe(concatCss(name + \".css\"))// example.css\n                .pipe(cleanCss());\n        }\n    };\n\n    return src(\"src/**\")\n        .pipe(new AssetBundler(config, joiner))\n        .pipe(dest(\"public/assets/\"));\n}\n```\n\n```bash\n$ gulp bundle\n```\n\n## API\n\nSee [docs/api](./docs/api/index.md).\n\n## License\n\n[MIT](LICENSE)\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserfrosting%2Fts-log-adapter-gulplog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserfrosting%2Fts-log-adapter-gulplog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserfrosting%2Fts-log-adapter-gulplog/lists"}