Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ const {
runLintFix,
printMessage,
} = require('./utils')
const pkg = require('./package.json')

const templateVersion = pkg.version

module.exports = {
helpers: {
if_or: function(v1, v2, options) {
if_or(v1, v2, options) {
if (v1 || v2) {
return options.fn(this)
}

return options.inverse(this)
},
},
template_version() {
return templateVersion
},
prompts: {
name: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion template/config/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'
// Template version: 1.2.7
// Template version: {{ template_version }}
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')
Expand Down