# coderyl-workflow **Repository Path**: coder-yl/coderyl-workflow ## Basic Information - **Project Name**: coderyl-workflow - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-28 - **Last Updated**: 2021-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 介绍 a personal workflow # 使用方法 ## 安装coderyl-workflow ``` npm i coderyl-workflow --save-dev ``` ## 执行目录添加配置文件coderyl.config.js 添加内容,如下: ```js module.exports = { // html模板替换数据 data: { pkg: require('./package.json'), date: new Date() }, // 构建配置 build:{ // 源文件目录 src: "src", // 临时目录 temp: "temp", // 发布目录 dist: "dist", // 公共资源目录(不做处理,直接复制操作) public: "public", // 具体文件,相对于src paths: { // 样式文件 style: "assets/styles/*.scss", // 脚本文件 script: "assets/scripts/*.js", // 页面文件 page: "*.html", // 图片文件 image: "assets/images/**", // 字体文件 font: "assets/fonts/**", } } } ``` ## package.json 添加脚本命令 支持 clean build start,如下: ```json { "scripts": { "clean": "coderyl-workflow clean", "build": "coderyl-workflow build", "start": "coderyl-workflow start" }, } ```