File tree 10 files changed +114
-115
lines changed 10 files changed +114
-115
lines changed Original file line number Diff line number Diff line change 1
1
# vue2vis
2
2
3
3
> This monorepo hosts Vue2 component wrapper for the [ visjs] ( https://github.com/visjs ) libraries.
4
+ > If you are looking for the old [ [email protected] ] ( https://almende.github.io/vis/ ) please use the [ branch 0.x] ( https://github.com/alexcode/vue2vis/tree/0.x )
4
5
5
6
<p align =" center " >
6
7
<a href =" https://travis-ci.com/alexcode/vue2vis " >
Original file line number Diff line number Diff line change 5
5
"author" :
" Alex Couturon <[email protected] >" ,
6
6
"homepage" : " https://github.com/alexcode/vue2vis#readme" ,
7
7
"license" : " MIT" ,
8
- "main" : " dist/graph2d.cjs .js" ,
9
- "module" : " dist/graph2d.esm.js" ,
8
+ "main" : " dist/graph2d.umd.min .js" ,
9
+ "module" : " dist/graph2d.esm.min. js" ,
10
10
"directories" : {
11
11
"lib" : " lib" ,
12
12
"test" : " __tests__"
47
47
"propagating-hammerjs" : " ^1.4.0" ,
48
48
"rollup-plugin-node-externals" : " ^2.1.5" ,
49
49
"rollup-plugin-node-polyfills" : " ^0.2.1" ,
50
+ "rollup-plugin-terser" : " ^5.3.0" ,
50
51
"uuid" : " ^7.0.0"
51
52
}
52
53
}
Original file line number Diff line number Diff line change @@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals";
2
2
import resolve from "@rollup/plugin-node-resolve" ;
3
3
import commonjs from "@rollup/plugin-commonjs" ;
4
4
import nodePolyfills from "rollup-plugin-node-polyfills" ;
5
+ import { terser } from "rollup-plugin-terser" ;
5
6
import vue from "rollup-plugin-vue" ;
6
7
7
8
export default [
8
9
{
9
10
input : "./lib/index.js" ,
10
- output : {
11
- format : "esm" ,
12
- file : "dist/graph2d.esm.js"
13
- } ,
11
+ output : [
12
+ {
13
+ format : "esm" ,
14
+ sourcemap : true ,
15
+ file : "dist/graph2d.esm.min.js"
16
+ } ,
17
+ {
18
+ name : "vis" ,
19
+ extend : true ,
20
+ exports : "named" ,
21
+ sourcemap : true ,
22
+ format : "umd" ,
23
+ file : "dist/graph2d.umd.min.js"
24
+ }
25
+ ] ,
14
26
plugins : [
15
27
externals ( {
16
28
exclude : [
@@ -28,30 +40,9 @@ export default [
28
40
uuid : [ "v4" ]
29
41
}
30
42
} ) ,
31
- vue ( )
32
- ]
33
- } ,
34
- {
35
- input : "./lib/index.js" ,
36
- output : {
37
- format : "cjs" ,
38
- file : "dist/graph2d.cjs.js"
39
- } ,
40
- plugins : [
41
- externals ( {
42
- exclude : [
43
- "component-emitter" ,
44
- "propagating-hammerjs" ,
45
- "@egjs/hammerjs" ,
46
- "keycharm" ,
47
- "uuid"
48
- ]
49
- } ) ,
50
- nodePolyfills ( ) ,
51
- resolve ( { browser : true } ) ,
52
- commonjs ( {
53
- namedExports : {
54
- uuid : [ "v4" ]
43
+ terser ( {
44
+ output : {
45
+ comments : "some"
55
46
}
56
47
} ) ,
57
48
vue ( )
Original file line number Diff line number Diff line change 5
5
"author" :
" Alex Couturon <[email protected] >" ,
6
6
"homepage" : " https://github.com/alexcode/vue2vis#readme" ,
7
7
"license" : " MIT" ,
8
- "main" : " dist/network.cjs .js" ,
9
- "module" : " dist/network.esm.js" ,
8
+ "main" : " dist/network.umd.min .js" ,
9
+ "module" : " dist/network.esm.min. js" ,
10
10
"directories" : {
11
11
"lib" : " lib" ,
12
12
"test" : " __tests__"
46
46
"keycharm" : " ^0.3.0" ,
47
47
"rollup-plugin-node-externals" : " ^2.1.5" ,
48
48
"rollup-plugin-node-polyfills" : " ^0.2.1" ,
49
+ "rollup-plugin-terser" : " ^5.3.0" ,
49
50
"timsort" : " ^0.3.0" ,
50
51
"uuid" : " ^7.0.0"
51
52
}
Original file line number Diff line number Diff line change @@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals";
2
2
import resolve from "@rollup/plugin-node-resolve" ;
3
3
import commonjs from "@rollup/plugin-commonjs" ;
4
4
import nodePolyfills from "rollup-plugin-node-polyfills" ;
5
+ import { terser } from "rollup-plugin-terser" ;
5
6
import vue from "rollup-plugin-vue" ;
6
7
7
8
export default [
8
9
{
9
10
input : "./lib/index.js" ,
10
- output : {
11
- format : "esm" ,
12
- file : "dist/network.esm.js"
13
- } ,
11
+ output : [
12
+ {
13
+ format : "esm" ,
14
+ sourcemap : true ,
15
+ file : "dist/network.esm.min.js"
16
+ } ,
17
+ {
18
+ name : "vis" ,
19
+ extend : true ,
20
+ exports : "named" ,
21
+ sourcemap : true ,
22
+ format : "umd" ,
23
+ file : "dist/network.umd.min.js"
24
+ }
25
+ ] ,
14
26
plugins : [
15
27
externals ( {
16
28
exclude : [
@@ -28,30 +40,9 @@ export default [
28
40
timsort : [ "sort" ]
29
41
}
30
42
} ) ,
31
- vue ( )
32
- ]
33
- } ,
34
- {
35
- input : "./lib/index.js" ,
36
- output : {
37
- format : "cjs" ,
38
- file : "dist/network.cjs.js"
39
- } ,
40
- plugins : [
41
- externals ( {
42
- exclude : [
43
- "component-emitter" ,
44
- "timsort" ,
45
- "@egjs/hammerjs" ,
46
- "keycharm" ,
47
- "uuid"
48
- ]
49
- } ) ,
50
- nodePolyfills ( ) ,
51
- resolve ( { browser : true } ) ,
52
- commonjs ( {
53
- namedExports : {
54
- timsort : [ "sort" ]
43
+ terser ( {
44
+ output : {
45
+ comments : "some"
55
46
}
56
47
} ) ,
57
48
vue ( )
Original file line number Diff line number Diff line change 5
5
"author" :
" Alex Couturon <[email protected] >" ,
6
6
"homepage" : " https://github.com/alexcode/vue2vis#readme" ,
7
7
"license" : " MIT" ,
8
- "main" : " dist/timeline.cjs .js" ,
9
- "module" : " dist/timeline.esm.js" ,
8
+ "main" : " dist/timeline.umd.min .js" ,
9
+ "module" : " dist/timeline.esm.min. js" ,
10
10
"directories" : {
11
11
"lib" : " lib" ,
12
12
"test" : " __tests__"
54
54
"propagating-hammerjs" : " ^1.4.0" ,
55
55
"rollup-plugin-node-externals" : " ^2.1.5" ,
56
56
"rollup-plugin-node-polyfills" : " ^0.2.1" ,
57
+ "rollup-plugin-terser" : " ^5.3.0" ,
57
58
"uuid" : " ^7.0.0"
58
59
}
59
60
}
Original file line number Diff line number Diff line change @@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals";
2
2
import resolve from "@rollup/plugin-node-resolve" ;
3
3
import commonjs from "@rollup/plugin-commonjs" ;
4
4
import nodePolyfills from "rollup-plugin-node-polyfills" ;
5
+ import { terser } from "rollup-plugin-terser" ;
5
6
import vue from "rollup-plugin-vue" ;
6
7
7
8
export default [
8
9
{
9
10
input : "./lib/index.js" ,
10
- output : {
11
- format : "esm" ,
12
- file : "dist/timeline.esm.js"
13
- } ,
11
+ output : [
12
+ {
13
+ format : "esm" ,
14
+ sourcemap : true ,
15
+ file : "dist/timeline.esm.min.js"
16
+ } ,
17
+ {
18
+ name : "vis" ,
19
+ extend : true ,
20
+ exports : "named" ,
21
+ sourcemap : true ,
22
+ format : "umd" ,
23
+ file : "dist/timeline.umd.min.js"
24
+ }
25
+ ] ,
14
26
plugins : [
15
27
externals ( {
16
28
exclude : [
@@ -28,30 +40,9 @@ export default [
28
40
uuid : [ "v4" ]
29
41
}
30
42
} ) ,
31
- vue ( )
32
- ]
33
- } ,
34
- {
35
- input : "./lib/index.js" ,
36
- output : {
37
- format : "cjs" ,
38
- file : "dist/timeline.cjs.js"
39
- } ,
40
- plugins : [
41
- externals ( {
42
- exclude : [
43
- "component-emitter" ,
44
- "propagating-hammerjs" ,
45
- "@egjs/hammerjs" ,
46
- "keycharm" ,
47
- "uuid"
48
- ]
49
- } ) ,
50
- nodePolyfills ( ) ,
51
- resolve ( { browser : true } ) ,
52
- commonjs ( {
53
- namedExports : {
54
- uuid : [ "v4" ]
43
+ terser ( {
44
+ output : {
45
+ comments : "some"
55
46
}
56
47
} ) ,
57
48
vue ( )
Original file line number Diff line number Diff line change 5
5
"author" :
" Alex Couturon <[email protected] >" ,
6
6
"homepage" : " https://github.com/alexcode/vue2vis#readme" ,
7
7
"license" : " MIT" ,
8
- "main" : " dist/utils.cjs .js" ,
9
- "module" : " dist/utils.esm.js" ,
8
+ "main" : " dist/utils.umd.min .js" ,
9
+ "module" : " dist/utils.esm.min. js" ,
10
10
"directories" : {
11
11
"lib" : " lib" ,
12
12
"test" : " __tests__"
39
39
"@rollup/plugin-node-resolve" : " ^7.1.1" ,
40
40
"rollup-plugin-node-externals" : " ^2.1.5" ,
41
41
"rollup-plugin-node-polyfills" : " ^0.2.1" ,
42
+ "rollup-plugin-terser" : " ^5.3.0" ,
42
43
"uuid" : " ^7.0.0"
43
44
}
44
45
}
Original file line number Diff line number Diff line change @@ -2,36 +2,38 @@ import externals from "rollup-plugin-node-externals";
2
2
import resolve from "@rollup/plugin-node-resolve" ;
3
3
import commonjs from "@rollup/plugin-commonjs" ;
4
4
import nodePolyfills from "rollup-plugin-node-polyfills" ;
5
+ import { terser } from "rollup-plugin-terser" ;
5
6
6
7
export default [
7
8
{
8
9
input : "./lib/index.js" ,
9
- output : {
10
- format : "esm" ,
11
- file : "dist/utils.esm.js"
12
- } ,
10
+ output : [
11
+ {
12
+ format : "esm" ,
13
+ sourcemap : true ,
14
+ file : "dist/utils.esm.min.js"
15
+ } ,
16
+ {
17
+ name : "vis" ,
18
+ extend : true ,
19
+ exports : "named" ,
20
+ sourcemap : true ,
21
+ format : "umd" ,
22
+ file : "dist/utils.umd.min.js"
23
+ }
24
+ ] ,
13
25
plugins : [
14
26
externals ( {
15
27
exclude : [ "uuid" ]
16
28
} ) ,
17
29
nodePolyfills ( ) ,
18
30
resolve ( { browser : true } ) ,
19
- commonjs ( )
20
- ]
21
- } ,
22
- {
23
- input : "./lib/index.js" ,
24
- output : {
25
- format : "cjs" ,
26
- file : "dist/utils.cjs.js"
27
- } ,
28
- plugins : [
29
- externals ( {
30
- exclude : [ "uuid" ]
31
- } ) ,
32
- nodePolyfills ( ) ,
33
- resolve ( { browser : true } ) ,
34
- commonjs ( )
31
+ commonjs ( ) ,
32
+ terser ( {
33
+ output : {
34
+ comments : "some"
35
+ }
36
+ } )
35
37
]
36
38
}
37
39
] ;
You can’t perform that action at this time.
0 commit comments