0.0.2 • Published 7 years ago
@alya-mirror/asm-google-images-addon v0.0.2
asm-youtube
A react component that gets and show youtube videos using voice commands alya-smart-mirror.
Demo

Usage
First configure asm-youtube-addon-skill and follow the steps there.Then you can just import it as react component and use it.
npm install asm-youtube-addon --saveExample
import ASMYoutubeModlue from 'asm-youtube-addon'
render(<ASMYoutubeModlue/>, document.getElementById('root').appendChild(document.createElement("div")));development
To run the component as an electron react component:
yarn devbuilding
yarn buildcleaning
yarn cleantesting
yarn testpublishing
npm publishknown issues
- Directory path will always resolve relative to the electron.js file. A workaround is to use path.resolve. Example below:
const path = window.require('path')
// I search for a file inside src/component/utils/certs , then use below code:
const certsFolderPath = path.resolve('src/component/utils/certs');
console.log(certsFolderPath) // /Users/xxxxx/alya/asm-date-time/src/component/utils/certs- To require an npm module from a react component, do like:
const path = window.require('path')0.0.2
7 years ago


