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

Skip to content

Commit 694e378

Browse files
committed
update complete msg, fix lint issues, clean up unit test logs
1 parent 78b71bb commit 694e378

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

meta.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ module.exports = {
172172
'All set. Welcome to your new electron-vue project!',
173173
'',
174174
'Make sure to check out the documentation for this boilerplate at',
175-
'',
176-
' \x1b[33mhttps://simulatedgreg.gitbooks.io/electron-vue/content/\x1b[0m.',
177-
'',
175+
'\x1b[33mhttps://simulatedgreg.gitbooks.io/electron-vue/content/\x1b[0m.',
178176
'',
179177
`Next Steps:\n${!data.inPlace ? '\n \x1b[33m$\x1b[0m cd ' + data.destDirName : ''}`,
180178
' \x1b[33m$\x1b[0m yarn (or `npm install`)',

template/src/main/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
'use strict'
33

44
{{/if_eq}}
5-
import { app, BrowserWindow } from 'electron' {{#if_eq eslintConfig 'airbnb'}}// eslint-disable-line{{/if_eq}}
5+
import { app, BrowserWindow } from 'electron'{{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}
66

77
/**
88
* Set `__static` path to static files in production
99
*/
1010
if (process.env.NODE_ENV !== 'development') {
11-
global.__static = require('path').join(__dirname, '/static') {{#if_eq eslintConfig 'airbnb'}}// eslint-disable-line{{/if_eq}}
11+
global.__static = require('path').join(__dirname, '/static'){{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}
1212
}
1313

1414
let mainWindow

template/src/renderer/components/LandingPage/SystemInformation.vue

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
{{#isEnabled plugins 'vue-router'}}
66
<div class="item">
77
<div class="name">Path:</div>
8-
<div class="value">\{{ $route.path }}</div>
8+
<div class="value">\{{ path }}</div>
99
</div>
1010
<div class="item">
1111
<div class="name">Route Name:</div>
12-
<div class="value">\{{ $route.name }}</div>
12+
<div class="value">\{{ name }}</div>
1313
</div>
1414
{{/isEnabled}}
1515
<div class="item">
@@ -37,7 +37,13 @@
3737
data () {
3838
return {
3939
electron: process.versions['atom-shell'],
40+
{{#isEnabled plugins 'vue-router'}}
41+
name: 'landing-page',
42+
{{/isEnabled}}
4043
node: process.versions.node,
44+
{{#isEnabled plugins 'vue-router'}}
45+
path: '/',
46+
{{/isEnabled}}
4147
platform: require('os').platform(),
4248
vue: require('vue/package.json').version
4349
}

template/test/unit/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import Vue from 'vue'
2+
Vue.config.devtools = false
3+
Vue.config.productionTip = false
4+
15
// require all test files (files that ends with .spec.js)
26
const testsContext = require.context('./specs', true, /\.spec$/)
37
testsContext.keys().forEach(testsContext)

0 commit comments

Comments
 (0)