ytg7vue 1.19.2 → 1.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.babelrc CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "presets": [
3
- [
4
- "env",
5
- {
6
- "modules": false
7
- }
8
- ],
9
- "stage-2"
10
- ],
11
- "plugins": [
12
- "transform-runtime",
13
- "transform-vue-jsx"
14
- ],
15
- "comments": false
16
- }
17
-
1
+ {
2
+ "presets": [
3
+ [
4
+ "env",
5
+ {
6
+ "modules": false
7
+ }
8
+ ],
9
+ "stage-2"
10
+ ],
11
+ "plugins": [
12
+ "transform-runtime",
13
+ "transform-vue-jsx"
14
+ ],
15
+ "comments": false
16
+ }
17
+
package/.editorconfig CHANGED
@@ -1,14 +1,14 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- end_of_line = lf
9
- insert_final_newline = true
10
- trim_trailing_whitespace = true
11
-
12
- [*.md]
13
- insert_final_newline = false
14
- trim_trailing_whitespace = false
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+
12
+ [*.md]
13
+ insert_final_newline = false
14
+ trim_trailing_whitespace = false
package/.eslintignore CHANGED
@@ -1,3 +1,3 @@
1
- build/*.js
2
- config/*.js
3
- src/assets
1
+ build/*.js
2
+ config/*.js
3
+ src/assets
package/.eslintrc.js CHANGED
@@ -1,151 +1,151 @@
1
- module.exports = {
2
- root: true,
3
- parserOptions: {
4
- "parser": "babel-eslint",
5
- "ecmaVersion": 2017,
6
- "sourceType": "module"
7
- },
8
- parserOptions: {
9
- sourceType: 'module'
10
- },
11
- env: {
12
- browser: true,
13
- node: true,
14
- es6: true,
15
- },
16
- extends: [
17
- // add more generic rulesets here, such as:
18
- // 'eslint:recommended',
19
- 'plugin:vue/base'
20
- ],
21
- // required to lint *.vue files
22
- plugins: [
23
- "vue"
24
- ],
25
- // check if imports actually resolve
26
- 'settings': {
27
- 'import/resolver': {
28
- 'webpack': {
29
- 'config': 'build/webpack.base.conf.js'
30
- }
31
- }
32
- },
33
- // add your custom rules here
34
- //it is base on https://github.com/vuejs/eslint-config-vue
35
- 'rules': {
36
- 'accessor-pairs': 2,
37
- 'arrow-spacing': [2, {'before': true, 'after': true}],
38
- 'block-spacing': [2, 'always'],
39
- 'brace-style': [2, '1tbs', {'allowSingleLine': true}],
40
- 'camelcase': [0, {'properties': 'always'}],
41
- 'comma-dangle': [2, 'never'],
42
- 'comma-spacing': [2, {'before': false, 'after': true}],
43
- 'comma-style': [2, 'last'],
44
- 'constructor-super': 2,
45
- 'curly': [2, 'multi-line'],
46
- 'dot-location': [2, 'property'],
47
- 'eol-last': 2,
48
- 'generator-star-spacing': [2, {'before': true, 'after': true}],
49
- 'handle-callback-err': [2, '^(err|error)$'],
50
- 'indent': [2, 2, {'SwitchCase': 1}],
51
- 'jsx-quotes': [2, 'prefer-single'],
52
- 'key-spacing': [2, {'beforeColon': false, 'afterColon': true}],
53
- 'keyword-spacing': [2, {'before': true, 'after': true}],
54
- 'new-cap': [2, {'newIsCap': true, 'capIsNew': false}],
55
- 'new-parens': 2,
56
- 'no-array-constructor': 2,
57
- 'no-caller': 2,
58
- 'no-console': 'off',
59
- 'no-class-assign': 2,
60
- 'no-cond-assign': 2,
61
- 'no-const-assign': 2,
62
- 'no-control-regex': 0,
63
- 'no-delete-var': 2,
64
- 'no-dupe-args': 2,
65
- 'no-dupe-class-members': 2,
66
- 'no-dupe-keys': 2,
67
- 'no-duplicate-case': 2,
68
- 'no-empty-character-class': 2,
69
- 'no-empty-pattern': 2,
70
- 'no-eval': 2,
71
- 'no-ex-assign': 2,
72
- 'no-extend-native': 2,
73
- 'no-extra-bind': 2,
74
- 'no-extra-boolean-cast': 2,
75
- 'no-extra-parens': [2, 'functions'],
76
- 'no-fallthrough': 2,
77
- 'no-floating-decimal': 2,
78
- 'no-func-assign': 2,
79
- 'no-implied-eval': 2,
80
- 'no-inner-declarations': [2, 'functions'],
81
- 'no-invalid-regexp': 2,
82
- 'no-irregular-whitespace': 2,
83
- 'no-iterator': 2,
84
- 'no-label-var': 2,
85
- 'no-labels': [2, {'allowLoop': false, 'allowSwitch': false}],
86
- 'no-lone-blocks': 2,
87
- 'no-mixed-spaces-and-tabs': 2,
88
- 'no-multi-spaces': 2,
89
- 'no-multi-str': 2,
90
- 'no-multiple-empty-lines': [2, {'max': 1}],
91
- 'no-native-reassign': 2,
92
- 'no-negated-in-lhs': 2,
93
- 'no-new-object': 2,
94
- 'no-new-require': 2,
95
- 'no-new-symbol': 2,
96
- 'no-new-wrappers': 2,
97
- 'no-obj-calls': 2,
98
- 'no-octal': 2,
99
- 'no-octal-escape': 2,
100
- 'no-path-concat': 2,
101
- 'no-proto': 2,
102
- 'no-redeclare': 2,
103
- 'no-regex-spaces': 2,
104
- 'no-return-assign': [2, 'except-parens'],
105
- 'no-self-assign': 2,
106
- 'no-self-compare': 2,
107
- 'no-sequences': 2,
108
- 'no-shadow-restricted-names': 2,
109
- 'no-spaced-func': 2,
110
- 'no-sparse-arrays': 2,
111
- 'no-this-before-super': 2,
112
- 'no-throw-literal': 2,
113
- 'no-trailing-spaces': 2,
114
- 'no-undef': 0,
115
- 'no-undef-init': 2,
116
- 'no-unexpected-multiline': 2,
117
- 'no-unmodified-loop-condition': 2,
118
- 'no-unneeded-ternary': [2, {'defaultAssignment': false}],
119
- 'no-unreachable': 2,
120
- 'no-unsafe-finally': 2,
121
- 'no-unused-vars': [2, {'vars': 'all', 'args': 'none'}],
122
- 'no-useless-call': 2,
123
- 'no-useless-computed-key': 2,
124
- 'no-useless-constructor': 2,
125
- 'no-useless-escape': 0,
126
- 'no-whitespace-before-property': 2,
127
- 'no-with': 2,
128
- 'one-var': [2, {'initialized': 'never'}],
129
- 'operator-linebreak': [2, 'after', {'overrides': {'?': 'before', ':': 'before'}}],
130
- 'padded-blocks': [2, 'never'],
131
- 'quotes': [2, 'single', {'avoidEscape': true, 'allowTemplateLiterals': true}],
132
- 'semi': [2, 'never'],
133
- 'semi-spacing': [2, {'before': false, 'after': true}],
134
- 'space-before-blocks': [2, 'always'],
135
- 'space-before-function-paren': [2, 'never'],
136
- 'space-in-parens': [2, 'never'],
137
- 'space-infix-ops': 2,
138
- 'space-unary-ops': [2, {'words': true, 'nonwords': false}],
139
- 'spaced-comment': [2, 'always', {'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']}],
140
- 'template-curly-spacing': [2, 'never'],
141
- 'use-isnan': 2,
142
- 'valid-typeof': 2,
143
- 'wrap-iife': [2, 'any'],
144
- 'yield-star-spacing': [2, 'both'],
145
- 'yoda': [2, 'never'],
146
- 'prefer-const': 2,
147
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
148
- 'object-curly-spacing': [2, 'always', {objectsInObjects: false}],
149
- 'array-bracket-spacing': [2, 'never']
150
- }
151
- }
1
+ module.exports = {
2
+ root: true,
3
+ parserOptions: {
4
+ "parser": "babel-eslint",
5
+ "ecmaVersion": 2017,
6
+ "sourceType": "module"
7
+ },
8
+ parserOptions: {
9
+ sourceType: 'module'
10
+ },
11
+ env: {
12
+ browser: true,
13
+ node: true,
14
+ es6: true,
15
+ },
16
+ extends: [
17
+ // add more generic rulesets here, such as:
18
+ // 'eslint:recommended',
19
+ 'plugin:vue/base'
20
+ ],
21
+ // required to lint *.vue files
22
+ plugins: [
23
+ "vue"
24
+ ],
25
+ // check if imports actually resolve
26
+ 'settings': {
27
+ 'import/resolver': {
28
+ 'webpack': {
29
+ 'config': 'build/webpack.base.conf.js'
30
+ }
31
+ }
32
+ },
33
+ // add your custom rules here
34
+ //it is base on https://github.com/vuejs/eslint-config-vue
35
+ 'rules': {
36
+ 'accessor-pairs': 2,
37
+ 'arrow-spacing': [2, {'before': true, 'after': true}],
38
+ 'block-spacing': [2, 'always'],
39
+ 'brace-style': [2, '1tbs', {'allowSingleLine': true}],
40
+ 'camelcase': [0, {'properties': 'always'}],
41
+ 'comma-dangle': [2, 'never'],
42
+ 'comma-spacing': [2, {'before': false, 'after': true}],
43
+ 'comma-style': [2, 'last'],
44
+ 'constructor-super': 2,
45
+ 'curly': [2, 'multi-line'],
46
+ 'dot-location': [2, 'property'],
47
+ 'eol-last': 2,
48
+ 'generator-star-spacing': [2, {'before': true, 'after': true}],
49
+ 'handle-callback-err': [2, '^(err|error)$'],
50
+ 'indent': [2, 2, {'SwitchCase': 1}],
51
+ 'jsx-quotes': [2, 'prefer-single'],
52
+ 'key-spacing': [2, {'beforeColon': false, 'afterColon': true}],
53
+ 'keyword-spacing': [2, {'before': true, 'after': true}],
54
+ 'new-cap': [2, {'newIsCap': true, 'capIsNew': false}],
55
+ 'new-parens': 2,
56
+ 'no-array-constructor': 2,
57
+ 'no-caller': 2,
58
+ 'no-console': 'off',
59
+ 'no-class-assign': 2,
60
+ 'no-cond-assign': 2,
61
+ 'no-const-assign': 2,
62
+ 'no-control-regex': 0,
63
+ 'no-delete-var': 2,
64
+ 'no-dupe-args': 2,
65
+ 'no-dupe-class-members': 2,
66
+ 'no-dupe-keys': 2,
67
+ 'no-duplicate-case': 2,
68
+ 'no-empty-character-class': 2,
69
+ 'no-empty-pattern': 2,
70
+ 'no-eval': 2,
71
+ 'no-ex-assign': 2,
72
+ 'no-extend-native': 2,
73
+ 'no-extra-bind': 2,
74
+ 'no-extra-boolean-cast': 2,
75
+ 'no-extra-parens': [2, 'functions'],
76
+ 'no-fallthrough': 2,
77
+ 'no-floating-decimal': 2,
78
+ 'no-func-assign': 2,
79
+ 'no-implied-eval': 2,
80
+ 'no-inner-declarations': [2, 'functions'],
81
+ 'no-invalid-regexp': 2,
82
+ 'no-irregular-whitespace': 2,
83
+ 'no-iterator': 2,
84
+ 'no-label-var': 2,
85
+ 'no-labels': [2, {'allowLoop': false, 'allowSwitch': false}],
86
+ 'no-lone-blocks': 2,
87
+ 'no-mixed-spaces-and-tabs': 2,
88
+ 'no-multi-spaces': 2,
89
+ 'no-multi-str': 2,
90
+ 'no-multiple-empty-lines': [2, {'max': 1}],
91
+ 'no-native-reassign': 2,
92
+ 'no-negated-in-lhs': 2,
93
+ 'no-new-object': 2,
94
+ 'no-new-require': 2,
95
+ 'no-new-symbol': 2,
96
+ 'no-new-wrappers': 2,
97
+ 'no-obj-calls': 2,
98
+ 'no-octal': 2,
99
+ 'no-octal-escape': 2,
100
+ 'no-path-concat': 2,
101
+ 'no-proto': 2,
102
+ 'no-redeclare': 2,
103
+ 'no-regex-spaces': 2,
104
+ 'no-return-assign': [2, 'except-parens'],
105
+ 'no-self-assign': 2,
106
+ 'no-self-compare': 2,
107
+ 'no-sequences': 2,
108
+ 'no-shadow-restricted-names': 2,
109
+ 'no-spaced-func': 2,
110
+ 'no-sparse-arrays': 2,
111
+ 'no-this-before-super': 2,
112
+ 'no-throw-literal': 2,
113
+ 'no-trailing-spaces': 2,
114
+ 'no-undef': 0,
115
+ 'no-undef-init': 2,
116
+ 'no-unexpected-multiline': 2,
117
+ 'no-unmodified-loop-condition': 2,
118
+ 'no-unneeded-ternary': [2, {'defaultAssignment': false}],
119
+ 'no-unreachable': 2,
120
+ 'no-unsafe-finally': 2,
121
+ 'no-unused-vars': [2, {'vars': 'all', 'args': 'none'}],
122
+ 'no-useless-call': 2,
123
+ 'no-useless-computed-key': 2,
124
+ 'no-useless-constructor': 2,
125
+ 'no-useless-escape': 0,
126
+ 'no-whitespace-before-property': 2,
127
+ 'no-with': 2,
128
+ 'one-var': [2, {'initialized': 'never'}],
129
+ 'operator-linebreak': [2, 'after', {'overrides': {'?': 'before', ':': 'before'}}],
130
+ 'padded-blocks': [2, 'never'],
131
+ 'quotes': [2, 'single', {'avoidEscape': true, 'allowTemplateLiterals': true}],
132
+ 'semi': [2, 'never'],
133
+ 'semi-spacing': [2, {'before': false, 'after': true}],
134
+ 'space-before-blocks': [2, 'always'],
135
+ 'space-before-function-paren': [2, 'never'],
136
+ 'space-in-parens': [2, 'never'],
137
+ 'space-infix-ops': 2,
138
+ 'space-unary-ops': [2, {'words': true, 'nonwords': false}],
139
+ 'spaced-comment': [2, 'always', {'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']}],
140
+ 'template-curly-spacing': [2, 'never'],
141
+ 'use-isnan': 2,
142
+ 'valid-typeof': 2,
143
+ 'wrap-iife': [2, 'any'],
144
+ 'yield-star-spacing': [2, 'both'],
145
+ 'yoda': [2, 'never'],
146
+ 'prefer-const': 2,
147
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
148
+ 'object-curly-spacing': [2, 'always', {objectsInObjects: false}],
149
+ 'array-bracket-spacing': [2, 'never']
150
+ }
151
+ }
package/.postcssrc.js CHANGED
@@ -1,8 +1,8 @@
1
- // https://github.com/michael-ciniawsky/postcss-load-config
2
-
3
- module.exports = {
4
- "plugins": {
5
- // to edit target browsers: use "browserslist" field in package.json
6
- "autoprefixer": {}
7
- }
8
- }
1
+ // https://github.com/michael-ciniawsky/postcss-load-config
2
+
3
+ module.exports = {
4
+ "plugins": {
5
+ // to edit target browsers: use "browserslist" field in package.json
6
+ "autoprefixer": {}
7
+ }
8
+ }
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 PanJiaChen
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2017 PanJiaChen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/Listening CHANGED
@@ -1,28 +1,28 @@
1
- ��Ч�����
2
-
3
- AT ��������ض����ں�ʱ����������ͳ���
4
- Ҫʹ�� AT ����ƻ�����������������С�
5
-
6
- AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
7
- AT [\\computername] time [/INTERACTIVE]
8
- [ /EVERY:date[,...] | /NEXT:date[,...]] "command"
9
-
10
- \\computername ָ��Զ�̼���������ʡ�����������
11
- ��ƻ��ڱ��ؼ�������������
12
- id ָ�����Ѽƻ������ʶ��š�
13
- /delete ɾ��ij���Ѽƻ���������ʡ�� id��
14
- ������������Ѽƻ�������ᱻɾ����
15
- /yes ����Ҫ��һ��ȷ��ʱ����ɾ��������ҵ
16
- ������һ��ʹ�á�
17
- time ָ�����������ʱ�䡣
18
- /interactive ������ҵ������ʱ���뵱ʱ��¼���û�
19
- ����������
20
- /every:date[,...] ָ����ÿ�ܻ�ÿ�µ��ض������������
21
- ���ʡ�����ڣ���Ĭ��Ϊ��ÿ�µ�
22
- ��������
23
- /next:date[,...] ָ������һ��ָ������(�磬������)��
24
- ��������ʡ�����ڣ���Ĭ��Ϊ��ÿ
25
- �µı������С�
26
- "command" ׼�����е� Windows NT �����������
27
- ����
28
-
1
+ ��Ч�����
2
+
3
+ AT ��������ض����ں�ʱ����������ͳ���
4
+ Ҫʹ�� AT ����ƻ�����������������С�
5
+
6
+ AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
7
+ AT [\\computername] time [/INTERACTIVE]
8
+ [ /EVERY:date[,...] | /NEXT:date[,...]] "command"
9
+
10
+ \\computername ָ��Զ�̼���������ʡ�����������
11
+ ��ƻ��ڱ��ؼ�������������
12
+ id ָ�����Ѽƻ������ʶ��š�
13
+ /delete ɾ��ij���Ѽƻ���������ʡ�� id��
14
+ ������������Ѽƻ�������ᱻɾ����
15
+ /yes ����Ҫ��һ��ȷ��ʱ����ɾ��������ҵ
16
+ ������һ��ʹ�á�
17
+ time ָ�����������ʱ�䡣
18
+ /interactive ������ҵ������ʱ���뵱ʱ��¼���û�
19
+ ����������
20
+ /every:date[,...] ָ����ÿ�ܻ�ÿ�µ��ض������������
21
+ ���ʡ�����ڣ���Ĭ��Ϊ��ÿ�µ�
22
+ ��������
23
+ /next:date[,...] ָ������һ��ָ������(�磬������)��
24
+ ��������ʡ�����ڣ���Ĭ��Ϊ��ÿ
25
+ �µı������С�
26
+ "command" ׼�����е� Windows NT �����������
27
+ ����
28
+
package/README.md CHANGED
@@ -189,4 +189,8 @@ this.$refs.grid.unSelectPart(e)
189
189
  1.19.1 去掉对多表头自定义列的编辑。
190
190
 
191
191
 
192
- 1.19.2 分页增加500条
192
+ 1.19.2 分页增加500条
193
+
194
+ 1.19.3 修复批量增加撤销出现问题bug
195
+
196
+ 1.19.4 pdf打印宽度可以自己调整
@@ -1,45 +1,45 @@
1
- var chalk = require('chalk')
2
- var semver = require('semver')
3
- var packageConfig = require('../package.json')
4
-
5
- function exec(cmd) {
6
- return require('child_process').execSync(cmd).toString().trim()
7
- }
8
-
9
- var versionRequirements = [
10
- {
11
- name: 'node',
12
- currentVersion: semver.clean(process.version),
13
- versionRequirement: packageConfig.engines.node
14
- },
15
- {
16
- name: 'npm',
17
- currentVersion: exec('npm --version'),
18
- versionRequirement: packageConfig.engines.npm
19
- }
20
- ]
21
-
22
- module.exports = function () {
23
- var warnings = []
24
- for (var i = 0; i < versionRequirements.length; i++) {
25
- var mod = versionRequirements[i]
26
- if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
27
- warnings.push(mod.name + ': ' +
28
- chalk.red(mod.currentVersion) + ' should be ' +
29
- chalk.green(mod.versionRequirement)
30
- )
31
- }
32
- }
33
-
34
- if (warnings.length) {
35
- console.log('')
36
- console.log(chalk.yellow('To use this template, you must update following to modules:'))
37
- console.log()
38
- for (var i = 0; i < warnings.length; i++) {
39
- var warning = warnings[i]
40
- console.log(' ' + warning)
41
- }
42
- console.log()
43
- process.exit(1)
44
- }
45
- }
1
+ var chalk = require('chalk')
2
+ var semver = require('semver')
3
+ var packageConfig = require('../package.json')
4
+
5
+ function exec(cmd) {
6
+ return require('child_process').execSync(cmd).toString().trim()
7
+ }
8
+
9
+ var versionRequirements = [
10
+ {
11
+ name: 'node',
12
+ currentVersion: semver.clean(process.version),
13
+ versionRequirement: packageConfig.engines.node
14
+ },
15
+ {
16
+ name: 'npm',
17
+ currentVersion: exec('npm --version'),
18
+ versionRequirement: packageConfig.engines.npm
19
+ }
20
+ ]
21
+
22
+ module.exports = function () {
23
+ var warnings = []
24
+ for (var i = 0; i < versionRequirements.length; i++) {
25
+ var mod = versionRequirements[i]
26
+ if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
27
+ warnings.push(mod.name + ': ' +
28
+ chalk.red(mod.currentVersion) + ' should be ' +
29
+ chalk.green(mod.versionRequirement)
30
+ )
31
+ }
32
+ }
33
+
34
+ if (warnings.length) {
35
+ console.log('')
36
+ console.log(chalk.yellow('To use this template, you must update following to modules:'))
37
+ console.log()
38
+ for (var i = 0; i < warnings.length; i++) {
39
+ var warning = warnings[i]
40
+ console.log(' ' + warning)
41
+ }
42
+ console.log()
43
+ process.exit(1)
44
+ }
45
+ }
@@ -1,9 +1,9 @@
1
- /* eslint-disable */
2
- require('eventsource-polyfill')
3
- var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4
-
5
- hotClient.subscribe(function (event) {
6
- if (event.action === 'reload') {
7
- window.location.reload()
8
- }
9
- })
1
+ /* eslint-disable */
2
+ require('eventsource-polyfill')
3
+ var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4
+
5
+ hotClient.subscribe(function (event) {
6
+ if (event.action === 'reload') {
7
+ window.location.reload()
8
+ }
9
+ })