1 Star 1 Fork 1

lamphc / gulp-less-flexible

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

#gulp-seajs-jquery-flexible 静态资源项目构建

本项目可以帮你快速搭建手机端静态资源开发

##目录结构

│  .gitignore          # 忽略文件,比如 node_modules
│  package.json        # 项目配置
│  README.md           # 项目说明
│
│
├─ config/config.json   # gulp 基础配置
├─ gulpfile.js          # gulp 开发配置
│
│
├─ node_modules
│
├─ build                 # 打包目录
├─ src                   # 开发目录
│
└─src/js
    ├─ run.js          # 启动配置
    ├─ app.js          # 入口模块
    │
    ├─ libs            # 依赖库
    ├─ modules         # 业务模块
│       
├─less             # less文件
│
├─css              # 样式文件
│
├─fonts            # 放置iconfont字体
│ 
├─html             # 放置静态页面片段
│
│
└─img              # 放置图片
     │
     │
     └─ app_dev.html # 开发环境母版页(includes编译后的启动页为app.html)

##说明 css使用less进行预编译,依赖统一引入main.less中,经gulp编译统一构建到main.css中.

#如何使用

##安装

// 安装前请先确保已安装node和npm
// 需要提前在全局安装gulp,如果已安装请忽略
$ npm install gulp -g


// 安装成功后,再安装依赖
$ npm install

##运行 ####开发环境 // 创建开发静态服务器,实时监测代码刷新浏览器(less及html, js部分目录监测,可在gulpfile.js中修改监测范围)

$ gulp watch

####生产环境(打包) 预览可直接复制build目录下所有文件到服务器根目录即可

$ gulp

####本地访问

http://127.0.0.1:3600

####多终端设备访问 //本机安装有虚拟机需要禁用虚拟机网卡,关闭系统防火墙及私有vpn连接

http://yourip:3600
The MIT License (MIT) Copyright (c) 2016 Meng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

本项目可以帮你快速搭建手机端静态资源开发 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/mengi/gulp-less-flexible.git
git@gitee.com:mengi/gulp-less-flexible.git
mengi
gulp-less-flexible
gulp-less-flexible
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891