$ npm install photoswipe
v5 is now available for testing, please visit documentation and examples and report any issues that you find.
dist/
- main JS and CSSsrc/
- source JS and CSS.
src/js/photoswipe.js
- entry for PhotoSwipe Core.src/js/lightbox/lightbox.js
- entry for PhotoSwipe Lightbox.docs/
- documentation markdown files.website/
- website with documentation, demos and manual tests.build/
- rollup build config.npm run build
- builds and minifies JS and CSS to dist/
directory.npm run lint
- lints JS files in src/
with eslint (npm run lint-auto-fix
to fix auto-fixable issues).npm install
in rootnpm install
in /website/
directory to get docusaurus (if you also need to build docs)npm run watch
- watches changes for files in src/
and docs/
, starts Docusaurus - demo website with many examples where you perform manual tests, at 3000 port (visit http://localhost:3000).© 2010 - cnpmjs.org x YWFE | Home | YWFE