@shijiu/jsview-vue 0.9.247 → 0.9.261

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/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@shijiu/jsview-vue",
3
- "version": "0.9.247",
3
+ "version": "0.9.261",
4
4
  "bin": {
5
5
  "jsview-post-build": "./scripts/jsview-post-build.js",
6
6
  "jsview-post-install": "./scripts/jsview-post-install.js",
7
7
  "jsview-install-local-packages": "./scripts/jsview-install-local-packages.js"
8
8
  },
9
- "scripts": {
10
- "fast-publish": "node ./scripts/deploy-update-version.js && npm publish --access=public --registry https://registry.npmjs.com",
11
- "fast-pack": "node ./scripts/deploy-update-version.js && node ./scripts/deploy-pre-pack.js"
12
- },
13
9
  "repository": "system/jsview-vue",
14
10
  "bugs": "http://gitlab.qcast.cn/system/jsview-vue/issues",
15
11
  "keywords": [
package/scripts/common.js CHANGED
@@ -1,41 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const path = require("path");
4
3
  const fs = require("fs");
5
- const { execSync } = require('child_process');
6
-
7
- function updateVersion(projectDir, ignoreChanges)
8
- {
9
- let cmdLine = 'cd ' + projectDir + ' && git rev-list --count HEAD';
10
- let patchVersion = execSync(cmdLine, { stderr: "inherit" });
11
- patchVersion = parseInt(patchVersion);
12
-
13
- pkgPkgFile = path.resolve(projectDir, 'package.json');
14
- if (!fs.existsSync(pkgPkgFile)) {
15
- console.error('Error: Failed to install jsview patches, "' + path.relative(projectDir, pkgPkgFile) + '" is not exists.');
16
- process.exit(1);
17
- }
18
- pkgPkgObj = require(pkgPkgFile);
19
- if (pkgPkgObj.version.endsWith("." + patchVersion)) {
20
- console.info('\nFound version: ' + pkgPkgObj.version);
21
- return;
22
- }
23
-
24
- if (!ignoreChanges) {
25
- let cmdLine = 'cd ' + projectDir + ' && git status --porcelain';
26
- let gitChanges = execSync(cmdLine, { stderr: "inherit" });
27
- gitChanges = gitChanges.toString();
28
- if (gitChanges) {
29
- return gitChanges;
30
- }
31
- }
32
-
33
- // 替换PatchVersion为git 提交数。
34
- pkgPkgObj.version = pkgPkgObj.version.replace(/\.[0-9]*$/, '.' + patchVersion);
35
-
36
- fs.writeFileSync(pkgPkgFile, JSON.stringify(pkgPkgObj, null, 2));
37
- console.info('\nUpdated version to ' + pkgPkgObj.version);
38
- }
4
+ const path = require("path");
39
5
 
40
6
  function cpSync(workDir, src, dest) {
41
7
  const exists = fs.existsSync(src);
@@ -87,7 +53,6 @@ function deleteFolderRecursive(path) {
87
53
  }
88
54
 
89
55
  module.exports = {
90
- updateVersion,
91
56
  cpSync,
92
- rmSync
57
+ rmSync,
93
58
  }
package/README.md DELETED
@@ -1,21 +0,0 @@
1
- jsview-vue和jsview-vue/test是两个完全独立的工程。
2
-
3
- jsview-vue用于开发和部署@shijiu/jsview-vue module,不需要做npm install。
4
-
5
- jsview-vue/test用于调试jsview-vue,需要在npm start之前运行npm ci安装依赖包,参照jsview-vue/test/README.md。
6
-
7
- 1. 更新git submodule:
8
-
9
- ``` git submodule update --init --recursive ```
10
-
11
- 2. 打包:
12
-
13
- ``` npm pack ```
14
-
15
- 3. 发布:
16
-
17
- ``` npm deploy ```
18
-
19
- 4. 注意事项:
20
-
21
- TODO: 生效时间和是否可以强制制定版本
@@ -1,219 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.minVersions = exports.default = void 0;
7
-
8
- var _pluginSyntaxAsyncGenerators = require("@babel/plugin-syntax-async-generators");
9
-
10
- var _pluginSyntaxClassProperties = require("@babel/plugin-syntax-class-properties");
11
-
12
- var _pluginSyntaxClassStaticBlock = require("@babel/plugin-syntax-class-static-block");
13
-
14
- var _pluginSyntaxDynamicImport = require("@babel/plugin-syntax-dynamic-import");
15
-
16
- var _pluginSyntaxExportNamespaceFrom = require("@babel/plugin-syntax-export-namespace-from");
17
-
18
- var _pluginSyntaxJsonStrings = require("@babel/plugin-syntax-json-strings");
19
-
20
- var _pluginSyntaxLogicalAssignmentOperators = require("@babel/plugin-syntax-logical-assignment-operators");
21
-
22
- var _pluginSyntaxNullishCoalescingOperator = require("@babel/plugin-syntax-nullish-coalescing-operator");
23
-
24
- var _pluginSyntaxNumericSeparator = require("@babel/plugin-syntax-numeric-separator");
25
-
26
- var _pluginSyntaxObjectRestSpread = require("@babel/plugin-syntax-object-rest-spread");
27
-
28
- var _pluginSyntaxOptionalCatchBinding = require("@babel/plugin-syntax-optional-catch-binding");
29
-
30
- var _pluginSyntaxOptionalChaining = require("@babel/plugin-syntax-optional-chaining");
31
-
32
- var _pluginSyntaxPrivatePropertyInObject = require("@babel/plugin-syntax-private-property-in-object");
33
-
34
- var _pluginSyntaxTopLevelAwait = require("@babel/plugin-syntax-top-level-await");
35
-
36
- var _pluginProposalAsyncGeneratorFunctions = require("@babel/plugin-proposal-async-generator-functions");
37
-
38
- var _pluginProposalClassProperties = require("@babel/plugin-proposal-class-properties");
39
-
40
- var _pluginProposalClassStaticBlock = require("@babel/plugin-proposal-class-static-block");
41
-
42
- var _pluginProposalDynamicImport = require("@babel/plugin-proposal-dynamic-import");
43
-
44
- var _pluginProposalExportNamespaceFrom = require("@babel/plugin-proposal-export-namespace-from");
45
-
46
- var _pluginProposalJsonStrings = require("@babel/plugin-proposal-json-strings");
47
-
48
- var _pluginProposalLogicalAssignmentOperators = require("@babel/plugin-proposal-logical-assignment-operators");
49
-
50
- var _pluginProposalNullishCoalescingOperator = require("@babel/plugin-proposal-nullish-coalescing-operator");
51
-
52
- var _pluginProposalNumericSeparator = require("@babel/plugin-proposal-numeric-separator");
53
-
54
- var _pluginProposalObjectRestSpread = require("@babel/plugin-proposal-object-rest-spread");
55
-
56
- var _pluginProposalOptionalCatchBinding = require("@babel/plugin-proposal-optional-catch-binding");
57
-
58
- var _pluginProposalOptionalChaining = require("@babel/plugin-proposal-optional-chaining");
59
-
60
- var _pluginProposalPrivateMethods = require("@babel/plugin-proposal-private-methods");
61
-
62
- var _pluginProposalPrivatePropertyInObject = require("@babel/plugin-proposal-private-property-in-object");
63
-
64
- var _pluginProposalUnicodePropertyRegex = require("@babel/plugin-proposal-unicode-property-regex");
65
-
66
- var _pluginTransformAsyncToGenerator = require("@babel/plugin-transform-async-to-generator");
67
-
68
- var _pluginTransformArrowFunctions = require("@babel/plugin-transform-arrow-functions");
69
-
70
- var _pluginTransformBlockScopedFunctions = require("@babel/plugin-transform-block-scoped-functions");
71
-
72
- var _pluginTransformBlockScoping = require("@babel/plugin-transform-block-scoping");
73
-
74
- var _pluginTransformClasses = require("@babel/plugin-transform-classes");
75
-
76
- var _pluginTransformComputedProperties = require("@babel/plugin-transform-computed-properties");
77
-
78
- var _pluginTransformDestructuring = require("@babel/plugin-transform-destructuring");
79
-
80
- var _pluginTransformDotallRegex = require("@babel/plugin-transform-dotall-regex");
81
-
82
- var _pluginTransformDuplicateKeys = require("@babel/plugin-transform-duplicate-keys");
83
-
84
- var _pluginTransformExponentiationOperator = require("@babel/plugin-transform-exponentiation-operator");
85
-
86
- var _pluginTransformForOf = require("@babel/plugin-transform-for-of");
87
-
88
- var _pluginTransformFunctionName = require("@babel/plugin-transform-function-name");
89
-
90
- var _pluginTransformLiterals = require("@babel/plugin-transform-literals");
91
-
92
- var _pluginTransformMemberExpressionLiterals = require("@babel/plugin-transform-member-expression-literals");
93
-
94
- var _pluginTransformModulesAmd = require("@babel/plugin-transform-modules-amd");
95
-
96
- var _pluginTransformModulesCommonjs = require("@babel/plugin-transform-modules-commonjs");
97
-
98
- var _pluginTransformModulesSystemjs = require("@babel/plugin-transform-modules-systemjs");
99
-
100
- var _pluginTransformModulesUmd = require("@babel/plugin-transform-modules-umd");
101
-
102
- var _pluginTransformNamedCapturingGroupsRegex = require("@babel/plugin-transform-named-capturing-groups-regex");
103
-
104
- var _pluginTransformNewTarget = require("@babel/plugin-transform-new-target");
105
-
106
- var _pluginTransformObjectSuper = require("@babel/plugin-transform-object-super");
107
-
108
- var _pluginTransformParameters = require("@babel/plugin-transform-parameters");
109
-
110
- var _pluginTransformPropertyLiterals = require("@babel/plugin-transform-property-literals");
111
-
112
- var _pluginTransformRegenerator = require("@babel/plugin-transform-regenerator");
113
-
114
- var _pluginTransformReservedWords = require("@babel/plugin-transform-reserved-words");
115
-
116
- var _pluginTransformShorthandProperties = require("@babel/plugin-transform-shorthand-properties");
117
-
118
- var _pluginTransformSpread = require("@babel/plugin-transform-spread");
119
-
120
- var _pluginTransformStickyRegex = require("@babel/plugin-transform-sticky-regex");
121
-
122
- var _pluginTransformTemplateLiterals = require("@babel/plugin-transform-template-literals");
123
-
124
- var _pluginTransformTypeofSymbol = require("@babel/plugin-transform-typeof-symbol");
125
-
126
- var _pluginTransformUnicodeEscapes = require("@babel/plugin-transform-unicode-escapes");
127
-
128
- var _pluginTransformUnicodeRegex = require("@babel/plugin-transform-unicode-regex");
129
-
130
- var _transformAsyncArrowsInClass = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class");
131
-
132
- var _transformEdgeDefaultParameters = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters");
133
-
134
- var _transformEdgeFunctionName = require("@babel/preset-modules/lib/plugins/transform-edge-function-name");
135
-
136
- var _transformTaggedTemplateCaching = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching");
137
-
138
- var _transformSafariBlockShadowing = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing");
139
-
140
- var _transformSafariForShadowing = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing");
141
-
142
- var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining");
143
-
144
- var _default = {
145
- "bugfix/transform-async-arrows-in-class": () => _transformAsyncArrowsInClass,
146
- "bugfix/transform-edge-default-parameters": () => _transformEdgeDefaultParameters,
147
- "bugfix/transform-edge-function-name": () => _transformEdgeFunctionName,
148
- "bugfix/transform-safari-block-shadowing": () => _transformSafariBlockShadowing,
149
- "bugfix/transform-safari-for-shadowing": () => _transformSafariForShadowing,
150
- "bugfix/transform-tagged-template-caching": () => _transformTaggedTemplateCaching,
151
- // "bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default, // QCode Removed
152
- "proposal-async-generator-functions": () => _pluginProposalAsyncGeneratorFunctions.default,
153
- "proposal-class-properties": () => _pluginProposalClassProperties.default,
154
- "proposal-class-static-block": () => _pluginProposalClassStaticBlock.default,
155
- "proposal-dynamic-import": () => _pluginProposalDynamicImport.default,
156
- "proposal-export-namespace-from": () => _pluginProposalExportNamespaceFrom.default,
157
- "proposal-json-strings": () => _pluginProposalJsonStrings.default,
158
- "proposal-logical-assignment-operators": () => _pluginProposalLogicalAssignmentOperators.default,
159
- // "proposal-nullish-coalescing-operator": () => _pluginProposalNullishCoalescingOperator.default, // QCode Removed
160
- "proposal-numeric-separator": () => _pluginProposalNumericSeparator.default,
161
- "proposal-object-rest-spread": () => _pluginProposalObjectRestSpread.default,
162
- "proposal-optional-catch-binding": () => _pluginProposalOptionalCatchBinding.default,
163
- //"proposal-optional-chaining": () => _pluginProposalOptionalChaining.default, // QCode Removed
164
- "proposal-private-methods": () => _pluginProposalPrivateMethods.default,
165
- "proposal-private-property-in-object": () => _pluginProposalPrivatePropertyInObject.default,
166
- "proposal-unicode-property-regex": () => _pluginProposalUnicodePropertyRegex.default,
167
- "syntax-async-generators": () => _pluginSyntaxAsyncGenerators,
168
- "syntax-class-properties": () => _pluginSyntaxClassProperties,
169
- "syntax-class-static-block": () => _pluginSyntaxClassStaticBlock.default,
170
- "syntax-dynamic-import": () => _pluginSyntaxDynamicImport,
171
- "syntax-export-namespace-from": () => _pluginSyntaxExportNamespaceFrom,
172
- "syntax-json-strings": () => _pluginSyntaxJsonStrings,
173
- "syntax-logical-assignment-operators": () => _pluginSyntaxLogicalAssignmentOperators,
174
- // "syntax-nullish-coalescing-operator": () => _pluginSyntaxNullishCoalescingOperator, // QCode Removed
175
- "syntax-numeric-separator": () => _pluginSyntaxNumericSeparator,
176
- "syntax-object-rest-spread": () => _pluginSyntaxObjectRestSpread,
177
- "syntax-optional-catch-binding": () => _pluginSyntaxOptionalCatchBinding,
178
- // "syntax-optional-chaining": () => _pluginSyntaxOptionalChaining, // QCode Removed
179
- "syntax-private-property-in-object": () => _pluginSyntaxPrivatePropertyInObject.default,
180
- "syntax-top-level-await": () => _pluginSyntaxTopLevelAwait.default,
181
- "transform-arrow-functions": () => _pluginTransformArrowFunctions.default,
182
- // "transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default, // QCode Removed
183
- "transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default,
184
- "transform-block-scoping": () => _pluginTransformBlockScoping.default,
185
- "transform-classes": () => _pluginTransformClasses.default,
186
- "transform-computed-properties": () => _pluginTransformComputedProperties.default,
187
- "transform-destructuring": () => _pluginTransformDestructuring.default,
188
- "transform-dotall-regex": () => _pluginTransformDotallRegex.default,
189
- "transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default,
190
- "transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default,
191
- "transform-for-of": () => _pluginTransformForOf.default,
192
- "transform-function-name": () => _pluginTransformFunctionName.default,
193
- "transform-literals": () => _pluginTransformLiterals.default,
194
- "transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default,
195
- "transform-modules-amd": () => _pluginTransformModulesAmd.default,
196
- "transform-modules-commonjs": () => _pluginTransformModulesCommonjs.default,
197
- "transform-modules-systemjs": () => _pluginTransformModulesSystemjs.default,
198
- "transform-modules-umd": () => _pluginTransformModulesUmd.default,
199
- "transform-named-capturing-groups-regex": () => _pluginTransformNamedCapturingGroupsRegex.default,
200
- "transform-new-target": () => _pluginTransformNewTarget.default,
201
- "transform-object-super": () => _pluginTransformObjectSuper.default,
202
- "transform-parameters": () => _pluginTransformParameters.default,
203
- "transform-property-literals": () => _pluginTransformPropertyLiterals.default,
204
- // "transform-regenerator": () => _pluginTransformRegenerator.default, // QCode Removed
205
- "transform-reserved-words": () => _pluginTransformReservedWords.default,
206
- "transform-shorthand-properties": () => _pluginTransformShorthandProperties.default,
207
- "transform-spread": () => _pluginTransformSpread.default,
208
- "transform-sticky-regex": () => _pluginTransformStickyRegex.default,
209
- "transform-template-literals": () => _pluginTransformTemplateLiterals.default,
210
- "transform-typeof-symbol": () => _pluginTransformTypeofSymbol.default,
211
- "transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default,
212
- "transform-unicode-regex": () => _pluginTransformUnicodeRegex.default
213
- };
214
- exports.default = _default;
215
- const minVersions = {
216
- "proposal-class-static-block": "7.12.0",
217
- "proposal-private-property-in-object": "7.10.0"
218
- };
219
- exports.minVersions = minVersions;
@@ -1,100 +0,0 @@
1
- const path = require('path')
2
-
3
- module.exports = (api, projectOptions) => {
4
- const useThreads = process.env.NODE_ENV === 'production' && !!projectOptions.parallel
5
-
6
- const { semver, loadModule } = require('@vue/cli-shared-utils')
7
- const vue = loadModule('vue', api.service.context)
8
- const isVue3 = (vue && semver.major(vue.version) === 3)
9
-
10
- api.chainWebpack(config => {
11
- config.resolveLoader.modules.prepend(path.join(__dirname, 'node_modules'))
12
-
13
- if (!projectOptions.pages) {
14
- config.entry('main.jsv') // QCode Modified
15
- .clear()
16
- .add('./node_modules/@shijiu/jsview-vue/loader/jsview-main.js') // QCode Modified
17
- }
18
-
19
- config.resolve
20
- .extensions
21
- .prepend('.ts')
22
- .prepend('.tsx')
23
-
24
- const tsRule = config.module.rule('ts').test(/\.ts$/)
25
- const tsxRule = config.module.rule('tsx').test(/\.tsx$/)
26
-
27
- // add a loader to both *.ts & vue<lang="ts">
28
- const addLoader = ({ name, loader, options }) => {
29
- tsRule.use(name).loader(loader).options(options)
30
- tsxRule.use(name).loader(loader).options(options)
31
- }
32
-
33
- addLoader({
34
- name: 'cache-loader',
35
- loader: require.resolve('cache-loader'),
36
- options: api.genCacheConfig('ts-loader', {
37
- 'ts-loader': require('ts-loader/package.json').version,
38
- 'typescript': require('typescript/package.json').version,
39
- modern: !!process.env.VUE_CLI_MODERN_BUILD
40
- }, 'tsconfig.json')
41
- })
42
-
43
- if (useThreads) {
44
- addLoader({
45
- name: 'thread-loader',
46
- loader: require.resolve('thread-loader'),
47
- options:
48
- typeof projectOptions.parallel === 'number'
49
- ? { workers: projectOptions.parallel }
50
- : {}
51
- })
52
- }
53
-
54
- if (api.hasPlugin('babel')) {
55
- addLoader({
56
- name: 'babel-loader',
57
- loader: require.resolve('babel-loader')
58
- })
59
- }
60
- addLoader({
61
- name: 'ts-loader',
62
- loader: require.resolve('ts-loader'),
63
- options: {
64
- transpileOnly: true,
65
- appendTsSuffixTo: ['\\.vue$'],
66
- // https://github.com/TypeStrong/ts-loader#happypackmode-boolean-defaultfalse
67
- happyPackMode: useThreads
68
- }
69
- })
70
- // make sure to append TSX suffix
71
- tsxRule.use('ts-loader').loader(require.resolve('ts-loader')).tap(options => {
72
- options = Object.assign({}, options)
73
- delete options.appendTsSuffixTo
74
- options.appendTsxSuffixTo = ['\\.vue$']
75
- return options
76
- })
77
-
78
- // this plugin does not play well with jest + cypress setup (tsPluginE2e.spec.js) somehow
79
- // so temporarily disabled for vue-cli tests
80
- if (!process.env.VUE_CLI_TEST) {
81
- config
82
- .plugin('fork-ts-checker')
83
- .use(require('fork-ts-checker-webpack-plugin'), [{
84
- typescript: {
85
- extensions: {
86
- vue: {
87
- enabled: true,
88
- compiler: isVue3 ? require.resolve('@vue/compiler-sfc') : require.resolve('vue-template-compiler')
89
- }
90
- },
91
- diagnosticOptions: {
92
- semantic: true,
93
- // https://github.com/TypeStrong/ts-loader#happypackmode
94
- syntactic: useThreads
95
- }
96
- }
97
- }])
98
- }
99
- })
100
- }