create-jsview 2.3.151-test.0 → 3.0.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 (28) hide show
  1. package/common.mjs +9 -8
  2. package/package.json +4 -4
  3. package/template-vue-vite/package-lock-json +1372 -1160
  4. package/template-vue-vite/package.json +23 -12
  5. package/template-vue-vite/src/appConfig/jsview.config.mjs +8 -2
  6. package/template-vue-vite/src/{featureEnables.tsx → featureEnables.ts} +3 -0
  7. package/template-vue-vite/tsconfig/tsconfig.app.json +29 -0
  8. package/template-vue-vite/tsconfig/tsconfig.jsview.json +15 -0
  9. package/template-vue-vite/tsconfig/tsconfig.node.json +22 -0
  10. package/template-vue-vite/tsconfig.json +5 -24
  11. package/template-react-webpack/README.md +0 -16
  12. package/template-react-webpack/_gitignore +0 -23
  13. package/template-react-webpack/package-lock-json +0 -27673
  14. package/template-react-webpack/package.json +0 -32
  15. package/template-react-webpack/public/index.html +0 -12
  16. package/template-react-webpack/src/App.css +0 -38
  17. package/template-react-webpack/src/App.js +0 -18
  18. package/template-react-webpack/src/appConfig/HOW_TO_CONFIG.md +0 -20
  19. package/template-react-webpack/src/appConfig/app.config.mjs +0 -7
  20. package/template-react-webpack/src/appConfig/app_sign_private_key_sample.crt +0 -28
  21. package/template-react-webpack/src/appConfig/app_sign_public_key_sample.pem +0 -9
  22. package/template-react-webpack/src/appConfig/jsview.config.mjs +0 -41
  23. package/template-react-webpack/src/logo.png +0 -0
  24. package/template-react-webpack/src/main.tsx +0 -19
  25. package/template-react-webpack/tsconfig.json +0 -9
  26. package/template-vue-vite/tsconfig.node.json +0 -8
  27. /package/template-vue-vite/src/{main.tsx → main.ts} +0 -0
  28. /package/template-vue-vite/src/{permissionResult.tsx → permissionResult.ts} +0 -0
package/common.mjs CHANGED
@@ -96,7 +96,7 @@ function getFileFromScriptDir(fileName) {
96
96
  function getFrameworkPrompt() {
97
97
  return [
98
98
  { title: 'vue + vite', value: 'vue-vite' },
99
- { title: 'react + webpack', value: 'react-webpack' },
99
+ // { title: 'react + webpack', value: 'react-webpack' },
100
100
  ];
101
101
  }
102
102
 
@@ -110,13 +110,14 @@ async function getProjectConfigAsync(operator, defaultName) {
110
110
 
111
111
  const questions = [];
112
112
 
113
- questions.push({
114
- type: 'select',
115
- name: 'framework',
116
- message: `Select framework to ${operator}:`,
117
- initial: 0,
118
- choices: getFrameworkPrompt(),
119
- });
113
+ // questions.push({
114
+ // type: 'select',
115
+ // name: 'framework',
116
+ // message: `Select framework to ${operator}:`,
117
+ // initial: 0,
118
+ // choices: getFrameworkPrompt(),
119
+ // });
120
+ config.framework = 'vue-vite';
120
121
 
121
122
  questions.push({
122
123
  type: 'text',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jsview",
3
- "version": "2.3.151-test.0",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "create-jsview": "index.mjs",
@@ -10,7 +10,7 @@
10
10
  "files": [
11
11
  "*.mjs",
12
12
  "template-vue-vite/*",
13
- "template-react-webpack/*"
13
+ "//template-react-webpack/*"
14
14
  ],
15
15
  "main": "index.mjs",
16
16
  "engines": {
@@ -29,7 +29,7 @@
29
29
  "prompts": "^2.4.2"
30
30
  },
31
31
  "template": {
32
- "vue": "2.3.151-test.0",
33
- "react": "2.1.448-test.0"
32
+ "vue": "3.0.0",
33
+ "react": "3.0.0"
34
34
  }
35
35
  }