Vue library to generate Sensors Widget with Open Mobile Alliance references as inputs.
Application based on :
-
/. --> Main application configuration, dependencies list, and launch scripts
-
/public --> contains icons, fonts ...
-
/src --> contains source code
-
/. --> VueJS main configuration and boot scripts
-
/components --> sensor components, mounted based on OMA objectId
-
/lib --> built files from external dependencies
-
/styles --> css modules built at SensorSnap mounting
Drop the library in with a <script>
tag alongside Vue:
<div id="app">
<!-- ... use components here ... -->
</div>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/sensor-snap"></script>
<script>
new Vue({el: '#app'});
</script>
Install the library with NPM:
npm install sensor-snap
Then import and locally register a single component with:
import SensorSnap from 'sensor-snap';
export default {
components: {
'sensor-snap': () => import('sensor-snap'),
},
};
npm install
npm run start:dev
npm run lib:build
npm run docs:dev
npm run test
npm run lint