newsee-cli 1.0.4 → 1.0.6

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.
Files changed (80) hide show
  1. package/bin/init.js +1 -1
  2. package/package.json +1 -1
  3. package/micro_11111/.editorconfig +0 -10
  4. package/micro_11111/.eslintignore +0 -9
  5. package/micro_11111/.eslintrc.js +0 -33
  6. package/micro_11111/.postcssrc.js +0 -21
  7. package/micro_11111/.prettierignore +0 -10
  8. package/micro_11111/.prettierrc +0 -12
  9. package/micro_11111/.stylelintignore +0 -8
  10. package/micro_11111/.stylelintrc.json +0 -303
  11. package/micro_11111/README.md +0 -3
  12. package/micro_11111/babel.config.js +0 -34
  13. package/micro_11111/env.config.js +0 -62
  14. package/micro_11111/env.param.config.js +0 -112
  15. package/micro_11111/favicon.ico +0 -0
  16. package/micro_11111/index.html +0 -28
  17. package/micro_11111/jsconfig.json +0 -25
  18. package/micro_11111/package.json +0 -60
  19. package/micro_11111/src/App.vue +0 -32
  20. package/micro_11111/src/Layout/Layout.vue +0 -28
  21. package/micro_11111/src/UI/index.js +0 -1
  22. package/micro_11111/src/assets/iconfont/DIN.Alternate.Bold.ttf +0 -0
  23. package/micro_11111/src/assets/layout/empty.png +0 -0
  24. package/micro_11111/src/assets/layout/prelogin-header.png +0 -0
  25. package/micro_11111/src/assets/trigger/close.png +0 -0
  26. package/micro_11111/src/assets/trigger/company.png +0 -0
  27. package/micro_11111/src/assets/trigger/department.png +0 -0
  28. package/micro_11111/src/assets/trigger/left-arrow.png +0 -0
  29. package/micro_11111/src/assets/trigger/pwd.png +0 -0
  30. package/micro_11111/src/assets/trigger/right-arrow-gray.png +0 -0
  31. package/micro_11111/src/assets/trigger/search-gray.png +0 -0
  32. package/micro_11111/src/assets/trigger/user.png +0 -0
  33. package/micro_11111/src/assets/trigger/weixin-work.png +0 -0
  34. package/micro_11111/src/components/Selector/Selector.vue +0 -254
  35. package/micro_11111/src/components/Selector/components/abyss.vue +0 -308
  36. package/micro_11111/src/components/Selector/components/search.vue +0 -307
  37. package/micro_11111/src/config.js +0 -20
  38. package/micro_11111/src/main.js +0 -14
  39. package/micro_11111/src/mixins/base.js +0 -57
  40. package/micro_11111/src/mixins/extension/app.js +0 -80
  41. package/micro_11111/src/mixins/extension/cryptoPassWord.js +0 -15
  42. package/micro_11111/src/mixins/extension/wx-relative.js +0 -42
  43. package/micro_11111/src/mixins/index.js +0 -5
  44. package/micro_11111/src/router/index.js +0 -12
  45. package/micro_11111/src/router/routes.js +0 -55
  46. package/micro_11111/src/service/common.js +0 -72
  47. package/micro_11111/src/service/preload.js +0 -19
  48. package/micro_11111/src/service/selector.js +0 -114
  49. package/micro_11111/src/store/getters.js +0 -10
  50. package/micro_11111/src/store/index.js +0 -18
  51. package/micro_11111/src/store/modules/Account.js +0 -27
  52. package/micro_11111/src/store/modules/Base.js +0 -38
  53. package/micro_11111/src/style/index.scss +0 -3
  54. package/micro_11111/src/style/mixins/mixins.scss +0 -11
  55. package/micro_11111/src/style/public.scss +0 -32
  56. package/micro_11111/src/style/reset.scss +0 -814
  57. package/micro_11111/src/utils/core/create-basic.js +0 -16
  58. package/micro_11111/src/utils/core/create.js +0 -13
  59. package/micro_11111/src/utils/core/reprefix.js +0 -8
  60. package/micro_11111/src/utils/fetch/fetch.js +0 -66
  61. package/micro_11111/src/utils/fetch/fetchDataType.js +0 -53
  62. package/micro_11111/src/utils/index.js +0 -0
  63. package/micro_11111/src/utils/library/aes.js +0 -834
  64. package/micro_11111/src/utils/library/crypto.js +0 -130
  65. package/micro_11111/src/utils/library/date.js +0 -62
  66. package/micro_11111/src/utils/library/debounce.js +0 -34
  67. package/micro_11111/src/utils/library/event.js +0 -45
  68. package/micro_11111/src/utils/library/image.js +0 -14
  69. package/micro_11111/src/utils/library/stringcover.js +0 -9
  70. package/micro_11111/src/utils/library/urlhandle.js +0 -14
  71. package/micro_11111/src/utils/library/video.js +0 -156
  72. package/micro_11111/src/views/Home/Home.vue +0 -23
  73. package/micro_11111/src/views/Login/Login.vue +0 -65
  74. package/micro_11111/src/views/Login/LoginApp.vue +0 -72
  75. package/micro_11111/src/views/Login/LoginThirdApp.vue +0 -77
  76. package/micro_11111/src/views/Login/LoginThirdParty.vue +0 -59
  77. package/micro_11111/src/views/Prelogin/index.vue +0 -199
  78. package/micro_11111/static/loadBuffer/loadBuffer.js +0 -19
  79. package/micro_11111/static/loadBuffer/loading.gif +0 -0
  80. package/micro_11111/tag.js +0 -19
package/bin/init.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (()=>{var e={843:e=>{e.exports={simulateProgressBar:function(e){let t,r=0,o=10;const s=()=>{r<100&&(r+=o,console.log(`Progress: ${r}%`),r>=70&&(o=15),r>=90&&(o=20),t=setTimeout(s,100*o)),e(r)};return t=setTimeout(s,100),()=>{clearTimeout(t),r=100,console.log(`Progress: ${r}%`),e(100)}}}},22:e=>{"use strict";e.exports=require("chalk")},303:e=>{"use strict";e.exports=require("child_process")},295:e=>{"use strict";e.exports=require("cli-progress")},974:e=>{"use strict";e.exports=require("debug")},545:e=>{"use strict";e.exports=require("download-git-repo")},632:e=>{"use strict";e.exports=require("ejs")},116:e=>{"use strict";e.exports=require("figlet")},470:e=>{"use strict";e.exports=require("fs-extra")},290:e=>{"use strict";e.exports=require("inquirer")},591:e=>{"use strict";e.exports=require("ora")},423:e=>{"use strict";e.exports=require("path")},369:e=>{"use strict";e.exports=require("process")}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(()=>{const e=r(591),t=(r(295),r(369)),o=r(116),s=r(290),i=r(545),c=r(632),a=r(470),{exec:n,execSync:p}=r(303),m=r(22);r(423);t.env.DEBUG="download-git-repo";const u=r(974)("download-git-repo");u.enabled=!0;const{simulateProgressBar:l}=r(843);console.log(o.textSync("newsee cli by nodejs",{font:"Doom",horizontalLayout:"default",verticalLayout:"default"}));const d=e("远端调用模板中-copy...");d.color="yellow";const x=[{name:"pc-template(pc 模板)",value:"http://47.96.187.51:3001/zhouxia/micro-pc-template.git"},{name:"wireless-template(h5 模板)",value:"http://47.96.187.51:3001/zhouxia/micro-wireless-template.git"},{name:"mp-template(小程序 模版)",value:"http://47.96.187.51:3001/zhouxia/micro-mp-template.git"}];(async function(){const e=await s.prompt([{type:"input",name:"projectName",message:"请输入项目名称(示例: micro-arm, 输入arm):"},{type:"input",name:"decs",message:"请输入项目描述(示例: 微前端 - 应收中台):"},{type:"list",name:"isAdd",message:"是否创建新的根目录:",choices:[{value:!0},{value:!1}]},{type:"list",name:"template",message:"请选择模板:",choices:x}]),{projectName:r,decs:o,template:n,isAdd:p}=e,l=".temp/micro_"+r;d.start();try{await function(e,t){return new Promise(((r,o)=>{i("direct:"+e,t,{auth:"bab304614ce90ca324d0236579439f71d88416b0",clone:!0,debug:u},(e=>{e?o(e):r()}))}))}(n,l),await async function(e,t,r,o){const s={projectName:e,decs:t},i=["package.json","README.md","config/injection/index.js"];for(const e of i)if(a.existsSync(`${r}/${e}.ejs`)){let t=await c.renderFile(`${r}/${e}.ejs`,s);await a.writeFile(`${r}/${e}`,t),await a.rm(`${r}/${e}.ejs`)}const n=`${r}/config/injection/version/micro_\${projectName}_0.0.1.js`,p=`${r}/config/injection/version/micro_${e}_0.0.1.js`;a.existsSync(n)&&await a.rename(n,p),o?(a.existsSync(`micro_${e}`)&&await a.remove(`micro_${e}`),await a.mkdir(`micro_${e}`),await a.copy(r,`micro_${e}`)):await a.copy(r,"./")}(r,o,l,p),await a.remove(".temp"),d.succeed("done"),console.log(m.green("模板创建成功")),t.exit(1)}catch(e){await a.remove(".temp"),console.log(m.red("操作失败:",e)),t.exit(1)}})().catch((e=>{console.error(m.red("程序错误:",e)),d.fail("请检查环境"),a.remove(".temp")}))})()})();
2
+ (()=>{var e={843:e=>{e.exports={simulateProgressBar:function(e){let t,r=0,o=10;const s=()=>{r<100&&(r+=o,console.log(`Progress: ${r}%`),r>=70&&(o=15),r>=90&&(o=20),t=setTimeout(s,100*o)),e(r)};return t=setTimeout(s,100),()=>{clearTimeout(t),r=100,console.log(`Progress: ${r}%`),e(100)}}}},22:e=>{"use strict";e.exports=require("chalk")},303:e=>{"use strict";e.exports=require("child_process")},295:e=>{"use strict";e.exports=require("cli-progress")},974:e=>{"use strict";e.exports=require("debug")},545:e=>{"use strict";e.exports=require("download-git-repo")},632:e=>{"use strict";e.exports=require("ejs")},116:e=>{"use strict";e.exports=require("figlet")},470:e=>{"use strict";e.exports=require("fs-extra")},290:e=>{"use strict";e.exports=require("inquirer")},591:e=>{"use strict";e.exports=require("ora")},423:e=>{"use strict";e.exports=require("path")},369:e=>{"use strict";e.exports=require("process")}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(()=>{const e=r(591),t=(r(295),r(369)),o=r(116),s=r(290),i=r(545),c=r(632),a=r(470),{exec:n,execSync:p}=r(303),m=r(22);r(423);t.env.DEBUG="download-git-repo";const u=r(974)("download-git-repo");u.enabled=!0;const{simulateProgressBar:l}=r(843);console.log(o.textSync("newsee cli by nodejs",{font:"Doom",horizontalLayout:"default",verticalLayout:"default"}));const d=e("远端调用模板中-copy...");d.color="yellow";const x=[{name:"pc-template(pc 模板)",value:"micro"},{name:"wireless-template(h5 模板)",value:"h5"},{name:"mp-template(小程序 模版)",value:"mp"}];(async function(){const e=await s.prompt([{type:"input",name:"projectName",message:"请输入项目名称(示例: micro-arm, 输入arm; h5-arm, 也输入arm):"},{type:"input",name:"decs",message:"请输入项目描述(示例: 微前端 - 应收中台):"},{type:"list",name:"isAdd",message:"是否创建新的根目录:",choices:[{value:!0},{value:!1}]},{type:"list",name:"template",message:"请选择模板:",choices:x}]),{projectName:r,decs:o,template:n,isAdd:p}=e,l=`.temp/${n}_'${r}`;d.start();try{const e={mirco:"http://47.96.187.51:3001/zhouxia/micro-pc-template.git",h5:"http://47.96.187.51:3001/zhouxia/micro-wireless-template.git",mp:"http://47.96.187.51:3001/zhouxia/micro-mp-template.git"};await function(e,t){return new Promise(((r,o)=>{i("direct:"+e,t,{auth:"bab304614ce90ca324d0236579439f71d88416b0",clone:!0,debug:u},(e=>{e?o(e):r()}))}))}(e[n],l),await async function(e,t,r,o,s){const i={projectName:e,decs:t},n=["package.json","README.md","config/injection/index.js"];for(const e of n)if(a.existsSync(`${r}/${e}.ejs`)){let t=await c.renderFile(`${r}/${e}.ejs`,i);await a.writeFile(`${r}/${e}`,t),await a.rm(`${r}/${e}.ejs`)}const p=`${r}/config/injection/version/micro_\${projectName}_0.0.1.js`,m=`${r}/config/injection/version/micro_${e}_0.0.1.js`;if(a.existsSync(p)&&await a.rename(p,m),o){a.existsSync(`micro_${e}`)&&await a.remove(`micro_${e}`);const t=`${s}-${e}`;await a.mkdir(t),await a.copy(r,t)}else await a.copy(r,"./")}(r,o,l,p,n),await a.remove(".temp"),d.succeed("done"),console.log(m.green("模板创建成功")),t.exit(1)}catch(e){await a.remove(".temp"),console.log(m.red("操作失败:",e)),t.exit(1)}})().catch((e=>{console.error(m.red("程序错误:",e)),d.fail("请检查环境"),a.remove(".temp")}))})()})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newsee-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "新视窗脚手架工具",
5
5
  "main": "bin/init.js",
6
6
  "bin": {
@@ -1,10 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
10
-
@@ -1,9 +0,0 @@
1
- /dist/
2
- /src/
3
- /mock/
4
- /static/
5
- /*.js
6
- /test/unit/coverage/
7
-
8
- /core/
9
- /frametest/
@@ -1,33 +0,0 @@
1
- // https://eslint.org/docs/user-guide/configuring
2
- module.exports = {
3
- root: true,
4
- parserOptions: {
5
- parser: 'babel-eslint',
6
- sourceType: 'module',
7
- },
8
- env: {
9
- browser: true,
10
- node: true,
11
- es6: true,
12
- },
13
- extends: [
14
- // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
15
- // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
16
- 'plugin:vue/essential',
17
- // https://github.com/standard/standard/blob/master/docs/RULES-en.md
18
- 'standard'
19
- ],
20
- // required to lint *.vue files
21
- plugins: [
22
- 'vue',
23
- // new webpack.optimize.CommonsChunkPlugin('common.js'),
24
-
25
- ],
26
- // add your custom rules here
27
- rules: {
28
- // allow async-await
29
- 'generator-star-spacing': 'off',
30
- // allow debugger during development
31
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
32
- }
33
- };
@@ -1,21 +0,0 @@
1
- // https://github.com/michael-ciniawsky/postcss-load-config
2
- const prodConfig = require('./env.param.config').prod;
3
-
4
-
5
- const plugins = {
6
- "postcss-import": {},
7
- "postcss-url": {},
8
- // to edit target browsers: use "browserslist" field in package.json
9
- "autoprefixer": {},
10
- };
11
-
12
- if (prodConfig.usepxtorem) {
13
- plugins['postcss-pxtorem'] = {
14
- rootValue: 16,
15
- propList: ['*']
16
- }
17
- }
18
-
19
- module.exports = {
20
- 'plugins': plugins
21
- };
@@ -1,10 +0,0 @@
1
- **/*.md
2
- **/*.svg
3
- **/*.ejs
4
- **/*.html
5
- .eslintrc.js
6
- package.json
7
- .umi
8
- .umi-production
9
-
10
- /igtest/
@@ -1,12 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "es5",
4
- "printWidth": 100,
5
- "overrides": [
6
- {
7
- "files": ".prettierrc",
8
- "options": { "parser": "json" }
9
- }
10
- ]
11
- }
12
-
@@ -1,8 +0,0 @@
1
- *.js
2
- *.jsx
3
- *.ts
4
- *.tsx
5
- *.png
6
- *.eot
7
- *.ttf
8
- *.woff
@@ -1,303 +0,0 @@
1
- {
2
- "extends": [
3
- "stylelint-config-standard",
4
- "stylelint-config-prettier"
5
- ],
6
- "plugins": [
7
- "stylelint-order"
8
- ],
9
- "rules": {
10
- "order/order": [
11
- "declarations",
12
- "custom-properties",
13
- "dollar-variables",
14
- "rules",
15
- "at-rules"
16
- ],
17
- "order/properties-order": [
18
- "position",
19
- "z-index",
20
- "top",
21
- "bottom",
22
- "left",
23
- "right",
24
- "float",
25
- "clear",
26
- "columns",
27
- "columns-width",
28
- "columns-count",
29
- "column-rule",
30
- "column-rule-width",
31
- "column-rule-style",
32
- "column-rule-color",
33
- "column-fill",
34
- "column-span",
35
- "column-gap",
36
- "display",
37
- "grid",
38
- "grid-template-rows",
39
- "grid-template-columns",
40
- "grid-template-areas",
41
- "grid-auto-rows",
42
- "grid-auto-columns",
43
- "grid-auto-flow",
44
- "grid-column-gap",
45
- "grid-row-gap",
46
- "grid-template",
47
- "grid-template-rows",
48
- "grid-template-columns",
49
- "grid-template-areas",
50
- "grid-gap",
51
- "grid-row-gap",
52
- "grid-column-gap",
53
- "grid-area",
54
- "grid-row-start",
55
- "grid-row-end",
56
- "grid-column-start",
57
- "grid-column-end",
58
- "grid-column",
59
- "grid-column-start",
60
- "grid-column-end",
61
- "grid-row",
62
- "grid-row-start",
63
- "grid-row-end",
64
- "flex",
65
- "flex-grow",
66
- "flex-shrink",
67
- "flex-basis",
68
- "flex-flow",
69
- "flex-direction",
70
- "flex-wrap",
71
- "justify-content",
72
- "align-content",
73
- "align-items",
74
- "align-self",
75
- "order",
76
- "table-layout",
77
- "empty-cells",
78
- "caption-side",
79
- "border-collapse",
80
- "border-spacing",
81
- "list-style",
82
- "list-style-type",
83
- "list-style-position",
84
- "list-style-image",
85
- "ruby-align",
86
- "ruby-merge",
87
- "ruby-position",
88
- "box-sizing",
89
- "width",
90
- "min-width",
91
- "max-width",
92
- "height",
93
- "min-height",
94
- "max-height",
95
- "padding",
96
- "padding-top",
97
- "padding-right",
98
- "padding-bottom",
99
- "padding-left",
100
- "margin",
101
- "margin-top",
102
- "margin-right",
103
- "margin-bottom",
104
- "margin-left",
105
- "border",
106
- "border-width",
107
- "border-top-width",
108
- "border-right-width",
109
- "border-bottom-width",
110
- "border-left-width",
111
- "border-style",
112
- "border-top-style",
113
- "border-right-style",
114
- "border-bottom-style",
115
- "border-left-style",
116
- "border-color",
117
- "border-top-color",
118
- "border-right-color",
119
- "border-bottom-color",
120
- "border-left-color",
121
- "border-image",
122
- "border-image-source",
123
- "border-image-slice",
124
- "border-image-width",
125
- "border-image-outset",
126
- "border-image-repeat",
127
- "border-top",
128
- "border-top-width",
129
- "border-top-style",
130
- "border-top-color",
131
- "border-top",
132
- "border-right-width",
133
- "border-right-style",
134
- "border-right-color",
135
- "border-bottom",
136
- "border-bottom-width",
137
- "border-bottom-style",
138
- "border-bottom-color",
139
- "border-left",
140
- "border-left-width",
141
- "border-left-style",
142
- "border-left-color",
143
- "border-radius",
144
- "border-top-right-radius",
145
- "border-bottom-right-radius",
146
- "border-bottom-left-radius",
147
- "border-top-left-radius",
148
- "outline",
149
- "outline-width",
150
- "outline-color",
151
- "outline-style",
152
- "outline-offset",
153
- "overflow",
154
- "overflow-x",
155
- "overflow-y",
156
- "resize",
157
- "visibility",
158
- "font",
159
- "font-style",
160
- "font-variant",
161
- "font-weight",
162
- "font-stretch",
163
- "font-size",
164
- "font-family",
165
- "font-synthesis",
166
- "font-size-adjust",
167
- "font-kerning",
168
- "line-height",
169
- "text-align",
170
- "text-align-last",
171
- "vertical-align",
172
- "text-overflow",
173
- "text-justify",
174
- "text-transform",
175
- "text-indent",
176
- "text-emphasis",
177
- "text-emphasis-style",
178
- "text-emphasis-color",
179
- "text-emphasis-position",
180
- "text-decoration",
181
- "text-decoration-color",
182
- "text-decoration-style",
183
- "text-decoration-line",
184
- "text-underline-position",
185
- "text-shadow",
186
- "white-space",
187
- "overflow-wrap",
188
- "word-wrap",
189
- "word-break",
190
- "line-break",
191
- "hyphens",
192
- "letter-spacing",
193
- "word-spacing",
194
- "quotes",
195
- "tab-size",
196
- "orphans",
197
- "writing-mode",
198
- "text-combine-upright",
199
- "unicode-bidi",
200
- "text-orientation",
201
- "direction",
202
- "text-rendering",
203
- "font-feature-settings",
204
- "font-language-override",
205
- "image-rendering",
206
- "image-orientation",
207
- "image-resolution",
208
- "shape-image-threshold",
209
- "shape-outside",
210
- "shape-margin",
211
- "color",
212
- "background",
213
- "background-image",
214
- "background-position",
215
- "background-size",
216
- "background-repeat",
217
- "background-origin",
218
- "background-clip",
219
- "background-attachment",
220
- "background-color",
221
- "background-blend-mode",
222
- "isolation",
223
- "clip-path",
224
- "mask",
225
- "mask-image",
226
- "mask-mode",
227
- "mask-position",
228
- "mask-size",
229
- "mask-repeat",
230
- "mask-origin",
231
- "mask-clip",
232
- "mask-composite",
233
- "mask-type",
234
- "filter",
235
- "box-shadow",
236
- "opacity",
237
- "transform-style",
238
- "transform",
239
- "transform-box",
240
- "transform-origin",
241
- "perspective",
242
- "perspective-origin",
243
- "backface-visibility",
244
- "transition",
245
- "transition-property",
246
- "transition-duration",
247
- "transition-timing-function",
248
- "transition-delay",
249
- "animation",
250
- "animation-name",
251
- "animation-duration",
252
- "animation-timing-function",
253
- "animation-delay",
254
- "animation-iteration-count",
255
- "animation-direction",
256
- "animation-fill-mode",
257
- "animation-play-state",
258
- "scroll-behavior",
259
- "scroll-snap-type",
260
- "scroll-snap-destination",
261
- "scroll-snap-coordinate",
262
- "cursor",
263
- "touch-action",
264
- "caret-color",
265
- "ime-mode",
266
- "object-fit",
267
- "object-position",
268
- "content",
269
- "counter-reset",
270
- "counter-increment",
271
- "will-change",
272
- "pointer-events",
273
- "all",
274
- "page-break-before",
275
- "page-break-after",
276
- "page-break-inside",
277
- "widows"
278
- ],
279
- "selector-pseudo-class-no-unknown": null,
280
- "shorthand-property-no-redundant-values": null,
281
- "at-rule-no-unknown": null,
282
- "at-rule-empty-line-before": null,
283
- "at-rule-name-space-after": null,
284
- "comment-empty-line-before": null,
285
- "declaration-bang-space-before": null,
286
- "declaration-empty-line-before": null,
287
- "function-comma-newline-after": null,
288
- "function-name-case": null,
289
- "function-parentheses-newline-inside": null,
290
- "function-max-empty-lines": null,
291
- "function-whitespace-after": null,
292
- "number-leading-zero": null,
293
- "number-no-trailing-zeros": null,
294
- "rule-empty-line-before": null,
295
- "selector-combinator-space-after": null,
296
- "selector-descendant-combinator-no-non-space": null,
297
- "selector-list-comma-newline-after": null,
298
- "selector-pseudo-element-colon-notation": null,
299
- "unit-no-unknown": null,
300
- "no-descending-specificity": null,
301
- "value-list-max-empty-lines": null
302
- }
303
- }
@@ -1,3 +0,0 @@
1
- # 11111
2
-
3
- > aswde
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- [
4
- '@babel/preset-env',
5
- {
6
- modules: false,
7
- targets: {
8
- browsers: ['> 1%', 'last 2 versions', 'not ie <= 8'],
9
- },
10
- },
11
- ],
12
- ],
13
- plugins: [
14
- [
15
- 'import',
16
- {
17
- libraryName: 'vant',
18
- libraryDirectory: 'es',
19
- style: true,
20
- },
21
- 'vant',
22
- ],
23
-
24
- ['@babel/plugin-transform-runtime', { corejs: 3 }],
25
- '@babel/plugin-syntax-dynamic-import',
26
- '@babel/plugin-transform-object-assign',
27
- '@babel/plugin-transform-modules-commonjs',
28
- ['@babel/plugin-proposal-decorators', { legacy: true }],
29
- ['@babel/plugin-proposal-class-properties', { loose: true }],
30
- '@babel/plugin-syntax-jsx',
31
- '@vue/babel-plugin-transform-vue-jsx',
32
- 'jsx-v-model',
33
- ],
34
- };
@@ -1,62 +0,0 @@
1
- 'use strict';
2
- const merge = require('webpack-merge');
3
-
4
- /**
5
- * development env config
6
- * @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
7
- */
8
- const dev_env = {
9
- NODE_ENV: '"development"',
10
- ENV_CONFIG: '"dev"',
11
- BASE_API: '""',
12
- };
13
-
14
- /**
15
- * mock data in cloud
16
- * @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
17
- */
18
- const mock_cloud_env = {
19
- NODE_ENV: '"development"',
20
- ENV_CONFIG: '"mock"',
21
- BASE_API: '"https://www.easy-mock.com/mock/5d240fe12102c0666393d2b7/gaocangxiong/"', //mock
22
- };
23
-
24
- /**
25
- * mock data in local
26
- * @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
27
- */
28
- const mock_local_env = {
29
- NODE_ENV: '"development"',
30
- ENV_CONFIG: '"mock"',
31
- BASE_API: '""',
32
- };
33
- /**
34
- * production env config
35
- * @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
36
- */
37
- const prod_env = {
38
- NODE_ENV: '"production"',
39
- ENV_CONFIG: '"prod"',
40
- BASE_API: '""',
41
- };
42
- /**
43
- * test env config
44
- * @type {{NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}}
45
- */
46
- const test_env = {
47
- NODE_ENV: '"testing"',
48
- ENV_CONFIG: '"test"',
49
- BASE_API: '"http://192.168.1.210/api"',
50
- };
51
-
52
- /**
53
- * push module
54
- * @type {{dev_env: *, mock_env: *, prod_env: {NODE_ENV: string, ENV_CONFIG: string, BASE_API: string}, test_env: *}}
55
- */
56
- module.exports = {
57
- dev_env: merge(prod_env, dev_env),
58
- mock_local_env: merge(prod_env, mock_local_env),
59
- mock_cloud_env: merge(prod_env, mock_cloud_env),
60
- prod_env: prod_env,
61
- test_env: merge(dev_env, test_env),
62
- };
@@ -1,112 +0,0 @@
1
- 'use strict';
2
- const path = require('path');
3
-
4
- module.exports = {
5
- dev: {
6
- entry: { app: './src/main.js' },
7
- templateSPA: './index.html',
8
- staticPath: './static',
9
- assetsPublicPath: '/',
10
- port: 3000,
11
- host: '0.0.0.0', //'192.168.6.205','192.168.6.182' / 192.168.0.106
12
- useEslint: false,
13
- prescript: [],
14
- posscript: [],
15
- usepxtorem: true,
16
- remUnit: 18,
17
- proxyTable: {
18
- '/api': {
19
- // target: 'http://dmv10.new-see.com/',
20
- // target: 'http://neibuv10.nwcloud.cn/',
21
- // target: 'http://192.168.1.52/',
22
- // target: 'http://120.35.8.190:6125/',
23
- // target: 'http://192.168.1.20:8902',
24
- target: 'http://10.10.10.202',
25
- changeOrigin: true,
26
- // pathRewrite: {
27
- // '^/api/service': '/',
28
- // },
29
- },
30
- '/equipAPI/qiwei': {
31
- // target: 'http://dmv10.new-see.com/',
32
- target: 'http://neibuv10.nwcloud.cn/',
33
- // target: 'http://192.168.1.52/',
34
- // target: 'http://120.35.8.190:6125/',
35
- // target: 'http://192.168.1.20:8905',
36
- changeOrigin: true,
37
- // pathRewrite: {
38
- // '^/equipAPI': '/',
39
- // },
40
- },
41
- },
42
- },
43
-
44
- prod: {
45
- mode: 'MPA', //project mode
46
- entry: { app: './src/main.js' },
47
- assetsPublicPath: './',
48
- cssExtractPublicPath: '../../',
49
- favicon: path.resolve('./favicon.ico'),
50
- splitChunks: {
51
- chunks: 'all',
52
- maxInitialRequests: 3,
53
- cacheGroups: {
54
- libs: {
55
- name: 'chunk-libs',
56
- test: module => {
57
- if (module.resource) {
58
- const include = [/[\\/]node_modules[\\/]/].every(reg => {
59
- return reg.test(module.resource);
60
- });
61
- const exclude = [/[\\/]node_modules[\\/](vue|antv[\\/]f2|)/].some(reg => {
62
- return reg.test(module.resource);
63
- });
64
-
65
- return include && !exclude;
66
- }
67
- return false;
68
- },
69
- priority: -10,
70
- chunks: 'initial',
71
- },
72
-
73
- vue: {
74
- name: 'chunk-vue',
75
- priority: 20,
76
- test: /[\\/]node_modules[\\/]vue[\\/]/,
77
- },
78
- f2: {
79
- name: 'chunk-f2',
80
- priority: 20,
81
- test: /[\\/]node_modules[\\/]antv[\\/]f2[\\/]/,
82
- },
83
- },
84
- },
85
- useEslint: false,
86
- prescript: ['npm run tag'],
87
- usepxtorem: true,
88
- remUnit: 18,
89
- },
90
- base: {
91
- babel: {
92
- priority: true,
93
- include: ['src'],
94
- },
95
- alias: {
96
- '@': path.resolve('./src'),
97
- },
98
- prettier: {
99
- switch: false,
100
- files: ['src/**/*.{vue,less,scss,css,js,jsx,ts,tsx,json}'],
101
- },
102
- tools: {
103
- npmUpgradeList: [
104
- {
105
- module: 'cx-builder',
106
- edition: 'latest', //beta / latest
107
- version: null,
108
- },
109
- ],
110
- },
111
- },
112
- };
Binary file