Skip to content

MT-Libraries/MT-Project-Seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MT.Project.seed

Node项目模板/前端自动构建

Before

npm install

Usage

# 开发环境
# js/css模块化

# css
cd frontend && gulp watch

# js
cd frontend && webpack -w

# 临时编译
cd frontend && gulp css && gulp js

# 生产环境
cd frontend && gulp publish-css && gulp publish-js && gulp publish-tpl

Structure

├── backend
│   ├── app_run.json        # 运行环境
│   └── enum_env.json       # 运行环境枚举
├── frontend
│   ├── bower.json          # 包管理
│   ├── gulpfile.js         # gulp配置文件
│   ├── public
│   │   ├── css             # 开发与生产环境的css文件
│   │   ├── js              # 开发与生产环境的js文件
│   │   └── vendors         # 公共库
│   │       └── normalize.css
│   ├── src
│   │   ├── css
│   │   │   ├── less
│   │   │   └── less-page   # 待编译的css页面
│   │   ├── js
│   │   │   └── js-page     # 待编译的js页面
│   │   ├── rev             # 版本号信息
│   │   │   ├── css
│   │   │   └── js  
│   │   └── tpl
│   │       └── dev         # 开发环境模板
|   |       └── pro         # 生产环境模板
│   └── webpack.config.js   # js配置文件
└── package.json

License

The MIT License (MIT)

Copyright (c) 2015 Magic Term Libraries

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.