santech-galaxy-component 1.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.
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "santech-galaxy-component",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "基于vue3的前端业务组件库 多语系",
6
+ "main": "lib/index.umd.min.js",
7
+ "keyword": "vue3 vant",
8
+ "license": "MIT",
9
+ "author": {
10
+ "name": "stxx",
11
+ "email": "Npm.stxx.2021"
12
+ },
13
+ "scripts": {
14
+ "serve": "vue-cli-service serve",
15
+ "lint": "vue-cli-service lint",
16
+ "lib": "vue-cli-service build --target lib --name index --dest lib packages/index.ts"
17
+ },
18
+ "dependencies": {
19
+ "@types/js-md5": "^0.4.3",
20
+ "@types/lodash-es": "^4.17.4",
21
+ "@types/pubsub-js": "^1.8.2",
22
+ "@types/socket.io-client": "^3.0.0",
23
+ "@types/sockjs-client": "^1.5.1",
24
+ "@types/sortablejs": "^1.10.7",
25
+ "@types/stompjs": "^2.3.5",
26
+ "ant-design-vue": "^3.2.20",
27
+ "babel-loader": "^8.2.3",
28
+ "core-js": "^3.6.5",
29
+ "custom-vxe-table": "^2.2.0",
30
+ "eslint-loader": "^2.2.1",
31
+ "express": "^4.17.1",
32
+ "js-file-download": "^0.4.12",
33
+ "js-md5": "^0.7.3",
34
+ "lodash": "^4.17.21",
35
+ "lodash-es": "^4.17.21",
36
+ "mitt": "^2.1.0",
37
+ "pubsub-js": "^1.9.3",
38
+ "sockjs-client": "^1.5.1",
39
+ "stompjs": "^2.3.3",
40
+ "vue": "^3.2.21",
41
+ "vue-class-component": "^8.0.0-0",
42
+ "vue-i18n": "^9.2.0-beta.26",
43
+ "vue-request": "^1.2.0",
44
+ "vue-router": "^4.0.0",
45
+ "vue-socket.io": "^3.0.10",
46
+ "vue-uuid": "^2.0.2",
47
+ "vuedraggable": "^4.1.0",
48
+ "wangeditor": "^4.7.15",
49
+ "xe-utils": "^3.4.0"
50
+ },
51
+ "devDependencies": {
52
+ "@typescript-eslint/eslint-plugin": "^2.33.0",
53
+ "@typescript-eslint/parser": "^2.33.0",
54
+ "@vue/cli-plugin-babel": "~4.5.0",
55
+ "@vue/cli-plugin-eslint": "~4.5.0",
56
+ "@vue/cli-plugin-router": "~4.5.0",
57
+ "@vue/cli-plugin-typescript": "~4.5.0",
58
+ "@vue/cli-plugin-vuex": "~4.5.0",
59
+ "@vue/cli-service": "~4.5.0",
60
+ "@vue/compiler-sfc": "^3.2.4",
61
+ "@vue/eslint-config-standard": "^5.1.2",
62
+ "@vue/eslint-config-typescript": "^5.0.2",
63
+ "axios": "^0.18.0",
64
+ "babel-plugin-import": "^1.13.3",
65
+ "eslint": "^6.7.2",
66
+ "eslint-plugin-import": "^2.20.2",
67
+ "eslint-plugin-node": "^11.1.0",
68
+ "eslint-plugin-promise": "^4.2.1",
69
+ "eslint-plugin-standard": "^4.0.0",
70
+ "eslint-plugin-vue": "^7.0.0-0",
71
+ "less": "^2.7.3",
72
+ "less-loader": "^4.1.0",
73
+ "typescript": "~4.3.5",
74
+ "vue-cli-plugin-ant-design": "~1.0.1",
75
+ "vue-cli-plugin-axios": "~0.0.4",
76
+ "vue-loader": "^15.9.8",
77
+ "vue-template-compiler": "^2.6.14"
78
+ }
79
+ }
@@ -0,0 +1,53 @@
1
+ // import vue from 'rollup-plugin-vue'
2
+ import { nodeResolve } from 'rollup'
3
+ import path from 'path'
4
+ // import commonjs from '@rollup/plugin-commonjs'
5
+ import { terser } from 'rollup-plugin-terser'
6
+ import typescript from 'rollup-plugin-typescript2'
7
+ import pkg from './package.json'
8
+ const deps = Object.keys(pkg.dependencies)
9
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
10
+ const vue = require('rollup-plugin-vue')
11
+ import commonjs from '@rollup/plugin-commonjs'
12
+
13
+ export default [
14
+ {
15
+ input: path.resolve(__dirname, './packages/index.ts'),
16
+ output: [
17
+ {
18
+ format: 'es',
19
+ file: pkg.module,
20
+ }
21
+ ],
22
+ plugins: [
23
+ terser(),
24
+ nodeResolve(),
25
+ commonjs(),
26
+ vue({
27
+ target: 'browser',
28
+ css: false,
29
+ exposeFilename: false,
30
+ }),
31
+ typescript({
32
+ tsconfigOverride: {
33
+ compilerOptions: {
34
+ declaration: true,
35
+ },
36
+ 'include': [
37
+ 'packages/**/*',
38
+ 'typings/shims-vue.d.ts',
39
+ ],
40
+ 'exclude': [
41
+ 'node_modules',
42
+ 'packages/**/__tests__/*',
43
+ ],
44
+ },
45
+ abortOnError: false,
46
+ }),
47
+ ],
48
+ external(id) {
49
+ return /^vue/.test(id)
50
+ || deps.some(k => new RegExp('^' + k).test(id))
51
+ },
52
+ },
53
+ ]