File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,23 @@ const {
6
6
runLintFix,
7
7
printMessage,
8
8
} = require ( './utils' )
9
+ const pkg = require ( './package.json' )
10
+
11
+ const templateVersion = pkg . version
9
12
10
13
module . exports = {
11
14
helpers : {
12
- if_or : function ( v1 , v2 , options ) {
15
+ if_or ( v1 , v2 , options ) {
13
16
if ( v1 || v2 ) {
14
17
return options . fn ( this )
15
18
}
16
19
17
20
return options . inverse ( this )
18
21
} ,
19
22
} ,
23
+ template_version ( ) {
24
+ return templateVersion
25
+ } ,
20
26
prompts : {
21
27
name : {
22
28
type : 'string' ,
Original file line number Diff line number Diff line change 1
1
'use strict'
2
- // Template version: 1.2.7
2
+ // Template version: {{ template_version }}
3
3
// see http://vuejs-templates.github.io/webpack for documentation.
4
4
5
5
const path = require ( 'path' )
You can’t perform that action at this time.
0 commit comments