diff --git a/.gitignore b/.gitignore index 31a30c768e..db1f3ca155 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,9 @@ coverage/ /cypress/videos/ /declarations/ /dist/ +/examples/examples.css /examples/index.html +/examples/static/ /examples/thumbnails/ /peer/ /standalone/ diff --git a/generate-examples-index.json b/generate-examples-index.json new file mode 100644 index 0000000000..4203ce30ef --- /dev/null +++ b/generate-examples-index.json @@ -0,0 +1,23 @@ +{ + "base-url": "https://visjs.github.io/vis-network/", + "output-directory": "./examples", + + "assets-local-directory": "./examples/static", + "assets-web-directory": "./static", + "examples-local-directory": "./examples/network", + "examples-web-directory": "./network", + "pages-local-directory": "./examples/static", + "pages-web-directory": "./static", + + "index": true, + "lint": true, + "playgrounds": true, + "screenshots": true, + + "container-id": "mynetwork", + "format": "html", + "parallel": 6, + "screenshot-script": "./scripts/examples-index/screenshot-script.js", + "title": "Vis Network Examples", + "verify": 100 +} diff --git a/package-lock.json b/package-lock.json index 7dd509ca49..3b1ffb2dd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6205,9 +6205,9 @@ } }, "date-fns": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.8.1.tgz", - "integrity": "sha512-EL/C8IHvYRwAHYgFRse4MGAPSqlJVlOrhVYZ75iQBKrnv+ZedmYsgwH3t+BCDuZDXpoo07+q9j4qgSSOa7irJg==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.9.0.tgz", + "integrity": "sha512-khbFLu/MlzLjEzy9Gh8oY1hNt/Dvxw3J6Rbc28cVoYWQaC1S3YI4xwkF9ZWcjDLscbZlY9hISMr66RFzZagLsA==", "dev": true }, "dateformat": { @@ -20011,9 +20011,9 @@ } }, "vis-dev-utils": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vis-dev-utils/-/vis-dev-utils-1.2.0.tgz", - "integrity": "sha512-/js/JW2vIqo16El99X1aItVxj5WpwTXug0/igu0HbqlZ9hWVH0xXtKzVwcX6a6DsaQZk0lMIdprh7E9OigyPFg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/vis-dev-utils/-/vis-dev-utils-2.1.0.tgz", + "integrity": "sha512-bo4pTWwABYrl8ffWlqgSU3YzFyU8AS/t56vQ0/095DkrgY+wUA2Mtkqw8iBMBt+bnplFuipsiIHz5eLRv0x1xQ==", "dev": true, "requires": { "cheerio": "^1.0.0-rc.3", diff --git a/package.json b/package.json index 89411a98d4..fcccee9062 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "build": "npm run build:declarations && npm run build:code && npm run build:legacy:types && npm run build:legacy:code && npm run build:legacy:images", "watch": "rollup --watch --config rollup.build.js", "watch-dev": "npm run watch-dev", - "generate-examples-index": "generate-examples-index -t \"Vis Network Examples\" -c mynetwork -d ./examples -w https://visjs.github.io/vis-network -S ./scripts/examples-index/screenshot-script.js -lis", + "generate-examples-index": "generate-examples-index --config generate-examples-index.json", "lint": "npm run lint:js && npm run lint:ts", "lint:js": "eslint '{lib,test}/**/*.js'", "lint:ts": "eslint '{cypress,lib,test}/**/*.ts'", @@ -132,7 +132,7 @@ "timsort": "0.3.0", "typescript": "3.7.2", "vis-data": "6.3.2", - "vis-dev-utils": "1.2.0", + "vis-dev-utils": "2.1.0", "vis-util": "2.0.2" }, "collective": {