{"_id":"@dreamjser/h5-vite-cli","_rev":"3-580846498da4f6664c4024293e5a32f2","name":"@dreamjser/h5-vite-cli","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@dreamjser/h5-vite-cli","version":"1.0.1","author":{"name":"dreamjser@gmail.com"},"license":"ISC","_id":"@dreamjser/h5-vite-cli@1.0.1","maintainers":[{"name":"dreamjser","email":"dreamjser@gmail.com"}],"homepage":"https://github.com/dreamjser/h5-vite-cli#readme","bugs":{"url":"https://github.com/dreamjser/h5-vite-cli/issues"},"bin":{"cli-test":"bin/test.js","cli-dev-m":"bin/dev_multiple.js","cli-dev-s":"bin/dev_single.js","cli-create":"bin/create.js","cli-build-m":"bin/build_multiple.js","cli-build-s":"bin/build_single.js"},"dist":{"shasum":"32efd102d59b4fbfee6c82f59b5417010461ed83","tarball":"https://registry.npmjs.org/@dreamjser/h5-vite-cli/-/h5-vite-cli-1.0.1.tgz","fileCount":15,"integrity":"sha512-ruK0uMzu1keCJI04DbN8oktFfn/mhMBd5DNu/CQeqPesg4Twf2B2EuHMnLvGWdKEkEpfneNS9Ex7Xs1FsHAoQA==","signatures":[{"sig":"MEYCIQDZrnPcRw/iOKzoOkZ/TNvgL9K74CdTyZXQWiWt76KIvgIhAPuL/ft4UBJCEnLI0PXpSUOC5Z9En3pM4/U33EMOGx3C","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27817},"type":"module","gitHead":"a7b3fcb6dda85ac189b16223930c981e6c7271c9","_npmUser":{"name":"dreamjser","email":"dreamjser@gmail.com"},"repository":{"url":"git+https://github.com/dreamjser/h5-vite-cli.git","type":"git"},"_npmVersion":"10.1.0","description":"基于 Vite 的 H5 应用开发 CLI 工具","directories":{},"_nodeVersion":"20.9.0","dependencies":{"ora":"6.3.1","jest":"^29.7.0","less":"^4.2.0","vite":"^5.1.4","chalk":"^5.3.0","eslint":"^8.57.0","history":"^5.3.0","postcss":"^8.4.40","ts-jest":"^29.3.4","prettier":"^3.3.3","commander":"^11.1.0","typescript":"^5.5.4","postcss-url":"^10.1.3","autoprefixer":"^10.4.19","postcss-import":"^15.1.0","@dreamjser/file":"^1.0.3","eslint-plugin-vue":"^10.0.0","@vitejs/plugin-vue":"^5.2.3","vite-plugin-eslint":"^1.8.1","@rollup/pluginutils":"^5.1.4","eslint-plugin-react":"^7.35.0","@vitejs/plugin-react":"^4.2.1","@dreamjser/h5-vite-cli":"link:","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"5.0.0-alpha.2","jest-environment-jsdom":"^29.7.0","vite-plugin-style-import":"^2.0.0","@typescript-eslint/parser":"^8.31.0","@vue/eslint-config-typescript":"^14.5.0","@typescript-eslint/eslint-plugin":"^8.31.0","@dreamjser/postcss-px-to-viewport":"^1.1.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/h5-vite-cli_1.0.1_1748184843985_0.4549874763188295","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dreamjser/h5-vite-cli","version":"1.0.2","author":{"name":"dreamjser@gmail.com"},"license":"ISC","_id":"@dreamjser/h5-vite-cli@1.0.2","maintainers":[{"name":"dreamjser","email":"dreamjser@gmail.com"}],"homepage":"https://github.com/dreamjser/h5-vite-cli#readme","bugs":{"url":"https://github.com/dreamjser/h5-vite-cli/issues"},"bin":{"cli-test":"bin/test.js","cli-dev-m":"bin/dev_multiple.js","cli-dev-s":"bin/dev_single.js","cli-create":"bin/create.js","cli-build-m":"bin/build_multiple.js","cli-build-s":"bin/build_single.js"},"dist":{"shasum":"ee019a5ccfa4c26760613fb2e25f4569fd54ccc7","tarball":"https://registry.npmjs.org/@dreamjser/h5-vite-cli/-/h5-vite-cli-1.0.2.tgz","fileCount":15,"integrity":"sha512-Xwiqyej+1/WyJw+Hn4fuQFMCYNFI97XDE2WwZ7DekHcfixk4rRoXOkHQFnHfwn/jVTT9HNlag18YEAQA5ew7Sg==","signatures":[{"sig":"MEYCIQDHimPEXpDXmG/NqrQLgC3cVgaQPMk/7waCxMCHktXNeAIhAIJkv2ZZ6JWc1HfKhJBmotHpKF8Wg5WGA37ueL/5kd6r","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26100},"type":"module","gitHead":"530817a51995a8be5e2735528f9eea1e66bdf598","_npmUser":{"name":"dreamjser","email":"dreamjser@gmail.com"},"repository":{"url":"git+https://github.com/dreamjser/h5-vite-cli.git","type":"git"},"_npmVersion":"10.1.0","description":"基于 Vite 的 H5 应用开发 CLI 工具","directories":{},"_nodeVersion":"20.9.0","dependencies":{"ora":"6.3.1","jest":"^29.7.0","less":"^4.2.0","vite":"^5.1.4","chalk":"^5.3.0","eslint":"^8.57.0","terser":"^5.40.0","history":"^5.3.0","postcss":"^8.4.40","ts-jest":"^29.3.4","prettier":"^3.3.3","commander":"^11.1.0","typescript":"^5.5.4","postcss-url":"^10.1.3","autoprefixer":"^10.4.19","postcss-import":"^15.1.0","@dreamjser/file":"^1.0.3","eslint-plugin-vue":"^10.0.0","@vitejs/plugin-vue":"^5.2.3","vite-plugin-eslint":"^1.8.1","@rollup/pluginutils":"^5.1.4","eslint-plugin-react":"^7.35.0","@vitejs/plugin-react":"^4.2.1","@dreamjser/h5-vite-cli":"link:","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"5.0.0-alpha.2","jest-environment-jsdom":"^29.7.0","vite-plugin-style-import":"^2.0.0","@typescript-eslint/parser":"^8.31.0","@vue/eslint-config-typescript":"^14.5.0","@typescript-eslint/eslint-plugin":"^8.31.0","@dreamjser/postcss-px-to-viewport":"^1.1.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/h5-vite-cli_1.0.2_1750004288398_0.7728128749385996","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@dreamjser/h5-vite-cli","version":"1.0.3","description":"基于 Vite 的 H5 应用开发 CLI 工具","author":{"name":"dreamjser@gmail.com"},"license":"ISC","type":"module","repository":{"type":"git","url":"git+https://github.com/dreamjser/h5-vite-cli.git"},"dependencies":{"@dreamjser/file":"^1.0.3","@dreamjser/h5-vite-cli":"link:","@dreamjser/postcss-px-to-viewport":"^1.1.2","@rollup/pluginutils":"^5.1.4","@typescript-eslint/eslint-plugin":"^8.31.0","@typescript-eslint/parser":"^8.31.0","@vitejs/plugin-react":"^4.2.1","@vitejs/plugin-vue":"^5.2.3","@vue/eslint-config-typescript":"^14.5.0","autoprefixer":"^10.4.19","chalk":"^5.3.0","commander":"^11.1.0","eslint":"^8.57.0","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"5.0.0-alpha.2","eslint-plugin-react":"^7.35.0","eslint-plugin-vue":"^10.0.0","history":"^5.3.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","less":"^4.2.0","ora":"6.3.1","postcss":"^8.4.40","postcss-import":"^15.1.0","postcss-url":"^10.1.3","prettier":"^3.3.3","terser":"^5.40.0","ts-jest":"^29.3.4","typescript":"^5.5.4","vite":"^5.1.4","vite-plugin-eslint":"^1.8.1","vite-plugin-style-import":"^2.0.0"},"bin":{"cli-create":"bin/create.js","cli-dev-s":"bin/dev_single.js","cli-dev-m":"bin/dev_multiple.js","cli-build-s":"bin/build_single.js","cli-build-m":"bin/build_multiple.js","cli-test":"bin/test.js"},"_id":"@dreamjser/h5-vite-cli@1.0.3","gitHead":"bc3d2dc951c8c2e2e4c9f9fe8d68f07ea5263473","bugs":{"url":"https://github.com/dreamjser/h5-vite-cli/issues"},"homepage":"https://github.com/dreamjser/h5-vite-cli#readme","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-hLQqBpQ+fO4yjRyFhHEkEquKSFCrY/+AlihFA7EXpGQwiZ5/lCW73G22R4wbLbJ9dEitnLlhkwDvoj3oEwKgyw==","shasum":"a775f18e85e9cd179e50ce43cc7d2483aa4c4354","tarball":"https://registry.npmjs.org/@dreamjser/h5-vite-cli/-/h5-vite-cli-1.0.3.tgz","fileCount":15,"unpackedSize":26489,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCPde9HesGWjK/heTOw7iSF7AK2RydG5KdqlJPjB2vNEAIhALt0MAfd6AIMeRy6i39fdgVphTH52/0uuSk8OsL7lfBd"}]},"_npmUser":{"name":"dreamjser","email":"dreamjser@gmail.com"},"directories":{},"maintainers":[{"name":"dreamjser","email":"dreamjser@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/h5-vite-cli_1.0.3_1750004956791_0.18144079741974406"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-25T14:54:03.870Z","modified":"2025-06-15T16:29:17.177Z","1.0.1":"2025-05-25T14:54:04.208Z","1.0.2":"2025-06-15T16:18:08.616Z","1.0.3":"2025-06-15T16:29:16.979Z"},"bugs":{"url":"https://github.com/dreamjser/h5-vite-cli/issues"},"author":{"name":"dreamjser@gmail.com"},"license":"ISC","homepage":"https://github.com/dreamjser/h5-vite-cli#readme","repository":{"type":"git","url":"git+https://github.com/dreamjser/h5-vite-cli.git"},"description":"基于 Vite 的 H5 应用开发 CLI 工具","maintainers":[{"name":"dreamjser","email":"dreamjser@gmail.com"}],"readme":"# @dreamjser/h5-vite-cli\n\n脚手架需要配合[@dreamjser/h5-template-generator](https://github.com/dreamjser/h5-template-generator.git)使用，使用无需单独安装\n\n## 执行命令\n\n### cli-create\n\n创建页面命令，通过该命令可以创建页面view和页面的配置文件，配合构建命令可以自动生成路由文件，使用时只需要关注view页面\n\n```\ncli-create mb_home/index/index 首页\n```\n\n+ 参数一：mb_home/index/index，页面路径，会自动创建如下目录的view文件，必须是三级目录\n\n+ 参数二：首页，页面标题\n\n\n### 构建命令\n\n`cli-dev-s` 单页面应用本地构建\n\n`cli-dev-m` 多页面应用本地构建\n\n`cli-build-s` 单页面应用打包\n\n`cli-build-m` 多页面应用打包\n\n```\ncli-dev-s mb_home,mb_login --framework=vue --platform=mobile --env=prod\n```\n\n+ 参数：mb_home,mb_login，构建模块，所有模块传all\n\n+ 选项-framework，可选值vue/react，项目所用的框架\n\n+ 选项-platform，可选值mobile/desktop，项目平台\n\n+ 选项-env，项目的环境变量，根据项目文件夹config下的env.xxx.js取值，环境变量可通过全局变量GLOBAL_ENV.xxx获取\n\n### 测试命令\n\n`cli-test` 集成jest，参数参考jest参数\n","readmeFilename":"README.md"}