sensor-snap v0.3.3
Aloes - sensor-snap
Vue library to generate Sensors Widget with Open Mobile Alliance references as inputs.
Application based on :
Folder structure
/. --> 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
Usage
Directly in the browser
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>In a module system
Install the library with NPM:
npm install sensor-snapThen import and locally register a single component with:
import SensorSnap from 'sensor-snap';
export default {
components: {
'sensor-snap': () => import('sensor-snap'),
},
};Project setup
npm installCompiles and hot-reloads for development
npm run start:devCompiles and minifies for production
npm run lib:buildGenerate documentation
npm run docs:devRun your tests
npm run testLints and fixes files
npm run lintCustomize configuration
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago