Scaffolding code used by the Volusion Element CLI to create new blocks
We use this repo to provide a common starting point for all blocks. Good news -- you shouldn't have to deal with this directly!
From the Element CLI, run element new BLOCKNAME
and that tool will take care of the rest!
To ensure we're all using the same version of Node.js while developing, please use either n or nvm to install the project's Node.js version, and then install AVN:
# If you're managing Node versions with NVM:
npm install -g avn avn-nvm
# If you're managing Node versions with n:
npm install -g avn avn-n
Then, set up AVN with
avn setup
After you have AVN setup, run the following commands to get started:
npm install
npm start
As a developer, if you've made changes to your already-published block, you may need to update the unit test snapshot by running the following command:
npm test -- -u
Though we are not accepting contributions for this repo at the moment, we still have a Code of Conduct in place.
© 2018 onwards by Volusion MIT License