Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fde15e4

Browse files
authored
Merge pull request #26 from meili/develop
[release] 1.0.4
2 parents a181c31 + e86eb80 commit fde15e4

59 files changed

Lines changed: 2185 additions & 899 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,20 @@ customFileTypes:
479479
480480
## ○ 更新记录
481481
482+
### v1.0.4(2017.11.16)
483+
484+
- 新增 支持es6/es7新特性
485+
- 新增 支持创建空scope名称的组件
486+
- 修复 引用wxc组件路径依赖分析错误问题
487+
- 优化 脚手架首页模板换成@minui/wxc-example-menu导航菜单组件
488+
- 优化 min init 初始化项目
489+
- npm.dest 相对于 dest 目录下,避免因目标路径不在同一个目录下导致无法访问
490+
- 完善验证错误信息提示,增加多层用户输入校验
491+
- 增加创建组件选项
492+
- 优化 min new 创建组件的规则校验,只能包括小写字母,支持“-”分隔
493+
- 优化 config配置,包括scope和prefix
494+
495+
482496
### v1.0.3(2017.11.16)
483497
484498
- 修复windows系统下wxa文件的全局模板编辑后没有重新编译所有页面问题

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mindev/min-cli",
3-
"version": "1.0.3",
3+
"version": "1.0.4-beta.2",
44
"description": "小程序组件化开发环境,提供 cli 支持",
55
"main": "lib/index.js",
66
"repository": {

scaffold/assets/tab/dev.png

1.29 KB
Loading

scaffold/assets/tab/dev_hl.png

457 Bytes
Loading

scaffold/example/demos/demo-default.wxc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
export default {
77
config: {
88
usingComponents: {
9-
'<%= pkgName %>': '<%= scope %>/<%= pkgName %>'
9+
'<%= pkgName %>': '<%= npmScopeStr %><%= pkgName %>'
1010
}
1111
},
12-
data: {},
13-
methods: {}
12+
data: { },
13+
methods: { }
1414
}
1515
</script>
1616

scaffold/example/index.wxp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
'demo-default': './demos/demo-default'
1919
}
2020
},
21-
data: {}
21+
data: { }
2222
}
2323
</script>
2424

scaffold/package/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Install
66

77
``` bash
8-
$ min install <%= scope %>/<%= pkgName %>
8+
$ min install <%= npmScopeStr %><%= pkgName %>
99
```
1010
<% if (false) { %>
1111
## Usage
@@ -18,7 +18,7 @@ $ min install <%= scope %>/<%= pkgName %>
1818
export default {
1919
config: {
2020
components: {
21-
'<%= pkgName %>': '<%= scope %>/<%= pkgName %>'
21+
'<%= pkgName %>': '<%= npmScopeStr %><%= pkgName %>'
2222
}
2323
}
2424
}

scaffold/package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "<%= scope %>/<%= pkgName %>",
2+
"name": "<%= npmScopeStr %><%= pkgName %>",
33
"version": "<%= version %>",
44
"description": "<%= description %>",
55
"main": "dist/index.js",

scaffold/package/src/index.wxc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<script>
88
export default {
99
config: {
10-
usingComponents: {}
10+
usingComponents: { }
1111
},
12-
behaviors: [],
13-
properties: {},
14-
data: {},
15-
methods: {}
12+
behaviors: [ ],
13+
properties: { },
14+
data: { },
15+
methods: { }
1616
}
1717

1818
<% if (isPlugin) { %>
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
<template>
2-
<% if (useGlobalLayout) { %>
1+
<template><% if (useGlobalLayout) { %>
32
<view>
43
<layout-head></layout-head>
54

65
<!-- wxp template -->
76
<page></page>
87

98
<layout-foot></layout-foot>
10-
</view>
11-
<% } else { %>
12-
13-
<% } %>
9+
</view><% } %>
1410
</template>
1511

1612
<script>
@@ -32,15 +28,18 @@
3228
request: 10000
3329
}
3430
},
35-
globalData: {},
36-
onLaunch: function () {
37-
},
38-
onShow: function () {
39-
},
40-
onHide: function () {
41-
}
31+
globalData: { },
32+
onLaunch () { },
33+
onShow () { },
34+
onHide () { }
4235
}
4336
</script>
4437

4538
<style>
39+
page {
40+
background-color: #F8F8F8;
41+
height: 100%;
42+
font-size: 32rpx;
43+
line-height: 1.5;
44+
}
4645
</style>

0 commit comments

Comments
 (0)