Welcome to Snap - Searchspring's SDK for integrating into front end web apps. We invite your participation through issues, discussions and pull requests! Please reference Searchspring's Community Contribution Guidelines.
Please reference the Snap Documentation to get started using Snap to build applications.
The Snap mono-repo publishes multiple packages to NPM's registry; packages are versioned together, and it is recommended to utilize packages of the same exact versioning.
Documentation for each package can be found in its respective README file (/packages/).
We recommend usage of Node.js v16 or higher.
NPM v7.x is required for its workspaces feature
NPM v7.7.0 is optional for executing scripts in workspaces
While at the repo root, the following commands are available:
npm installExecutes npm run build across all packages sequentially
npm run buildExecutes npm run dev across all packages sequentially. All packages will be linked with hot reloading
npm run devDemo store: https://localhost:2222
Serves the contents of the root directory to allow you to view the docs
Docs: http://localhost:1111/
npm run dev:docsInstead of using git commit, use npm run commit to utilize Commitizen
npm run commitPreact Components: http://localhost:6006
npm run storybook:preactnpm run testOnly applies to packages/snap-preact-demo
npm run cypressRemoves all package and root node_modules directories and package-lock.json; additionally removes generated documentation and test coverage data.
npm run clean