If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-contrib-uglify --save-dev
Run the below to install node modules for Alarm Clock
npm install
Once modules have installed, please run the following command in the root folder 'wp-alarm-clock':
grunt build
You may test compiled code, located here: wp-alarm-clock/build
Your deployment code will reside here: wp-alarm-clock/dist
You may test the compiled code in a browser
- I would like to enhance this by converting to an AMD module with config object passed in.
- Implement support for custom options in config object
- allow different snooze times
- alarm message / animation
- theme (fonts, colors, images, sounds)
- allow different layout (horizontal, vertical, 4 corners)
- possible idea: include current location temperature
To view code in Github, please visit: https://github.com/tkrofecheck/wp-alarm-clock