# humphrey-pages **Repository Path**: hh_self/humphrey-pages ## Basic Information - **Project Name**: humphrey-pages - **Description**: 自动化构建工作流-npm模块 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-14 - **Last Updated**: 2025-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gulp自动化构建工作流 ## 安装 ```shell yarn add humphrey-pages --dev ``` ## 命令 ```shell # 清除临时文件 humphrey-pages clean # 构建项目 humphrey-pages build # 启动测试服务器 humphrey-pages develop ``` ## 配置文件 在项目根目录创建`pages.config.js`文件 ```js module.exports = { data: { menus: [ { name: 'Home', icon: 'aperture', link: 'index.html' }, { name: 'Features', link: 'features.html' }, { name: 'About', link: 'about.html' }, { name: 'Contact', link: '#', children: [ { name: 'CSDN', link: 'https://blog.csdn.net/weixin_46652769' }, { name: 'github', link: 'https://github.com/Humphrey2021' }, { name: 'divider' }, { name: 'About', link: 'https://github.com/Humphrey2021' } ] } ], pkg: require('./package.json'), date: new Date() }, build: { src: 'src', dist: 'dist', temp: '.tmp', public: 'public', paths: { styles: 'assets/styles/*.scss', scripts: 'assets/scripts/*.js', pages: '*.html', images: 'assets/images/**', fonts: 'assets/fonts/**' } } } ``` 可以自定义