Skip to content

mobven/mobven-vue-kit

Repository files navigation

Mobven VUE KIT

| Build | Statements | Branches | Functions | Lines | Built By | We Love |

| ------ | ------ | ------- | ------- | ------ | -------| ------- |

| Build Status | Statements | Branches | Functions | Lines | BuiltBy | ForTheBadge

⏩ Quick Start

1. Install:

npm install or npm i

2. Run for install lerna project dependencies:

lerna bootstrap

3. You can use common components from the main(@macfit-vue/base) project as follows.

<template>
 <div class="hello">
  <h1>{{ msg }}</h1>
   <MyButton>Button From Base Library</MyButton>
  </div>
 </template>
<script>
import { MyButton } from '@macfit-vue/base';
  export default {
  name: 'HelloWorld',
  components: {
  MyButton,
 },
 data() {
  return {
   msg: 'Welcome to Macfit Project Template',
  };
 },
};
</script>

4. If you add or change a dependency(base or cms project), you must still run the following command:

lerna bootstrap

4. Start Dev Server:

npm start

5. Unit Test and Coverage Report (Must be greater than 40 percent)

npm run unit
 PASS  test/unit/specs/sample.test.js
  HelloWorld
    ✓ is a object (2 ms)
    ✓ renders the correct markup (7 ms)

----------------|---------|----------|---------|---------|-------------------
File            | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
----------------|---------|----------|---------|---------|-------------------
All files       |      50 |      100 |      50 |      50 |                   
 HelloWorld.vue |     100 |      100 |     100 |     100 |                   
 Test.vue       |       0 |      100 |       0 |       0 | 9-16              
----------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        2.737 s

6. Check lint score (must always be less than 10):

npm run lint
/Users/mobven/dev/ui/scripts/components/Header.js
  24:2  error  Unnecessary semicolon  no-extra-semi
✖ 2 problems (2 errors, 0 warnings)

7. Run Production Mode:

npm run build

▶️ Detail

📦 Requirements

  • Vue.js (v2.0.0+)
  • Vuex, optionally (v2.0.0+)
  • Node, optionally (v12.0.0+)
  • Lerna, optionally (v3.0.0+)

🎯 Contributors

  • Mobven Technology, (creator)

🔑 License

MIT © Mobven

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors