Evidence labs contains experiemental components and features for Evidence projects.
To install Evidence
npx degit evidence-dev/template my-project
cd my-project
npm install
npm run dev
-
Install the package from npm:
npm install --save @evidence-dev/labs
-
Include it in your
evidence.plugins.yaml
file:components: @evidence-dev/core-components: {} @evidence-dev/labs: {}
-
Add the component to your page!
- Clone this repository
- Add your components to the
src/lib
directory - Test they work by adding them to a page in the
pages/
directory - Edit the name in
package.json
from@evidence-dev/labs
toyour-plugin-name
and set the version to0.0.1
- Publish to npm with
npm publish
(You will need to be logged in to an npm account)