Skip to content

Commit

Permalink
chore(examples): update conf for new Vis Dev Utils (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomaash authored and yotamberk committed Jan 12, 2020
1 parent d2abfc5 commit cf385b5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ coverage/
/cypress/videos/
/declarations/
/dist/
/examples/examples.css
/examples/index.html
/examples/static/
/examples/thumbnails/
/peer/
/standalone/
Expand Down
23 changes: 23 additions & 0 deletions generate-examples-index.json
Original file line number Diff line number Diff line change
@@ -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
}
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit cf385b5

Please sign in to comment.