Skip to content

Commit 9ab8d6d

Browse files
Merge branch 'master' into develop
2 parents ddd1f6a + cd5320c commit 9ab8d6d

File tree

6 files changed

+56
-6
lines changed

6 files changed

+56
-6
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div>
3+
<h2>Uuid: {{uuid ? uuid : 'no uuid'}}</h2>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
props: ['uuid'],
10+
data: function () {
11+
return {}
12+
}
13+
}
14+
</script>
15+
16+
<style lang="css">
17+
.test {
18+
color: blue;
19+
}
20+
</style>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div>
3+
<h3>Uuid2: {{uuid2 ? uuid2 : 'no uuid'}}</h3>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
props: ['uuid2'],
10+
data: function () {
11+
return {}
12+
}
13+
}
14+
</script>
15+
16+
<style lang="css">
17+
.test {
18+
color: blue;
19+
}
20+
</style>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const exampleMixin = {
2+
methods: {
3+
hello: function () {
4+
console.log('Hello');
5+
}
6+
}
7+
};
8+
9+
module.exports = exampleMixin;
10+
exports.default = exampleMixin;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "express-vue-renderer",
3-
"version": "0.6.1",
3+
"version": "0.6.3",
44
"description": "Rendering Engine for turning Vue files into Javascript Objects",
55
"homepage": "https://github.com/express-vue/express-vue-renderer",
66
"author": {
@@ -81,7 +81,7 @@
8181
"xss": "^0.3.3"
8282
},
8383
"devDependencies": {
84-
"ava": "^0.21.0",
84+
"ava": "^0.22.0",
8585
"babel-cli": "^6.24.1",
8686
"babel-plugin-transform-flow-strip-types": "^6.22.0",
8787
"babel-preset-env": "^1.6.0",
@@ -92,7 +92,7 @@
9292
"eslint-config-xo-space": "^0.16.0",
9393
"eslint-plugin-flowtype": "^2.35.0",
9494
"express": "^4.15.4",
95-
"flow-bin": "^0.52.0",
95+
"flow-bin": "^0.53.0",
9696
"flow-remove-types": "^1.2.1",
9797
"jest": "^20.0.4",
9898
"jest-cli": "^20.0.0",

src/utils/require.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class Options {
1313
rootPath: string;
1414
defaults: Models.Defaults;
1515
constructor(optsObj: Object) {
16-
this.vueFileRegex = /([\w/.\-_\d]*\.vue)/igm;
17-
this.requireRegex = /(require\(')([\w/.\-_\d]*\.vue)('\))/igm;
16+
this.vueFileRegex = /([\w/.\-@_\d]*\.vue)/igm;
17+
this.requireRegex = /(require\(')([\w/.\-@_\d]*\.vue)('\))/igm;
1818
this.appendPaths = optsObj.appendPaths || [];
1919
this.prependPaths = optsObj.prependPaths || [];
2020
this.rootPath = optsObj.rootPath || '';

0 commit comments

Comments
 (0)