From 6ec7ce655517f1753eace2e26af8ff24841f9fa9 Mon Sep 17 00:00:00 2001 From: Carol Date: Sat, 19 Jul 2025 13:05:27 -0400 Subject: [PATCH 1/4] Update versioning in package.json and package-lock.json; enhance README and ROADMAP for clarity --- README.md | 2 ++ ROADMAP.md | 11 +---------- package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 8 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b232d39..f697ed3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/karoltheguy/PodletJS) +[![NPM Deployment](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml) # PodletJS JavaScript port of [Podlet](https://github.com/containers/podlet) diff --git a/ROADMAP.md b/ROADMAP.md index 3295220..2a7fccd 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,6 +1,6 @@ # PodletJS Roadmap -## Current Status: ✅ Feature Complete (v0.1.0) +## Current Status: ✅ Feature Complete (v1.0.0) PodletJS successfully implements the core functionality of the original Podlet (Rust) with: - **Docker run command parsing** (40+ flags supported) @@ -181,12 +181,3 @@ npx podlet-js compose docker-compose.yml --output ./quadlets/ ## Contributing Send pull a requests if you're interested in implementing any of these features. - ---- - -## Version Planning - -- **v0.1.x**: Bug fixes and minor improvements -- **v0.2.0**: CLI interface + Pod generation -- **v0.3.0**: Build context handling + Version compatibility -- **v1.0.0**: Production hardening + Extended features diff --git a/package-lock.json b/package-lock.json index ebafeb6..252eafe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "podlet-js", - "version": "0.1.0", + "name": "podletjs", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "podlet-js", - "version": "0.1.0", + "name": "podletjs", + "version": "1.0.1", "license": "MPL-2.0", "dependencies": { "composerize": "^1.7.2", diff --git a/package.json b/package.json index 62e2137..03a338e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "podletjs", - "version": "1.0.0", + "version": "1.0.1", "description": "JavaScript port of Podlet - Generate Podman Quadlet files from Docker run commands and compose files", "main": "src/index.js", "type": "module", From f3cfcb1bb6441485371d21b2202950ee6b1d1bd3 Mon Sep 17 00:00:00 2001 From: Carol Date: Sat, 19 Jul 2025 13:52:24 -0400 Subject: [PATCH 2/4] Enhance README with license badge and coverage charts; update Jest config for coverage reporting; add Node engine requirement in package-lock; include SVG badges for lines, branches, functions, and statements --- README.md | 2 ++ badges_output/branches.svg | 12 ++++++++++++ badges_output/branches_chart.svg | 5 +++++ badges_output/functions.svg | 12 ++++++++++++ badges_output/functions_chart.svg | 5 +++++ badges_output/lines.svg | 12 ++++++++++++ badges_output/lines_chart.svg | 5 +++++ badges_output/statements.svg | 12 ++++++++++++ badges_output/statements_chart.svg | 5 +++++ jest.config.js | 13 ++++++++++++- package-lock.json | 3 +++ 11 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 badges_output/branches.svg create mode 100644 badges_output/branches_chart.svg create mode 100644 badges_output/functions.svg create mode 100644 badges_output/functions_chart.svg create mode 100644 badges_output/lines.svg create mode 100644 badges_output/lines_chart.svg create mode 100644 badges_output/statements.svg create mode 100644 badges_output/statements_chart.svg diff --git a/README.md b/README.md index f697ed3..ffca918 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/karoltheguy/PodletJS) [![NPM Deployment](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml) +[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) +![Lines](./badges_output/lines.svg) ![Statements](./badges_output/statements.svg) ![Branches](./badges_output/branches.svg) ![Functions](./badges_output/functions.svg)np # PodletJS JavaScript port of [Podlet](https://github.com/containers/podlet) diff --git a/badges_output/branches.svg b/badges_output/branches.svg new file mode 100644 index 0000000..b94d5e3 --- /dev/null +++ b/badges_output/branches.svg @@ -0,0 +1,12 @@ + + + BRANCHES: 95% + + + + + + BRANCHES + 95% + + \ No newline at end of file diff --git a/badges_output/branches_chart.svg b/badges_output/branches_chart.svg new file mode 100644 index 0000000..ec0dcb6 --- /dev/null +++ b/badges_output/branches_chart.svg @@ -0,0 +1,5 @@ + + BRANCHES + + 95% + diff --git a/badges_output/functions.svg b/badges_output/functions.svg new file mode 100644 index 0000000..cab7602 --- /dev/null +++ b/badges_output/functions.svg @@ -0,0 +1,12 @@ + + + FUNCTIONS: 98% + + + + + + FUNCTIONS + 98% + + \ No newline at end of file diff --git a/badges_output/functions_chart.svg b/badges_output/functions_chart.svg new file mode 100644 index 0000000..d28642f --- /dev/null +++ b/badges_output/functions_chart.svg @@ -0,0 +1,5 @@ + + FUNCTIONS + + 98% + diff --git a/badges_output/lines.svg b/badges_output/lines.svg new file mode 100644 index 0000000..96c075a --- /dev/null +++ b/badges_output/lines.svg @@ -0,0 +1,12 @@ + + + LINES: 99% + + + + + + LINES + 99% + + \ No newline at end of file diff --git a/badges_output/lines_chart.svg b/badges_output/lines_chart.svg new file mode 100644 index 0000000..cba8c77 --- /dev/null +++ b/badges_output/lines_chart.svg @@ -0,0 +1,5 @@ + + LINES + + 99% + diff --git a/badges_output/statements.svg b/badges_output/statements.svg new file mode 100644 index 0000000..5c7c87e --- /dev/null +++ b/badges_output/statements.svg @@ -0,0 +1,12 @@ + + + STATEMENTS: 99% + + + + + + STATEMENTS + 99% + + \ No newline at end of file diff --git a/badges_output/statements_chart.svg b/badges_output/statements_chart.svg new file mode 100644 index 0000000..f1fc8ee --- /dev/null +++ b/badges_output/statements_chart.svg @@ -0,0 +1,5 @@ + + STATEMENTS + + 99% + diff --git a/jest.config.js b/jest.config.js index 8384c30..c3e0137 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,9 +5,20 @@ export default { '/test/unit/**/*.test.js', '/test/e2e/**/*.test.js' ], - transform: {}, + transform: { + '^.+\\.js$': 'babel-jest' + }, + collectCoverageFrom: [ + 'src/**/*.js' + ], collectCoverage: true, coverageDirectory: '/coverage', + coverageReporters: [ + "json-summary", + "text", + "lcov", + "clover" + ], testTimeout: 30000, verbose: true }; diff --git a/package-lock.json b/package-lock.json index 252eafe..a8a86cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,9 @@ "fs-extra": "^11.3.0", "jest": "^30.0.4", "tmp": "^0.2.3" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@ampproject/remapping": { From e6b16606f93641e2d1dd904d43898977d4268ed0 Mon Sep 17 00:00:00 2001 From: Carol Date: Sat, 19 Jul 2025 13:55:39 -0400 Subject: [PATCH 3/4] Fix formatting in README: remove extraneous characters from badge section --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffca918..e2c1da9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/karoltheguy/PodletJS) [![NPM Deployment](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) -![Lines](./badges_output/lines.svg) ![Statements](./badges_output/statements.svg) ![Branches](./badges_output/branches.svg) ![Functions](./badges_output/functions.svg)np + +![Lines](./badges_output/lines.svg) ![Statements](./badges_output/statements.svg) ![Branches](./badges_output/branches.svg) ![Functions](./badges_output/functions.svg) # PodletJS JavaScript port of [Podlet](https://github.com/containers/podlet) From 78be2123bd0d61e8f52dd2f4950acd5569768d3a Mon Sep 17 00:00:00 2001 From: Carol Date: Sat, 19 Jul 2025 14:01:10 -0400 Subject: [PATCH 4/4] Fix NPM Deployment badge to include branch parameter in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2c1da9..20d740a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/karoltheguy/PodletJS) -[![NPM Deployment](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml) +[![NPM Deployment](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml/badge.svg?branch=main)](https://github.com/karoltheguy/podletjs/actions/workflows/npm-publish.yml) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) ![Lines](./badges_output/lines.svg) ![Statements](./badges_output/statements.svg) ![Branches](./badges_output/branches.svg) ![Functions](./badges_output/functions.svg)