8000 build: 0.7.2 · raacker/nativescript-vue@1af118e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1af118e

Browse files
committed
build: 0.7.2
1 parent bda0f51 commit 1af118e

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

build/releaser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ inquirer
4545
cd packages/nativescript-vue-template-compiler && npm version ${version} && npm publish
4646
git add -A
4747
git add -f dist/index.js dist/index.js.map packages/nativescript-vue-template-compiler/index.js
48-
git commit -m "${buildMessage}"
48+
git commit --no-verify -m "${buildMessage}"
4949
npm run release:notes
50-
npm version ${version} -m "${releaseMessage}"
50+
npm version ${version} --commit-hooks false -m "${releaseMessage}"
5151
echo "Pushing to git"
5252
git push origin refs/tags/v${version}
5353
git push origin master

packages/nativescript-vue-template-compiler/index.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/*!
3-
* NativeScript-Vue-Template-Compiler v0.7.1
3+
* NativeScript-Vue-Template-Compiler v0.7.2
44
* (Using Vue v2.5.13)
55
* (c) 2017-2017 rigor789
66
* Released under the MIT license.
@@ -4045,11 +4045,27 @@ function preTransformNode(el) {
40454045
if (normalizeElementName(el.tag) !== 'listview') {
40464046
return
40474047
}
4048-
var exp = getAndRemoveAttr(el, 'for');
4048+
4049+
var vfor = getAndRemoveAttr(el, 'v-for');
4050+
delete el.attrsMap['v-for'];
4051+
if ('development' !== 'production' && vfor) {
4052+
warn$1(
4053+
"The v-for directive is not supported on a " + (el.tag) + ", " +
4054+
'Use the "for" attribute instead. For example, instead of ' +
4055+
"<" + (el.tag) + " v-for=\"" + vfor + "\"> use <" + (el.tag) + " for=\"" + vfor + "\">."
4056+
);
4057+
}
4058+
4059+
var exp = getAndRemoveAttr(el, 'for') || vfor;
40494060
if (!exp) { return }
40504061

40514062
var res = parseFor(exp);
4052-
if (!res) { return }
4063+
if (!res) {
4064+
{
4065+
warn$1(("Invalid for expression: " + exp));
4066+
}
4067+
return
4068+
}
40534069

40544070
addRawAttr(el, ':items', res.for);
40554071
addRawAttr(el, '+alias', res.alias);
@@ -4097,7 +4113,7 @@ var view = {
40974113
var modules = [class_, style, vTemplate, listView, view]
40984114

40994115
function model(el, dir, _warn) {
4100-
if (el.type === 1) {
4116+
if (el.type === 1 && el.plain) {
41014117
genDefaultModel(el, dir.value, dir.modifiers);
41024118
} else {
41034119
genComponentModel(el, dir.value, dir.modifiers);

packages/nativescript-vue-template-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-vue-template-compiler",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "template compiler for nativescript-vue",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)
0