This is a collection of JS functionalities that we commonly need to use.
- To install, run
npm install @optimistdigital/core-js
Modals - docs
import modals from '@optimistdigital/core-js/lib/modals';
modals.init();
Dropdowns - docs
import dropdowns from '@optimistdigital/core-js/lib/dropdowns';
dropdowns.init();
Tabs - docs
import tabs from '@optimistdigital/core-js/lib/tabs';
tabs.init();
- Install dependencies:
npm install
- Start dev servers:
npm run dev
- Run tests to confirm your work:
npm run test