create-packer 1.7.8 → 1.8.0

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 (242) hide show
  1. package/bin/clis/createTemp.d.ts +5 -0
  2. package/bin/clis/createTemp.js +57 -0
  3. package/bin/index.js +6 -11
  4. package/bin/utils/index.d.ts +3 -1
  5. package/bin/utils/index.js +24 -4
  6. package/package.json +16 -19
  7. package/template/{doc/docusaurus → docusaurus}/.gitignore +0 -0
  8. package/template/{doc/docusaurus → docusaurus}/.prettierignore +0 -0
  9. package/template/{desktop-app/electron/app → docusaurus}/.prettierrc.js +0 -0
  10. package/template/{doc/docusaurus → docusaurus}/README.md +0 -0
  11. package/template/{doc/docusaurus → docusaurus}/babel.config.js +0 -0
  12. package/template/{doc/docusaurus → docusaurus}/blog/2019-05-28-hola.md +0 -0
  13. package/template/{doc/docusaurus → docusaurus}/blog/2019-05-29-hello-world.md +0 -0
  14. package/template/{doc/docusaurus → docusaurus}/blog/2019-05-30-welcome.md +0 -0
  15. package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc1.mdx +0 -0
  16. package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc2.mdx +0 -0
  17. package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc3.mdx +0 -0
  18. package/template/{doc/docusaurus → docusaurus}/docs/doc1/doc4.mdx +0 -0
  19. package/template/{doc/docusaurus → docusaurus}/docs/doc2/doc1.mdx +0 -0
  20. package/template/{doc/docusaurus → docusaurus}/docs/doc2/doc2.mdx +0 -0
  21. package/template/{doc/docusaurus → docusaurus}/docs/doc2/doc3.mdx +0 -0
  22. package/template/{doc/docusaurus → docusaurus}/docs/doc2/mdx4.mdx +0 -0
  23. package/template/{doc/docusaurus → docusaurus}/docusaurus.config.js +0 -0
  24. package/template/{doc/docusaurus → docusaurus}/package.json +19 -19
  25. package/template/{doc/docusaurus → docusaurus}/sidebars.js +0 -0
  26. package/template/{doc/docusaurus → docusaurus}/src/css/custom.css +0 -0
  27. package/template/{doc/docusaurus → docusaurus}/src/pages/index.tsx +0 -0
  28. package/template/{doc/docusaurus → docusaurus}/src/pages/styles.module.css +0 -0
  29. package/template/{doc/docusaurus → docusaurus}/static/.nojekyll +0 -0
  30. package/template/{doc/docusaurus → docusaurus}/static/img/docusaurus.png +0 -0
  31. package/template/{doc/docusaurus → docusaurus}/static/img/favicon.ico +0 -0
  32. package/template/{doc/docusaurus → docusaurus}/static/img/logo.svg +0 -0
  33. package/template/{doc/docusaurus → docusaurus}/static/img/tutorial/docsVersionDropdown.png +0 -0
  34. package/template/{doc/docusaurus → docusaurus}/static/img/tutorial/localeDropdown.png +0 -0
  35. package/template/{doc/docusaurus → docusaurus}/static/img/undraw_docusaurus_mountain.svg +0 -0
  36. package/template/{doc/docusaurus → docusaurus}/static/img/undraw_docusaurus_react.svg +0 -0
  37. package/template/{doc/docusaurus → docusaurus}/static/img/undraw_docusaurus_tree.svg +0 -0
  38. package/template/{doc/docusaurus → docusaurus}/tsconfig.json +0 -0
  39. package/template/{node/nest → nest}/.eslintrc.js +1 -0
  40. package/template/nest/.gitignore +35 -0
  41. package/template/nest/.prettierrc +4 -0
  42. package/template/{node/nest → nest}/README.md +1 -1
  43. package/template/{node/nest → nest}/nest-cli.json +1 -0
  44. package/template/nest/package.json +71 -0
  45. package/template/nest/src/app.controller.spec.ts +22 -0
  46. package/template/nest/src/app.controller.ts +12 -0
  47. package/template/nest/src/app.module.ts +10 -0
  48. package/template/nest/src/app.service.ts +8 -0
  49. package/template/nest/src/main.ts +10 -0
  50. package/template/{node/nest → nest}/src/utils/transform.interceptor.ts +0 -0
  51. package/template/nest/test/app.e2e-spec.ts +24 -0
  52. package/template/{node/nest → nest}/test/jest-e2e.json +0 -0
  53. package/template/nest/tsconfig.build.json +5 -0
  54. package/template/{node/nest → nest}/tsconfig.json +7 -1
  55. package/template/{web-app/rc-recoil → react-cra}/.env +0 -0
  56. package/template/{web-app/rc-recoil → react-cra}/.gitignore +0 -0
  57. package/template/{desktop-app/electron/app → react-cra}/.prettierignore +0 -0
  58. package/template/{doc/docusaurus → react-cra}/.prettierrc.js +0 -0
  59. package/template/{web-app/rc-recoil → react-cra}/.stylelintrc.js +0 -0
  60. package/template/{web-app/rc-recoil → react-cra}/README.md +0 -0
  61. package/template/{web-app/rc-recoil → react-cra}/craco.config.js +0 -0
  62. package/template/{web-app/rc-recoil → react-cra}/package.json +25 -27
  63. package/template/{web-app/rc-recoil → react-cra}/public/favicon.ico +0 -0
  64. package/template/{web-app/rc-recoil → react-cra}/public/index.html +0 -0
  65. package/template/{web-app/rc-recoil → react-cra}/public/manifest.json +0 -0
  66. package/template/react-cra/src/Layout/index.tsx +8 -0
  67. package/template/{web-app/rc-recoil → react-cra}/src/Layout/typings.ts +0 -0
  68. package/template/{web-app/rc-recoil → react-cra}/src/index.scss +0 -0
  69. package/template/react-cra/src/index.tsx +24 -0
  70. package/template/{web-app/rc-recoil → react-cra}/src/logo.svg +0 -0
  71. package/template/{web-app/rc-recoil → react-cra}/src/pages/home/Home.scss +0 -0
  72. package/template/react-cra/src/pages/home/index.test.tsx +9 -0
  73. package/template/{web-app/rc-recoil → react-cra}/src/pages/home/index.tsx +0 -0
  74. package/template/{web-app/rc-recoil → react-cra}/src/react-app-env.d.ts +0 -0
  75. package/template/{web-app/rc-recoil → react-cra}/src/reportWebVitals.ts +0 -0
  76. package/template/react-cra/src/routes/index.ts +15 -0
  77. package/template/{web-app/rc-recoil → react-cra}/src/setupTests.ts +0 -0
  78. package/template/{web-app/rc-recoil → react-cra}/tsconfig.json +0 -0
  79. package/bin/clis/Create.d.ts +0 -4
  80. package/bin/clis/Create.js +0 -47
  81. package/bin/clis/Project.d.ts +0 -30
  82. package/bin/clis/Project.js +0 -65
  83. package/template/desktop-app/electron/.gitignore +0 -34
  84. package/template/desktop-app/electron/app/.eslintrc +0 -28
  85. package/template/desktop-app/electron/app/.gitignore +0 -19
  86. package/template/desktop-app/electron/app/babel.config.js +0 -19
  87. package/template/desktop-app/electron/app/package.json +0 -106
  88. package/template/desktop-app/electron/app/src/configs/appConfig.ts +0 -8
  89. package/template/desktop-app/electron/app/src/lib/AppWin.ts +0 -17
  90. package/template/desktop-app/electron/app/src/lib/DefaultWin.ts +0 -40
  91. package/template/desktop-app/electron/app/src/main.ts +0 -38
  92. package/template/desktop-app/electron/app/src/utils/updateAction.ts +0 -39
  93. package/template/desktop-app/electron/app/tsconfig.json +0 -20
  94. package/template/desktop-app/electron/app/webpack.config.js +0 -49
  95. package/template/desktop-app/electron/app/yarn.lock +0 -6479
  96. package/template/desktop-app/electron/package.json +0 -20
  97. package/template/desktop-app/electron/utils/package.js +0 -40
  98. package/template/desktop-app/electron/yarn.lock +0 -42
  99. package/template/doc/docusaurus/yarn.lock +0 -9466
  100. package/template/lib/gulp/.eslintrc +0 -40
  101. package/template/lib/gulp/.gitignore +0 -31
  102. package/template/lib/gulp/.prettierignore +0 -7
  103. package/template/lib/gulp/.prettierrc.js +0 -21
  104. package/template/lib/gulp/LICENSE +0 -21
  105. package/template/lib/gulp/README.md +0 -1
  106. package/template/lib/gulp/jest.config.js +0 -8
  107. package/template/lib/gulp/package.json +0 -35
  108. package/template/lib/gulp/scripts/build.js +0 -18
  109. package/template/lib/gulp/src/index.ts +0 -3
  110. package/template/lib/gulp/test/index.test.ts +0 -3
  111. package/template/lib/gulp/tsconfig.json +0 -19
  112. package/template/lib/gulp/yarn.lock +0 -9570
  113. package/template/lib/rollup/.eslintrc +0 -40
  114. package/template/lib/rollup/.gitignore +0 -27
  115. package/template/lib/rollup/.prettierignore +0 -7
  116. package/template/lib/rollup/.prettierrc.js +0 -21
  117. package/template/lib/rollup/LICENSE +0 -21
  118. package/template/lib/rollup/README.md +0 -1
  119. package/template/lib/rollup/jest.config.js +0 -8
  120. package/template/lib/rollup/package.json +0 -35
  121. package/template/lib/rollup/scripts/build.js +0 -8
  122. package/template/lib/rollup/src/index.ts +0 -3
  123. package/template/lib/rollup/test/index.test.ts +0 -3
  124. package/template/lib/rollup/tsconfig.json +0 -21
  125. package/template/lib/rollup/yarn.lock +0 -9570
  126. package/template/node/base/.eslintrc +0 -28
  127. package/template/node/base/.gitignore +0 -15
  128. package/template/node/base/.prettierignore +0 -4
  129. package/template/node/base/.prettierrc.js +0 -20
  130. package/template/node/base/LICENSE +0 -201
  131. package/template/node/base/README.md +0 -9
  132. package/template/node/base/jest.config.js +0 -8
  133. package/template/node/base/package.json +0 -37
  134. package/template/node/base/src/server.ts +0 -0
  135. package/template/node/base/test/server.test.ts +0 -3
  136. package/template/node/base/tsconfig.json +0 -19
  137. package/template/node/base/yarn.lock +0 -4038
  138. package/template/node/nest/.gitignore +0 -15
  139. package/template/node/nest/.prettierignore +0 -4
  140. package/template/node/nest/.prettierrc.js +0 -20
  141. package/template/node/nest/package.json +0 -76
  142. package/template/node/nest/src/app.controller.spec.ts +0 -22
  143. package/template/node/nest/src/app.controller.ts +0 -12
  144. package/template/node/nest/src/app.module.ts +0 -10
  145. package/template/node/nest/src/app.service.ts +0 -8
  146. package/template/node/nest/src/main.ts +0 -10
  147. package/template/node/nest/test/app.e2e-spec.ts +0 -21
  148. package/template/node/nest/tsconfig.build.json +0 -4
  149. package/template/node/nest/yarn.lock +0 -5931
  150. package/template/web-app/rc-recoil/.prettierignore +0 -4
  151. package/template/web-app/rc-recoil/.prettierrc.js +0 -20
  152. package/template/web-app/rc-recoil/src/Layout/index.tsx +0 -12
  153. package/template/web-app/rc-recoil/src/app.store.ts +0 -8
  154. package/template/web-app/rc-recoil/src/index.tsx +0 -23
  155. package/template/web-app/rc-recoil/src/pages/home/home.store.ts +0 -6
  156. package/template/web-app/rc-recoil/src/pages/home/index.test.tsx +0 -15
  157. package/template/web-app/rc-recoil/src/routes/index.ts +0 -11
  158. package/template/web-app/rc-recoil/yarn.lock +0 -12437
  159. package/template/web-app/rc-redux/.env +0 -1
  160. package/template/web-app/rc-redux/.gitignore +0 -30
  161. package/template/web-app/rc-redux/.prettierignore +0 -4
  162. package/template/web-app/rc-redux/.prettierrc.js +0 -20
  163. package/template/web-app/rc-redux/.stylelintrc.js +0 -21
  164. package/template/web-app/rc-redux/README.md +0 -10
  165. package/template/web-app/rc-redux/craco.config.js +0 -14
  166. package/template/web-app/rc-redux/package.json +0 -72
  167. package/template/web-app/rc-redux/public/favicon.ico +0 -0
  168. package/template/web-app/rc-redux/public/index.html +0 -41
  169. package/template/web-app/rc-redux/public/manifest.json +0 -15
  170. package/template/web-app/rc-redux/src/Layout/index.tsx +0 -9
  171. package/template/web-app/rc-redux/src/index.scss +0 -5
  172. package/template/web-app/rc-redux/src/index.tsx +0 -24
  173. package/template/web-app/rc-redux/src/logo.svg +0 -7
  174. package/template/web-app/rc-redux/src/pages/home/Home.scss +0 -0
  175. package/template/web-app/rc-redux/src/pages/home/home.store.ts +0 -7
  176. package/template/web-app/rc-redux/src/pages/home/index.test.tsx +0 -17
  177. package/template/web-app/rc-redux/src/pages/home/index.tsx +0 -10
  178. package/template/web-app/rc-redux/src/react-app-env.d.ts +0 -1
  179. package/template/web-app/rc-redux/src/reportWebVitals.ts +0 -15
  180. package/template/web-app/rc-redux/src/routes/index.ts +0 -11
  181. package/template/web-app/rc-redux/src/serviceWorker.ts +0 -139
  182. package/template/web-app/rc-redux/src/setupTests.ts +0 -5
  183. package/template/web-app/rc-redux/src/store/App.store.ts +0 -9
  184. package/template/web-app/rc-redux/src/store/index.ts +0 -11
  185. package/template/web-app/rc-redux/tsconfig.json +0 -21
  186. package/template/web-app/rc-redux/yarn.lock +0 -12480
  187. package/template/web-app/vue-2.x/.browserslistrc +0 -2
  188. package/template/web-app/vue-2.x/.gitignore +0 -30
  189. package/template/web-app/vue-2.x/.prettierignore +0 -5
  190. package/template/web-app/vue-2.x/.prettierrc.js +0 -20
  191. package/template/web-app/vue-2.x/README.md +0 -29
  192. package/template/web-app/vue-2.x/babel.config.js +0 -3
  193. package/template/web-app/vue-2.x/package.json +0 -31
  194. package/template/web-app/vue-2.x/public/favicon.ico +0 -0
  195. package/template/web-app/vue-2.x/public/index.html +0 -20
  196. package/template/web-app/vue-2.x/src/App.vue +0 -5
  197. package/template/web-app/vue-2.x/src/assets/logo.png +0 -0
  198. package/template/web-app/vue-2.x/src/main.ts +0 -12
  199. package/template/web-app/vue-2.x/src/router/index.ts +0 -21
  200. package/template/web-app/vue-2.x/src/shims-tsx.d.ts +0 -13
  201. package/template/web-app/vue-2.x/src/shims-vue.d.ts +0 -4
  202. package/template/web-app/vue-2.x/src/store/app.ts +0 -19
  203. package/template/web-app/vue-2.x/src/store/index.ts +0 -27
  204. package/template/web-app/vue-2.x/src/views/Home.vue +0 -5
  205. package/template/web-app/vue-2.x/tsconfig.json +0 -22
  206. package/template/web-app/vue-2.x/tslint.json +0 -21
  207. package/template/web-app/vue-2.x/vue.config.js +0 -10
  208. package/template/web-app/vue-2.x/yarn.lock +0 -8128
  209. package/template/web-app/webpack/.editorconfig +0 -14
  210. package/template/web-app/webpack/.gitignore +0 -30
  211. package/template/web-app/webpack/.prettierignore +0 -5
  212. package/template/web-app/webpack/.prettierrc.js +0 -20
  213. package/template/web-app/webpack/.stylelintrc.js +0 -21
  214. package/template/web-app/webpack/LICENSE +0 -191
  215. package/template/web-app/webpack/README.md +0 -4
  216. package/template/web-app/webpack/babel.config.js +0 -17
  217. package/template/web-app/webpack/jest.config.js +0 -27
  218. package/template/web-app/webpack/package.json +0 -85
  219. package/template/web-app/webpack/postcss.config.js +0 -11
  220. package/template/web-app/webpack/src/Layout/index.tsx +0 -9
  221. package/template/web-app/webpack/src/Layout/typings.ts +0 -4
  222. package/template/web-app/webpack/src/global.css +0 -3
  223. package/template/web-app/webpack/src/global.d.ts +0 -8
  224. package/template/web-app/webpack/src/index.html +0 -16
  225. package/template/web-app/webpack/src/index.tsx +0 -20
  226. package/template/web-app/webpack/src/pages/Home/Home.css.json +0 -1
  227. package/template/web-app/webpack/src/pages/Home/Home.module.css +0 -3
  228. package/template/web-app/webpack/src/pages/Home/Home.store.ts +0 -12
  229. package/template/web-app/webpack/src/pages/Home/index.test.tsx +0 -17
  230. package/template/web-app/webpack/src/pages/Home/index.tsx +0 -15
  231. package/template/web-app/webpack/src/pages/Home/typings.ts +0 -1
  232. package/template/web-app/webpack/src/routes/index.ts +0 -16
  233. package/template/web-app/webpack/src/store/App.store.ts +0 -14
  234. package/template/web-app/webpack/src/store/index.ts +0 -11
  235. package/template/web-app/webpack/tsconfig.json +0 -23
  236. package/template/web-app/webpack/tslint.json +0 -21
  237. package/template/web-app/webpack/webpack.config.js +0 -15
  238. package/template/web-app/webpack/webpack_config/config.js +0 -14
  239. package/template/web-app/webpack/webpack_config/genBaseConfig.js +0 -73
  240. package/template/web-app/webpack/webpack_config/genStyleConfig.js +0 -23
  241. package/template/web-app/webpack/webpack_config/jest/fileTransform.js +0 -40
  242. package/template/web-app/webpack/yarn.lock +0 -8474
@@ -1,2 +0,0 @@
1
- > 1%
2
- last 2 versions
@@ -1,30 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
-
3
- # dependencies
4
- node_modules/
5
- /.pnp
6
- .pnp.js
7
-
8
- # testing
9
- coverage/
10
-
11
- # production
12
- build/
13
- dist/
14
- .vscode
15
- .idea
16
- .history
17
- lib/
18
- es/
19
- types/
20
-
21
- # misc
22
- .DS_Store
23
- .env.local
24
- .env.development.local
25
- .env.test.local
26
- .env.production.local
27
-
28
- npm-debug.log*
29
- yarn-debug.log*
30
- yarn-error.log*
@@ -1,5 +0,0 @@
1
- **/*.md
2
- **/*.svg
3
- **/*.ejs
4
- **/*.html
5
- package.json
@@ -1,20 +0,0 @@
1
- // 配置文档: https://prettier.io/docs/en/options.html
2
- // ----------------------------------------------------------------------
3
- module.exports = {
4
- overrides: [
5
- {
6
- files: '.prettierrc',
7
- options: { parser: 'json' }
8
- }
9
- ],
10
- printWidth: 100,
11
- tabWidth: 4,
12
- useTabs: false,
13
- semi: false,
14
- singleQuote: true,
15
- trailingComma: 'none',
16
- bracketSpacing: true,
17
- jsxBracketSameLine: true,
18
- arrowParens: 'avoid',
19
- rangeStart: 0
20
- }
@@ -1,29 +0,0 @@
1
- # view
2
-
3
- ## Project setup
4
-
5
- ```
6
- yarn install
7
- ```
8
-
9
- ### Compiles and hot-reloads for development
10
-
11
- ```
12
- yarn serve
13
- ```
14
-
15
- ### Compiles and minifies for production
16
-
17
- ```
18
- yarn build
19
- ```
20
-
21
- ### Lints and fixes files
22
-
23
- ```
24
- yarn lint
25
- ```
26
-
27
- ### Customize configuration
28
-
29
- See [Configuration Reference](https://cli.vuejs.org/config/).
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['@vue/cli-plugin-babel/preset']
3
- }
@@ -1,31 +0,0 @@
1
- {
2
- "name": "view",
3
- "version": "0.1.0",
4
- "private": true,
5
- "scripts": {
6
- "serve": "vue-cli-service serve",
7
- "build": "vue-cli-service build",
8
- "upgrade:vue": "yarn upgrade -L --pattern [@]vue",
9
- "lint": "vue-cli-service lint"
10
- },
11
- "dependencies": {
12
- "core-js": "^3.6.4",
13
- "vue": "^2.6.11",
14
- "vue-class-component": "^7.2.2",
15
- "vue-property-decorator": "^8.3.0",
16
- "vue-router": "^3.1.5",
17
- "vuex": "^3.1.2"
18
- },
19
- "devDependencies": {
20
- "@vue/cli-plugin-babel": "~4.4.6",
21
- "@vue/cli-plugin-router": "~4.4.6",
22
- "@vue/cli-plugin-typescript": "~4.4.6",
23
- "@vue/cli-plugin-vuex": "~4.4.6",
24
- "@vue/cli-service": "~4.4.6",
25
- "less": "^3.0.4",
26
- "less-loader": "^5.0.0",
27
- "prettier": "^2.0.1",
28
- "typescript": "~3.9.6",
29
- "vue-template-compiler": "^2.6.11"
30
- }
31
- }
@@ -1,20 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
8
- <title><%= htmlWebpackPlugin.options.title %></title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong
13
- >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly
14
- without JavaScript enabled. Please enable it to continue.</strong
15
- >
16
- </noscript>
17
- <div id="app"></div>
18
- <!-- built files will be auto injected -->
19
- </body>
20
- </html>
@@ -1,5 +0,0 @@
1
- <template>
2
- <router-view />
3
- </template>
4
-
5
- <style lang="less"></style>
@@ -1,12 +0,0 @@
1
- import Vue from 'vue'
2
- import App from './App.vue'
3
- import router from './router'
4
- import store from './store'
5
-
6
- Vue.config.productionTip = false
7
-
8
- new Vue({
9
- router,
10
- store,
11
- render: h => h(App)
12
- }).$mount('#app')
@@ -1,21 +0,0 @@
1
- import Vue from 'vue'
2
- import VueRouter from 'vue-router'
3
- import { RouteConfig } from 'vue-router/types/router'
4
-
5
- Vue.use(VueRouter)
6
-
7
- const routes: RouteConfig[] = [
8
- {
9
- path: '/',
10
- name: 'Home',
11
- component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue')
12
- }
13
- ]
14
-
15
- const router = new VueRouter({
16
- mode: 'history',
17
- base: process.env.BASE_URL,
18
- routes
19
- })
20
-
21
- export default router
@@ -1,13 +0,0 @@
1
- import Vue, { VNode } from 'vue'
2
-
3
- declare global {
4
- namespace JSX {
5
- // tslint:disable no-empty-interface
6
- interface Element extends VNode {}
7
- // tslint:disable no-empty-interface
8
- interface ElementClass extends Vue {}
9
- interface IntrinsicElements {
10
- [elem: string]: any
11
- }
12
- }
13
- }
@@ -1,4 +0,0 @@
1
- declare module '*.vue' {
2
- import Vue from 'vue';
3
- export default Vue;
4
- }
@@ -1,19 +0,0 @@
1
- import { StoreOptions } from 'vuex/types'
2
-
3
- const state = {}
4
- type appStoreType = StoreOptions<typeof state>
5
-
6
- const store: appStoreType = {
7
- state,
8
- mutations: {
9
- updater() {
10
- const a = {
11
- b: 2
12
- }
13
- console.log('1', a?.b)
14
- }
15
- },
16
- actions: {}
17
- }
18
-
19
- export default store
@@ -1,27 +0,0 @@
1
- import Vue from 'vue'
2
- import Vuex from 'vuex'
3
-
4
- Vue.use(Vuex)
5
-
6
- // 自动获取并注册views下的所有store文件, 模块名与文件名一致(.store前面的名字)
7
- // ----------------------------------------------------------------------
8
- const ctx = require.context('../views', true, /\.store\.ts$/)
9
- const stores: any = {}
10
- ctx.keys().forEach(key => {
11
- let fileName = key.split('/').slice(-1)[0]
12
- fileName = fileName.split('.')[0]
13
- stores[fileName] = {
14
- namespaced: true,
15
- ...ctx(key).default
16
- }
17
- })
18
-
19
- export default new Vuex.Store({
20
- modules: {
21
- app: {
22
- namespaced: true,
23
- ...require('./app').default
24
- },
25
- ...stores
26
- }
27
- })
@@ -1,5 +0,0 @@
1
- <template>
2
- <div>
3
- home
4
- </div>
5
- </template>
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "strict": true,
6
- "jsx": "preserve",
7
- "importHelpers": true,
8
- "moduleResolution": "node",
9
- "experimentalDecorators": true,
10
- "esModuleInterop": true,
11
- "allowSyntheticDefaultImports": true,
12
- "sourceMap": true,
13
- "baseUrl": ".",
14
- "types": ["webpack-env"],
15
- "paths": {
16
- "@/*": ["src/*"]
17
- },
18
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
19
- },
20
- "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
21
- "exclude": ["node_modules"]
22
- }
@@ -1,21 +0,0 @@
1
- {
2
- "defaultSeverity": "warning",
3
- "extends": ["tslint:recommended"],
4
- "linterOptions": {
5
- "exclude": ["node_modules/**"]
6
- },
7
- "rules": {
8
- "indent": [true, "spaces", 4],
9
- "semicolon": false,
10
- "trailing-comma": false,
11
- "arrow-parens": false,
12
- "interface-name": false,
13
- "no-consecutive-blank-lines": false,
14
- "object-literal-sort-keys": false,
15
- "ordered-imports": false,
16
- "no-console": false,
17
- "space-before-function-paren": false,
18
- "only-arrow-functions": false,
19
- "quotemark": [true, "single"]
20
- }
21
- }
@@ -1,10 +0,0 @@
1
- // vue.config.js
2
- module.exports = {
3
- configureWebpack: config => {
4
- if (process.env.NODE_ENV === 'production') {
5
- // 为生产环境修改配置...
6
- } else {
7
- // 为开发环境修改配置...
8
- }
9
- }
10
- }