Skip to content

Commit

Permalink
add deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
keelii committed Feb 17, 2016
1 parent fa0dc8a commit d5bf709
Show file tree
Hide file tree
Showing 19 changed files with 109 additions and 157 deletions.
2 changes: 1 addition & 1 deletion .www/components/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var body = document.getElementsByTagName('body')[0];

body.className = 'wow';

body.setAttribute('data-type', 'wow');
// eslint will report error
// console.log("Hello World...");
})();
2 changes: 1 addition & 1 deletion .www/components/module/module.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="" class="mod ">
<div data-a="b" id="" class="mod ">
<div class="mt">
<h2></h2>
</div>
Expand Down
10 changes: 4 additions & 6 deletions .www/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>Wow is awsome.</title>
<title>wOw is awsome...</title>

<link type="text/css" rel="stylesheet" href="/components/main/main.css" />

<link type="text/css" rel="stylesheet" href="../components/module/module.css" />
<link type="text/css" rel="stylesheet" href="../components/sidebar/sidebar.css" />
<link type="text/css" rel="stylesheet" href="../components/footer/footer.css" />

</head>
<body>

<h1><s></s> Wow... </h1>

<small><em> @ </em></small>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab accusamus amet atque cum excepturi fuga inventore ipsa iste laborum nam, officiis possimus quam quas rem tempore, vitae voluptatem. Illo, repellat.</p>

Expand All @@ -25,7 +24,7 @@ <h2>CSS Sprite will auto generate:</h2>
<i class="sprite-3"></i>
</div>

<div id="mod1" class="mod m2">
<div data-a="b" id="mod1" class="mod m2">
<div class="mt">
<h2>mod1</h2>
</div>
Expand All @@ -52,7 +51,7 @@ <h3>img lists:</h3>
</ul>
</div>
</div>
<div id="mod-default" class="mod mod-def">
<div data-a="b" id="mod-default" class="mod mod-def">
<div class="mt">
<h2>mod-default</h2>
</div>
Expand Down Expand Up @@ -87,7 +86,6 @@ <h3>img lists:</h3>




<script src="/components/main/main.js"></script>

<script src="../components/module/module.js"></script>
Expand Down
4 changes: 1 addition & 3 deletions .www/views/layout/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>Wow is awsome.</title>
<title>wOw is awsome...</title>

<link type="text/css" rel="stylesheet" href="/components/main/main.css" />

</head>
<body>



<script src="/components/main/main.js"></script>

</body>
Expand Down
1 change: 1 addition & 0 deletions .www/views/maco/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@




4 changes: 1 addition & 3 deletions .www/views/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>Wow is awsome.</title>
<title>wOw is awsome...</title>

<link type="text/css" rel="stylesheet" href="/components/main/main.css" />



</head>
<body>



<script src="/components/main/main.js"></script>

</body>
Expand Down
111 changes: 0 additions & 111 deletions app/components/main/handlebarsStr.css.handlebars

This file was deleted.

1 change: 0 additions & 1 deletion app/components/main/i/test.html

This file was deleted.

2 changes: 1 addition & 1 deletion app/components/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var body = document.getElementsByTagName('body')[0];

body.className = 'wow';

body.setAttribute('data-type', 'wow');
// eslint will report error
// console.log("Hello World...");
})();
2 changes: 1 addition & 1 deletion app/components/module/module.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% import 'views/maco/default.html' as wow %}
<div id="{{ id }}" class="mod {{ class }}">
<div data-a="b" id="{{ id }}" class="mod {{ class }}">
<div class="mt">
<h2>{{ id }}</h2>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{% block body %}
<h1><s></s> Wow... </h1>

<small><em> {{ name }} @ {{ version }} </em></small>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab accusamus amet atque cum excepturi fuga inventore ipsa iste laborum nam, officiis possimus quam quas rem tempore, vitae voluptatem. Illo, repellat.</p>

Expand Down
4 changes: 1 addition & 3 deletions app/views/layout/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>Wow is awsome.</title>
<title>wOw is awsome...</title>

{% block style %}
{{ Tag('link', '/components/main/main.css') }}
{% endblock %}

</head>
<body>

{% block body %} {% endblock %}


{% block script %}
{{ Tag('script', '/components/main/main.js') }}
{% endblock %}
Expand Down
1 change: 1 addition & 0 deletions app/views/maco/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<script src="{{ src }}"></script>
{%- endmacro %}


{# ----- 代码片段 ----- #}

{% macro imgList(id='plist', class='plist', source="data-lazy-img", length=5, width=100, height=100, text_size=30, text='Wow') -%}
Expand Down
10 changes: 5 additions & 5 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ if (cmd) {
const settings = require(process.cwd() + '/default')(argv);

if (cmdMap[cmd]) {
try {
// try {
require(`../cli/${cmdMap[cmd]}`)(settings);
} catch (error) {
console.log('Module [%s] loaded error.', cmdMap[cmd]);
console.dir(error);
}
// } catch (error) {
// console.log('Module [%s] loaded error.', cmdMap[cmd]);
// console.error(error);
// }
} else {
console.log('Command [%s] not found.', cmd);
}
Expand Down
Loading

0 comments on commit d5bf709

Please sign in to comment.