vis-network

v9.1.9
A dynamic, browser-based visualization library.
vis visualization web based browser based typescript javascript chart graph network and 2 more...

serve

serve -l tcp://127.0.0.1:58253

test

npm run test:unit && npm run test:e2e:functional && npm run test:e2e:visual

test:e2e:functional

cross-env CYPRESS_FUNCTIONAL=true npm run test:e2e:headless

test:e2e:gui

start-server-and-test test:e2e:transpile-watch-and-serve "http://127.0.0.1:58253" "cypress open"

test:e2e:headless

start-server-and-test test:e2e:transpile-and-serve "http://127.0.0.1:58253" "cypress run"

test:e2e:transpile

tsc --project cypress

test:e2e:transpile-and-serve

npm run test:e2e:transpile && npm run serve

test:e2e:transpile-and-watch

npm run test:e2e:transpile -- --watch

test:e2e:transpile-watch-and-serve

npm run test:e2e:transpile && start-server-and-test serve :58253 test:e2e:transpile-and-watch

test:e2e:visual

npm run test:e2e:visual:update:latest && npm run test:e2e:visual:verify:head

test:e2e:visual:update:base

shx rm -rf "cypress/snapshots/*" && cross-env CYPRESS_VISUAL=true CYPRESS_UPDATE=true npm run test:e2e:headless

test:e2e:visual:update:head

npm run test:e2e:visual:update:base

test:e2e:visual:update:latest

cross-env CYPRESS_VIS_NETWORK_TAG=latest npm run test:e2e:visual:update:base

test:e2e:visual:verify:base

cross-env CYPRESS_VISUAL=true npm run test:e2e:headless

test:e2e:visual:verify:head

npm run test:e2e:visual:verify:base

test:e2e:visual:verify:latest

cross-env CYPRESS_VIS_NETWORK_TAG=latest npm run test:e2e:visual:verify:base

test:unit

cross-env BABEL_ENV=test-cov nyc mocha --exit

build

npm run build:declarations && npm run build:code && npm run build:legacy:types && npm run build:legacy:code && npm run build:legacy:images

build:legacy:types

shx mkdir -p dist && shx cp -r "types/" dist && tsc -p tsconfig.types.json

build:legacy:code

rollup --bundleConfigAsCjs --config rollup.config.js

build:legacy:images

shx mkdir -p dist/img/network && shx cp "lib/assets/*" dist/img/network

build:declarations

shx mkdir -p declarations && shx cp -r "types/*" declarations && tsc -p tsconfig.declarations.json

build:code

rollup --bundleConfigAsCjs --config rollup.build.js

build:watch

rollup --bundleConfigAsCjs --watch --config rollup.build.js

prepublishOnly

npm run build

generate-examples-index

generate-examples-index --config generate-examples-index.json

style

prettier --check .

style-fix

prettier --write .

lint

eslint --ext .js,.ts .

lint-fix

eslint --fix --ext .js,.ts .

clean

shx rm -rf "declarations" "dist" "examples/index.html" "examples/static/*" "peer" "standalone" "styles" "vis-network*" "cypress/{fixtures,integration,pages,support}/**/*.js{,.map}" "cypress/snapshots/{actual,diff}/*"

prepare

husky install
npm i vis-network

Metadata

Downloads