|
1 | 1 | { |
2 | | - "name": "<%= name %>", |
| 2 | + "name": "{{name}}", |
3 | 3 | "version": "0.1.0", |
4 | 4 | "description": "<%= description %>", |
5 | 5 | "main": "client/index.js", |
6 | 6 | "scripts": { |
7 | | - <% if (testcafe) { %>"test": "testcafe all test/e2e/index.js --app \"npm run dev\" --app-init-delay 10000",<% } %> |
| 7 | + {{#if testcafe}}"test": "testcafe all test/e2e/index.js --app \"npm run dev\" --app-init-delay 10000",{{/if}} |
8 | 8 | "build": "webpack --config build/webpack.prod.js", |
9 | | - "dev": "node build/server.js"<% if (electron) { %>, |
10 | | - "app": "cross-env NODE_ENV=development electron app/"<% } %><% if (eslint) { %>, |
11 | | - "lint": "xo **/client/**/*.{vue,js}<% if (electron) { %> **/app/**/*.js<% } %> !node_modules/**" |
12 | | - <% } %> |
| 9 | + "dev": "node build/server.js"{{#if electron}}, |
| 10 | + "app": "cross-env NODE_ENV=development electron app/"{{/if}}{{#if eslint}}, |
| 11 | + "lint": "xo **/client/**/*.{vue,js}{{#if electron}} **/app/**/*.js{{/if}} !node_modules/**" |
| 12 | + {{/if}} |
13 | 13 | }, |
14 | | - "author": "<%= author %>", |
| 14 | + "author": "{{author}}", |
15 | 15 | "license": "MIT", |
16 | 16 | "xo": { |
17 | 17 | "extends": "./.eslintrc", |
|
51 | 51 | "copy-webpack-plugin": "^4.0.1", |
52 | 52 | "css-loader": "^0.23.1", |
53 | 53 | "cross-env": "^2.0.0", |
54 | | - <% if (electron) { %> |
| 54 | + {{#if electron}} |
55 | 55 | "electron-devtools-installer": "^2.0.1", |
56 | 56 | "electron": "^1.4.2", |
57 | | - <% } %> |
58 | | - <% if (eslint) { %> |
| 57 | + {{/if}} |
| 58 | + {{#if eslint}} |
59 | 59 | "xo": "^0.18.0", |
60 | 60 | "eslint-config-vue": "latest", |
61 | 61 | "eslint-plugin-vue": "latest", |
62 | | - <% if (testcafe) { %> |
| 62 | + {{#if testcafe}} |
63 | 63 | "eslint-plugin-testcafe": "^0.2.0", |
64 | | - <% } %> |
65 | | - <% } %> |
| 64 | + {{/if}} |
| 65 | + {{/if}} |
66 | 66 | "express": "^4.14.0", |
67 | 67 | "extract-text-webpack-plugin": "^2.0.0-rc.3", |
68 | 68 | "file-loader": "^0.9.0", |
|
74 | 74 | "postcss-nested": "^1.0.0", |
75 | 75 | "rimraf": "^2.6.1", |
76 | 76 | "style-loader": "^0.13.1", |
77 | | - <% if (testcafe) { %> |
| 77 | + {{#if testcafe}} |
78 | 78 | "testcafe": "^0.12.1", |
79 | | - <% } %> |
| 79 | + {{/if}} |
80 | 80 | "vue-loader": "^11.0.0", |
81 | 81 | "vue-template-compiler": "^2.2.0", |
82 | 82 | "webpack": "2.2.0", |
|
0 commit comments