# genjs **Repository Path**: cafe0/genjs ## Basic Information - **Project Name**: genjs - **Description**: vue项目代码生成器 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-29 - **Last Updated**: 2023-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # genjs ## 使用 1. 拷贝commond文件夹和commond.js到你的Vue项目根目录。 2. commond/resource目录下修改代码模板。 3. 修改commond/config.js配置文件。 4. 根目录执行命令: ``` // 安装 node commond generate resource <模块名> // 卸载 node commond generate unload <模块名> ``` 或者在项目package.json中的scripts中加入: ``` "scripts": { "generate": "node commond generate resource", "generate:unload": "node commond generate unload" }, ``` 执行指令: ``` npm run generate <模块名> npm run generate:unload <模块名> ```