Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
feat: 项目模板初始化;
Browse files Browse the repository at this point in the history
  • Loading branch information
houquan committed Jun 25, 2018
1 parent 26d7b17 commit 3a5b44a
Show file tree
Hide file tree
Showing 22 changed files with 119 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "pandola/standard"
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
node_modules/
.vscode
dist/
Empty file added build.conf.js
Empty file.
11 changes: 11 additions & 0 deletions config/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appId: ''
appName: ''
version: ''
development:
env: 'development'
test:
env: 'test'
preproduction:
env: 'preproduction'
production:
env: 'production'
19 changes: 19 additions & 0 deletions icons/0-wechat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added mock/home.json
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pandolajs/pandora-boilerplate-wechat",
"version": "1.0.0",
"version": "0.0.0",
"description": "wechat mini program boilerplate.",
"main": "index.js",
"scripts": {
Expand Down
Empty file added src/app.js
Empty file.
3 changes: 3 additions & 0 deletions src/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
Empty file added src/app.less
Empty file.
11 changes: 11 additions & 0 deletions src/components/demo/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @fileOverview Demo 组件脚本
* @author sizhao | 870301137@qq.com
* @version 1.0.0 | 2018-06-25 | sizhao
*/

Component({
properties: {
name: String
}
})
3 changes: 3 additions & 0 deletions src/components/demo/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"component": true
}
10 changes: 10 additions & 0 deletions src/components/demo/index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @fileOverview Demo 组件样式
* @author sizhao | 870301137@qq.com
* @version 1.0.0 | 2018-06-25 | sizhao
*/

.demo {
font-size: 32rpx;
color: #999;
}
7 changes: 7 additions & 0 deletions src/components/demo/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
@fileOverview Demo 组件模板
@author sizhao | 870301137@qq.com
@version 1.0.0 | 2018-06-25 | sizhao // 初始版本
-->

<view class="demo">Hello, {{name}}! This is Demo Component.</view>
Binary file added src/images/404.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 src/pages/home/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* @fileOverview 首页脚本
* @author sizhao | 870301137@qq.com
* @version 1.0.0 | 2018-06-25 | sizhao
*/

3 changes: 3 additions & 0 deletions src/pages/home/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
11 changes: 11 additions & 0 deletions src/pages/home/index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @fileOverview 首页脚本
* @author sizhao | 870301137@qq.com
* @version 1.0.0 | 2018-06-25 | sizhao
*/

.home {
padding: 40rpx 32rpx;
font-size: 32rpx;
color: #333;
}
9 changes: 9 additions & 0 deletions src/pages/home/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!--
@fileOverview 首页模板
@author sizhao | 870301137@qq.com
@version 1.0.0 | 2018-06-25 | sizhao // 初始版本
-->

<view class="home">
Hello, Pandolajs!
</view>
Empty file added src/services/home.js
Empty file.
9 changes: 9 additions & 0 deletions src/utils/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @fileOverview 工具方法
* @author sizhao | 870301137@qq.com
* @version 1.0.0 | 2018-06-25 | sizhao
*/

export const sayHello = () => {
console.log('Hello, Pandolajs!')
}

0 comments on commit 3a5b44a

Please sign in to comment.