Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
willerce committed May 4, 2015
0 parents commit 9bfe6ad
Show file tree
Hide file tree
Showing 31 changed files with 2,191 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
*.zip
dev/
dist/
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "WxMoment-Workflow",
"version": "0.0.1",
"devDependencies": {
"async": "^0.9.0",
"browser-sync": "~2.6.4",
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-copy": "0.0.2",
"gulp-ejs": "^1.1.0",
"gulp-if": "^1.2.5",
"gulp-imagemin": "^2.2.1",
"gulp-less": "^3.0.1",
"gulp-minify-css": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.3",
"gulp-tmtsprite": "0.0.8",
"gulp-uglify": "^1.2.0",
"gulp-usemin2": "^0.2.4",
"gulp-watch": "^4.2.4",
"gulp-webp": "^2.2.0",
"gulp-zip": "^3.0.0",
"lodash": "^3.5.0",
"rc": "^1.0.1",
"tmt-ejs-helper": "^0.0.1"
},
"dependencies": {
"gulp-util": "^3.0.4",
"rd": "0.0.2"
}
}
10 changes: 10 additions & 0 deletions project/.tmtworkflowrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{

"livereload": {
"available": true,
"port": 8080,
"startPath": "html/index.html"
},

"support_webp": true
}
22 changes: 22 additions & 0 deletions project/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var gulp = require('gulp');
var fs = require('fs');
var path = require('path');

//注册
var deep = 3;
run_tasks('tasks');

function run_tasks(tasks_path) {
if (--deep < 0) {
throw new Error('something wrong in require tasks!');
return;
}

tasks_path = path.join('../', tasks_path);

if (fs.existsSync(tasks_path)) {
require(tasks_path)(gulp);
} else {
run_tasks(tasks_path);
}
}
3 changes: 3 additions & 0 deletions project/src/css/footer.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.footer {
background: #000;
}
9 changes: 9 additions & 0 deletions project/src/css/head.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.head {
background: #000;
color: #fff;
}

.head__logo {
font-size: 40px;
color: #fff;
}
4 changes: 4 additions & 0 deletions project/src/css/lib-reset.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* {
margin: 0;
padding: 0;
}
35 changes: 35 additions & 0 deletions project/src/css/office.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.office__excel {
height: 64px;
width: 64px;
background-image: url(../slice/office/excel.png);
}

.office__project {
height: 64px;
width: 64px;
background-image: url(../slice/office/project.png);
}

.office__publisher2 {
height: 64px;
width: 64px;
background-image: url(../slice/office/publisher.png);
}

.office__publisher {
height: 64px;
width: 64px;
background-image: url(../slice/office/publisher.png);
}

.office__word {
height: 64px;
width: 64px;
background-image: url(../slice/office/word.png);
}

.office__word2 {
height: 64px;
width: 64px;
background-image: url(../slice/office/word.png);
}
4 changes: 4 additions & 0 deletions project/src/css/style-workflow.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import "lib-reset";
@import "head";
@import "office";
@import "footer";
28 changes: 28 additions & 0 deletions project/src/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>WxMoment-Workflow</title>
<link rel="stylesheet" href="../css/style-workflow.css">
</head>
<body>

<div class="main">
<div>WxMoment-Workflow Content</div>
<img src="../img/avatar.png" alt=""/>
<h2>雪原图合并</h2>
<div>
<div class="office__excel"></div>
<div class="office__project"></div>
<div class="office__publisher"></div>
<div class="office__word"></div>
<!--同一张图片被两次引用-->
<div class="office__word2"></div>
</div>
</div>
<!-- build:js ../js/build.js -->
<script src="../js/zepto_modify.js"></script>
<script src="../js/pxloader.js"></script>
<!-- endbuild -->
</body>
</html>
Binary file added project/src/img/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added project/src/img/icon/cup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions project/src/js/lib.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Created by littledu on 15/4/24.
*/
;(function(){
console.log('lib.js run');
})();
2 changes: 2 additions & 0 deletions project/src/js/pxloader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions project/src/js/workflow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Created by littledu on 15/4/24.
*/
;(function(){
console.log('workflow.js run');
})();
Loading

0 comments on commit 9bfe6ad

Please sign in to comment.