Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 709 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 709 Bytes

Accordion

This project was bootstrapped with Create Cloud Block.

Below you will find some information on how to run scripts.

npm start

  • Use to compile and run the block in development mode.
  • Live reload is not supported currently.

npm run build

  • Use to build production code for your block inside build folder.

npm run deploy

  • Use to publish the block to NPM
  • It will become available in Gutenberg Cloud in a few minutes

How to apply JS functionality

Include accordion.js in your project, then use it like this:

import Accordion from './path/to/accordion';

const accordion = new Accordion();
accordion.init();