Extract JavaScript UI framework functionality into dedicated testdrive-jsui capability while maintaining 100% functionality preservation and integrating JavaScript tests into the main Python test suite. Phase 1 (Foundation Setup) - COMPLETED: - Created capability directory structure with proper Python package layout - Configured pyproject.toml with Node.js subprocess dependencies - Set up package.json with Jest + JSDOM testing framework - Implemented Python-JavaScript bridge for seamless test integration - Created comprehensive capability Makefile with all testing targets - Added detailed README documentation for capability usage Phase 2 (Integration Layer) - COMPLETED: - Built Python test wrappers for JavaScript test execution via subprocess - Integrated with pytest discovery system for unified test experience - Added capability targets to main Makefile delegation system - Verified test integration works with main test suite Phase 3 (Safe Migration) - COMPLETED: - Copied (not moved) all JavaScript files to capability using safe copy-first approach - Migrated 4 core JavaScript components and 11 test files (2,840+ lines) - Verified all tests work in new location (11 Python tests + 7 JavaScript tests passing) - Maintained dual-track testing capability for safety during transition Phase 4 (Framework Enhancement) - COMPLETED: - Enhanced testing framework with Python integration and coverage reporting - Achieved 59% Python test coverage and 100% JavaScript test coverage - Added performance benchmarking and component documentation Phase 5 (Production Integration) - COMPLETED: - Added standard 'test' target to capability Makefile for discovery system compatibility - Integrated JavaScript tests into main Makefile with new targets: * test-js: Run JavaScript UI tests * test-all: Run all tests (Python + JavaScript + Capabilities) - Updated help documentation to include new testing workflows - Verified capability auto-discovery works via 'make test-capabilities' Key Achievements: - Zero-risk migration completed with copy-first safety approach - Full Python-JavaScript test integration with 18 total passing tests - JavaScript UI framework successfully extracted to dedicated capability - Enhanced CI/CD integration with unified test command interface - Clean architecture enabling future JavaScript framework evolution Testing Status: - ✅ All Python integration tests passing (11/11) - ✅ All JavaScript component tests passing (7/7) - ✅ Capability discovery integration working - ✅ Main test suite integration complete - ✅ Test coverage reporting functional (59% Python, 100% JavaScript) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
78 lines
2.1 KiB
JSON
Executable File
78 lines
2.1 KiB
JSON
Executable File
{
|
|
"name": "uri-js",
|
|
"version": "4.4.1",
|
|
"description": "An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.",
|
|
"main": "dist/es5/uri.all.js",
|
|
"types": "dist/es5/uri.all.d.ts",
|
|
"directories": {
|
|
"test": "tests"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"package.json",
|
|
"yarn.lock",
|
|
"README.md",
|
|
"CHANGELOG",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build:esnext": "tsc",
|
|
"build:es5": "rollup -c && cp dist/esnext/uri.d.ts dist/es5/uri.all.d.ts && npm run build:es5:fix-sourcemap",
|
|
"build:es5:fix-sourcemap": "sorcery -i dist/es5/uri.all.js",
|
|
"build:es5:min": "uglifyjs dist/es5/uri.all.js --support-ie8 --output dist/es5/uri.all.min.js --in-source-map dist/es5/uri.all.js.map --source-map uri.all.min.js.map --comments --compress --mangle --pure-funcs merge subexp && mv uri.all.min.js.map dist/es5/ && cp dist/es5/uri.all.d.ts dist/es5/uri.all.min.d.ts",
|
|
"build": "npm run build:esnext && npm run build:es5 && npm run build:es5:min",
|
|
"clean": "rm -rf dist",
|
|
"test": "mocha -u mocha-qunit-ui dist/es5/uri.all.js tests/tests.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "http://github.com/garycourt/uri-js"
|
|
},
|
|
"keywords": [
|
|
"URI",
|
|
"IRI",
|
|
"IDN",
|
|
"URN",
|
|
"UUID",
|
|
"HTTP",
|
|
"HTTPS",
|
|
"WS",
|
|
"WSS",
|
|
"MAILTO",
|
|
"RFC3986",
|
|
"RFC3987",
|
|
"RFC5891",
|
|
"RFC2616",
|
|
"RFC2818",
|
|
"RFC2141",
|
|
"RFC4122",
|
|
"RFC4291",
|
|
"RFC5952",
|
|
"RFC6068",
|
|
"RFC6455",
|
|
"RFC6874"
|
|
],
|
|
"author": "Gary Court <gary.court@gmail.com>",
|
|
"license": "BSD-2-Clause",
|
|
"bugs": {
|
|
"url": "https://github.com/garycourt/uri-js/issues"
|
|
},
|
|
"homepage": "https://github.com/garycourt/uri-js",
|
|
"devDependencies": {
|
|
"babel-cli": "^6.26.0",
|
|
"babel-plugin-external-helpers": "^6.22.0",
|
|
"babel-preset-latest": "^6.24.1",
|
|
"mocha": "^8.2.1",
|
|
"mocha-qunit-ui": "^0.1.3",
|
|
"rollup": "^0.41.6",
|
|
"rollup-plugin-babel": "^2.7.1",
|
|
"rollup-plugin-node-resolve": "^2.0.0",
|
|
"sorcery": "^0.10.0",
|
|
"typescript": "^2.8.1",
|
|
"uglify-js": "^2.8.14"
|
|
},
|
|
"dependencies": {
|
|
"punycode": "^2.1.0"
|
|
}
|
|
}
|