Skip to content

Commit bad3497

Browse files
committed
docs: update Readme with disclaimer
1 parent 05931af commit bad3497

File tree

10 files changed

+114
-115
lines changed

10 files changed

+114
-115
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# vue2vis
22

33
> 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)
45
56
<p align="center">
67
<a href="https://travis-ci.com/alexcode/vue2vis">

packages/graph2d/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Alex Couturon <[email protected]>",
66
"homepage": "https://github.com/alexcode/vue2vis#readme",
77
"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",
1010
"directories": {
1111
"lib": "lib",
1212
"test": "__tests__"
@@ -47,6 +47,7 @@
4747
"propagating-hammerjs": "^1.4.0",
4848
"rollup-plugin-node-externals": "^2.1.5",
4949
"rollup-plugin-node-polyfills": "^0.2.1",
50+
"rollup-plugin-terser": "^5.3.0",
5051
"uuid": "^7.0.0"
5152
}
5253
}

packages/graph2d/rollup.config.js

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals";
22
import resolve from "@rollup/plugin-node-resolve";
33
import commonjs from "@rollup/plugin-commonjs";
44
import nodePolyfills from "rollup-plugin-node-polyfills";
5+
import { terser } from "rollup-plugin-terser";
56
import vue from "rollup-plugin-vue";
67

78
export default [
89
{
910
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+
],
1426
plugins: [
1527
externals({
1628
exclude: [
@@ -28,30 +40,9 @@ export default [
2840
uuid: ["v4"]
2941
}
3042
}),
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"
5546
}
5647
}),
5748
vue()

packages/network/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Alex Couturon <[email protected]>",
66
"homepage": "https://github.com/alexcode/vue2vis#readme",
77
"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",
1010
"directories": {
1111
"lib": "lib",
1212
"test": "__tests__"
@@ -46,6 +46,7 @@
4646
"keycharm": "^0.3.0",
4747
"rollup-plugin-node-externals": "^2.1.5",
4848
"rollup-plugin-node-polyfills": "^0.2.1",
49+
"rollup-plugin-terser": "^5.3.0",
4950
"timsort": "^0.3.0",
5051
"uuid": "^7.0.0"
5152
}

packages/network/rollup.config.js

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals";
22
import resolve from "@rollup/plugin-node-resolve";
33
import commonjs from "@rollup/plugin-commonjs";
44
import nodePolyfills from "rollup-plugin-node-polyfills";
5+
import { terser } from "rollup-plugin-terser";
56
import vue from "rollup-plugin-vue";
67

78
export default [
89
{
910
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+
],
1426
plugins: [
1527
externals({
1628
exclude: [
@@ -28,30 +40,9 @@ export default [
2840
timsort: ["sort"]
2941
}
3042
}),
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"
5546
}
5647
}),
5748
vue()

packages/timeline/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Alex Couturon <[email protected]>",
66
"homepage": "https://github.com/alexcode/vue2vis#readme",
77
"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",
1010
"directories": {
1111
"lib": "lib",
1212
"test": "__tests__"
@@ -54,6 +54,7 @@
5454
"propagating-hammerjs": "^1.4.0",
5555
"rollup-plugin-node-externals": "^2.1.5",
5656
"rollup-plugin-node-polyfills": "^0.2.1",
57+
"rollup-plugin-terser": "^5.3.0",
5758
"uuid": "^7.0.0"
5859
}
5960
}

packages/timeline/rollup.config.js

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals";
22
import resolve from "@rollup/plugin-node-resolve";
33
import commonjs from "@rollup/plugin-commonjs";
44
import nodePolyfills from "rollup-plugin-node-polyfills";
5+
import { terser } from "rollup-plugin-terser";
56
import vue from "rollup-plugin-vue";
67

78
export default [
89
{
910
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+
],
1426
plugins: [
1527
externals({
1628
exclude: [
@@ -28,30 +40,9 @@ export default [
2840
uuid: ["v4"]
2941
}
3042
}),
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"
5546
}
5647
}),
5748
vue()

packages/utils/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Alex Couturon <[email protected]>",
66
"homepage": "https://github.com/alexcode/vue2vis#readme",
77
"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",
1010
"directories": {
1111
"lib": "lib",
1212
"test": "__tests__"
@@ -39,6 +39,7 @@
3939
"@rollup/plugin-node-resolve": "^7.1.1",
4040
"rollup-plugin-node-externals": "^2.1.5",
4141
"rollup-plugin-node-polyfills": "^0.2.1",
42+
"rollup-plugin-terser": "^5.3.0",
4243
"uuid": "^7.0.0"
4344
}
4445
}

packages/utils/rollup.config.js

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,38 @@ import externals from "rollup-plugin-node-externals";
22
import resolve from "@rollup/plugin-node-resolve";
33
import commonjs from "@rollup/plugin-commonjs";
44
import nodePolyfills from "rollup-plugin-node-polyfills";
5+
import { terser } from "rollup-plugin-terser";
56

67
export default [
78
{
89
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+
],
1325
plugins: [
1426
externals({
1527
exclude: ["uuid"]
1628
}),
1729
nodePolyfills(),
1830
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+
})
3537
]
3638
}
3739
];

0 commit comments

Comments
 (0)