{"_id":"@blueos/converter","_rev":"2-6b407e1b84f7361af144714c3780d3f0","name":"@blueos/converter","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@blueos/converter","version":"1.0.0","license":"MIT","author":{"name":"JayFate"},"bin":{"bot":"bin/index.js","jax":"bin/index.js"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"unbuild --stub","build":"unbuild","patch-cjs":"tsx ../../scripts/patchCJS.ts","prepublishOnly":"npm run build"},"type":"module","engines":{"node":">=18.0.0"},"repository":{"type":"git","url":"git+https://github.com/JayFate/wx2qa.git","directory":"blueos/converter"},"bugs":{"url":"https://github.com/JayFate/wx2qa/issues"},"homepage":"https://github.com/JayFate/wx2qa/blob/main/blueos/converter/README.md","devDependencies":{"@babel/types":"^7.24.0","@jridgewell/gen-mapping":"^0.3.3","@jridgewell/trace-mapping":"^0.3.19","@types/babel__generator":"^7.6.8","@types/babel__traverse":"^7.20.5","@types/chalk":"^2.2.0","@types/node":"^20.11.26","@types/parse5":"5.0.3","debug":"^4.3.4","source-map-js":"^1.0.2"},"dependencies":{"@babel/core":"^7.24.3","@babel/generator":"^7.24.1","@babel/parser":"^7.24.1","@babel/preset-env":"^7.24.3","@babel/traverse":"^7.24.1","autoprefixer":"^10.4.16","chalk":"^5.3.0","cli-progress":"^3.12.0","commander":"^11.1.0","execa":"^8.0.1","fs-extra":"^11.2.0","glob":"^10.3.10","jest-diff":"^29.7.0","jszip":"^3.10.1","less":"^4.2.0","open":"^10.0.4","parse5":"5.0","postcss":"^8.4.35","postcss-selector-parser":"^6.0.16","radash":"^12.1.0","rimraf":"^5.0.5","sass":"^1.71.1","tailwindcss":"^3.3.3"},"_id":"@blueos/converter@1.0.0","gitHead":"f32f8ff20bb8946f4edc18547facdc061eb7d9f4","description":"# 使用指南","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-cFtnBjj53alSY3JL461UB/2vvU+r20zhybBhN7stCetPQQBTi2DRbFhmu3CwFraoqUUB0EzKHqhtZP/1sPxH+g==","shasum":"d44a1fc54343d4f321f7c5416b5a03d9bd9f74da","tarball":"https://registry.npmjs.org/@blueos/converter/-/converter-1.0.0.tgz","fileCount":37,"unpackedSize":9562783,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC666n6zCjYKmTEJKcJORu7iA/hMFOgXVskPcsjXY3lKAiEApqeh91OSViYJKKZWSCf7NQHfWmIIg7vTljNZ0yWyN+w="}]},"_npmUser":{"name":"jayfate","email":"37610029@qq.com"},"directories":{},"maintainers":[{"name":"jayfate","email":"37610029@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/converter_1.0.0_1711635410580_0.3738094411417012"},"_hasShrinkwrap":false},"1.0.1":{"name":"@blueos/converter","version":"1.0.1","license":"MIT","author":{"name":"JayFate"},"bin":{"boc":"bin/index.js","blc":"bin/index.js"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"unbuild --stub","build":"unbuild","patch-cjs":"tsx ../../scripts/patchCJS.ts","prepublishOnly":"npm run build"},"type":"module","engines":{"node":">=18.0.0"},"repository":{"type":"git","url":"git+https://github.com/JayFate/wx2qa.git","directory":"blueos/converter"},"bugs":{"url":"https://github.com/JayFate/wx2qa/issues"},"homepage":"https://github.com/JayFate/wx2qa/blob/main/blueos/converter/README.md","devDependencies":{"@babel/types":"^7.24.0","@jridgewell/gen-mapping":"^0.3.3","@jridgewell/trace-mapping":"^0.3.19","@types/babel__generator":"^7.6.8","@types/babel__traverse":"^7.20.5","@types/chalk":"^2.2.0","@types/node":"^20.11.26","@types/parse5":"5.0.3","debug":"^4.3.4","source-map-js":"^1.0.2"},"dependencies":{"@babel/core":"^7.24.3","@babel/generator":"^7.24.1","@babel/parser":"^7.24.1","@babel/preset-env":"^7.24.3","@babel/traverse":"^7.24.1","autoprefixer":"^10.4.16","chalk":"^5.3.0","cli-progress":"^3.12.0","commander":"^11.1.0","execa":"^8.0.1","fs-extra":"^11.2.0","glob":"^10.3.10","jest-diff":"^29.7.0","jszip":"^3.10.1","less":"^4.2.0","open":"^10.0.4","parse5":"5.0","postcss":"^8.4.35","postcss-selector-parser":"^6.0.16","radash":"^12.1.0","rimraf":"^5.0.5","sass":"^1.71.1","tailwindcss":"^3.3.3"},"_id":"@blueos/converter@1.0.1","gitHead":"08ddfd2213b183f1b8b51905668a85d6a3a19ad6","description":"# 使用指南","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-WT0A9dPFh1rP5WrPCBdY7HB/aXewUrB0BOY77Rt3SuwwBO7kmMaun0xX1ZSXRBmM/gasr6a9OERRxOhncU/U2Q==","shasum":"68cb745c344e61c896a584abf65c860a26b67f5c","tarball":"https://registry.npmjs.org/@blueos/converter/-/converter-1.0.1.tgz","fileCount":37,"unpackedSize":9562783,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMs9bnwpZlxjBEcwe3zxVUARjbknJQF9NsKt4vrvw0wAIhAJvO5BtfGsTkpke/rkO/y7fPlPWSLuQ9/fOjIzstgO2x"}]},"_npmUser":{"name":"jayfate","email":"37610029@qq.com"},"directories":{},"maintainers":[{"name":"jayfate","email":"37610029@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/converter_1.0.1_1711636593381_0.014067797774123258"},"_hasShrinkwrap":false},"1.0.2":{"name":"@blueos/converter","version":"1.0.2","license":"MIT","author":{"name":"JayFate"},"bin":{"boc":"bin/index.js","blc":"bin/index.js"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"unbuild --stub","build":"unbuild","patch-cjs":"tsx ../../scripts/patchCJS.ts","prepublishOnly":"npm run build"},"type":"module","engines":{"node":">=18.0.0"},"repository":{"type":"git","url":"git+https://github.com/JayFate/wx2qa.git","directory":"blueos/converter"},"bugs":{"url":"https://github.com/JayFate/wx2qa/issues"},"homepage":"https://github.com/JayFate/wx2qa/blob/main/blueos/converter/README.md","devDependencies":{"@babel/types":"^7.24.0","@jridgewell/gen-mapping":"^0.3.3","@jridgewell/trace-mapping":"^0.3.19","@types/babel__generator":"^7.6.8","@types/babel__traverse":"^7.20.5","@types/chalk":"^2.2.0","@types/node":"^20.11.26","@types/parse5":"5.0.3","debug":"^4.3.4","source-map-js":"^1.0.2"},"dependencies":{"@babel/core":"^7.24.3","@babel/generator":"^7.24.1","@babel/parser":"^7.24.1","@babel/preset-env":"^7.24.3","@babel/traverse":"^7.24.1","autoprefixer":"^10.4.16","chalk":"^5.3.0","cli-progress":"^3.12.0","commander":"^11.1.0","execa":"^8.0.1","fs-extra":"^11.2.0","glob":"^10.3.10","jest-diff":"^29.7.0","jszip":"^3.10.1","less":"^4.2.0","open":"^10.0.4","parse5":"5.0","postcss":"^8.4.35","postcss-selector-parser":"^6.0.16","radash":"^12.1.0","rimraf":"^5.0.5","sass":"^1.71.1","tailwindcss":"^3.3.3"},"_id":"@blueos/converter@1.0.2","gitHead":"d88a40e5530eb95a9a4f9bcfcc088654be7c1e62","description":"# 使用指南","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-hB86wbqEDB/Ybor38RpzLPsVj1gti0k+PN3vaoLMbviYJbCvxzgQcM5G038tfMDkB2/cxAx0jpCrE0qaggTwtQ==","shasum":"674e3a8106fa0dfcab50b7bb8c21c974df56a61b","tarball":"https://registry.npmjs.org/@blueos/converter/-/converter-1.0.2.tgz","fileCount":37,"unpackedSize":9563005,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoxSZ4XWMRC1vt9CNx4tjcoAKCXDmLsjn2wFciCk8Q0AiEA7PURswQYb03+heNVu6Ho5/9vtTKmC/xLXLwUFN1rHo8="}]},"_npmUser":{"name":"jayfate","email":"37610029@qq.com"},"directories":{},"maintainers":[{"name":"jayfate","email":"37610029@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/converter_1.0.2_1711636858906_0.9006556085416453"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-28T14:16:50.474Z","1.0.0":"2024-03-28T14:16:50.869Z","modified":"2024-03-28T14:40:59.271Z","1.0.1":"2024-03-28T14:36:33.587Z","1.0.2":"2024-03-28T14:40:59.085Z"},"maintainers":[{"name":"jayfate","email":"37610029@qq.com"}],"description":"# 使用指南","homepage":"https://github.com/JayFate/wx2qa/blob/main/blueos/converter/README.md","repository":{"type":"git","url":"git+https://github.com/JayFate/wx2qa.git","directory":"blueos/converter"},"author":{"name":"JayFate"},"bugs":{"url":"https://github.com/JayFate/wx2qa/issues"},"license":"MIT","readme":"# blueos-pack\n\n# 使用指南\n\n使用 npm 安装：\n\n```bash\ncd ~/Documents/miniprograms/miniprogram-1\n# 安装 @blueos/converter\nnpm i @blueos/converter g\n# 开始转换，并将转换后的代码输出到 output\nboc ./ ../output\n```\n\n使用源码：\n\n```bash\n# 切换到小程序目录\ncd ~/Documents/miniprograms/miniprogram-1\n# 执行转换命令，将转换后的快应用代码输出到 dist1 目录\nnode ~/Documents/wx2blueos/blueos/converter/bin/index.js ./ ../dist1\n```\n\n# 开发指南\n\n## 准备\n\n```sh\n# clone 代码\ngit clone https://github.com/JayFate/wx2qa.git\n# 执行以下命令安装依赖\nnpm i tsx -g\nnpm i pnpm -g\nnpm run install-deps\n# TODO clone 子仓，子仓用于单元测试\n# npm run clone\n```\n\n## 开发 blueos-converter\n\n```sh\n# 使用 unbuild 编译 blueos-converter 源码\nnpm run dev\n```\n\n之后就可以使用 blueos-converter 进行转换小程序代码了\n\n## 构建 blueos-pack\n\n```sh\nnpm run build\n```\n\n## 运行单元测试\n\n```bash\nnpx jest\n# 或者执行 npx jest -u 更新 snapshot\n```\n","readmeFilename":"README.md"}