This repository was archived by the owner on Jun 18, 2025. It is now read-only.
File tree Expand file treeCollapse file tree 7 files changed+41
-56
lines changedFilter options
+41
-56
lines changed Original file line number Diff line number Diff line change
@@ -4,6 +4,13 @@
4
4
"description": "Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)",
5
5
"main": "dist/vue-socket.io-ext.min.js",
6
6
"module": "dist/vue-socket.io-ext.esm.js",
7
+
"exports": {
8
+
".": {
9
+
"import": "./dist/vue-socket.io-ext.esm.js",
10
+
"default": "./dist/vue-socket.io-ext.min.js"
11
+
},
12
+
"./decorator/": "./dist/vue-socket.io-ext.decorator.esm.js"
13
+
},
7
14
"scripts": {
8
15
"test": "jest",
9
16
"lint": "eslint scripts src",
@@ -17,8 +24,7 @@
17
24
},
18
25
"files": [
19
26
"dist/",
20
-
"types/index.d.ts",
21
-
"types/vue.d.ts"
27
+
"types/"
22
28
],
23
29
"typings": "types/index.d.ts",
24
30
"keywords": [
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
1
1
/* eslint-disable import/no-extraneous-dependencies */
2
2
import nodeResolve from 'rollup-plugin-node-resolve';
3
3
import babel from 'rollup-plugin-babel';
4
-
import { terser } from 'rollup-plugin-terser';
4
+
import { terser } from 'rollup-plugin-terser'; // uglifyjs alternative
5
5
import commonjs from 'rollup-plugin-commonjs';
6
6
import filesize from 'rollup-plugin-filesize';
7
7
8
8
export default [
9
9
{
10
-
input: 'src/index.esm.js',
11
-
external: ['vue', 'vue-class-component'],
10
+
input: 'src/index.js',
11
+
external: ['vue'],
12
12
plugins: [
13
13
nodeResolve(),
14
14
commonjs(),
15
15
babel(),
16
-
terser(), // uglifyjs alternative
16
+
terser(),
17
17
filesize(),
18
18
],
19
19
output: {
@@ -22,22 +22,36 @@ export default [
22
22
},
23
23
},
24
24
{
25
-
input: 'src/index.umd.js',
26
-
external: ['vue', 'vue-class-component'],
25
+
input: 'src/index.js',
26
+
external: ['vue'],
27
27
plugins: [
28
28
nodeResolve(),
29
29
commonjs(),
30
30
babel(),
31
-
terser(), // uglifyjs alternative
31
+
terser(),
32
32
filesize(),
33
33
],
34
-
output:
35
-
{
36
-
format: 'umd',
37
-
name: 'VueSocketIOExt',
38
-
exports: 'named',
39
-
globals: { vue: 'Vue' },
40
-
file: 'dist/vue-socket.io-ext.min.js',
41
-
},
34
+
output: {
35
+
format: 'umd',
36
+
name: 'VueSocketIOExt',
37
+
exports: 'named',
38
+
globals: { vue: 'Vue' },
39
+
file: 'dist/vue-socket.io-ext.min.js',
40
+
},
41
+
},
42
+
{
43
+
input: 'src/decorator.js',
44
+
external: ['vue-class-component'],
45
+
plugins: [
46
+
nodeResolve(),
47
+
commonjs(),
48
+
babel(),
49
+
terser(),
50
+
filesize(),
51
+
],
52
+
output: {
53
+
format: 'esm',
54
+
file: 'dist/vue-socket.io-ext.decorator.esm.js',
55
+
},
42
56
},
43
57
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1
-
import VueSocketIoExt, { Socket } from '../index.esm';
1
+
import VueSocketIoExt from '../index';
2
2
3
3
it('default export should be a vue plugin', () => {
4
4
expect(VueSocketIoExt).toMatchObject({
@@ -11,7 +11,3 @@ it('default export should have `defaults` options exported', () => {
11
11
defaults: expect.any(Object),
12
12
});
13
13
});
14
-
15
-
it('named export `Socket` exists', () => {
16
-
expect(Socket).toEqual(expect.any(Function));
17
-
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1
+
import * as plugin from './plugin';
2
+
3
+
export default plugin;
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4