0.1.71 • Published 3 years ago

login-bulgo-app v0.1.71

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

login-bulgo-app

Create Module Bulgo App

  1. vue create ${name}-bulgo-app
  2. vue add vuetify Default option
  3. .env.development Add: VUE_APP_MODE=development
  4. npm i bulgo-spa-library && npm i mobile-device-detect && npm i vue-svg-loader
  5. Modified package.json with this:

        "private":false,
        "main": "dist/${module}.umd.min",
        "build:lib": "npm run bulgo:update && node node_modules/bulgo-spa-library/build/lib.js && vue-cli-service build --target lib --filename ${name}-bulgo-app src/index.js && npm publish",
        "bulgo:update": "npm i bulgo-spa-library@latest",
        "bulgo:commit": "git add . && git commit -m \"${npm_config_message}\" && git push",
        "bulgo:publish": "npm run build:lib && npm run bulgo:commit --message \"${npm_config_msg_publish}\""
  6. Create file index.js in /src with this:

        import { routes as routes${name}BulgoApp } from "./router";
        export default { routes${name}BulgoApp, };
  7. Modified main.js with this:

    • Modified import { router } from './router'
    • Added import VueRouter from 'vue-router'
    • Added Vue.use(VueRouter)
    • Added import 'bulgo-spa-library/dist/bulgo-spa-library.css';
  8. Modified index.js in /router with this.

    • Remove import Vue from ‘vue’
    • Remove Vue.use(VueRouter)
    • Added in const router:
          mode: 'history',
          base: process.env.BASE_URL,
    • Added After create const router:
          routes.unshift({
              path: '/',
              redirect: '/client'
          })
    • Modified export deafult router:
          export  {
              router,
              routes
          }
  9. Copy Folder /helper and paste in /src.
  10. Add in index.vue page this:
        import Helper from './helpers/index'
        created(){
        // * Register Helper
        console.log('register helper', Helper);
        }
  11. Modified vue.config.js with this:

    • Added
          css: {
              extract: true,
              loaderOptions: {
                  scss: {
                  additionalData: '@import "~@/assets/scss/global.scss";'
                  }
              }
          },
    • Added

          chainWebpack: (config) => {
              const svgRule = config.module.rule('svg');
      
              svgRule.uses.clear();
      
              svgRule
              .use('babel-loader')
              .loader('babel-loader')
              .end()
              .use('vue-svg-loader')
              .loader('vue-svg-loader');
      
              config.devServer.set('inline', false)
              config.devServer.set('hot', true)
          },
0.1.58

3 years ago

0.1.70

3 years ago

0.1.71

3 years ago

0.1.65

3 years ago

0.1.66

3 years ago

0.1.67

3 years ago

0.1.68

3 years ago

0.1.69

3 years ago

0.1.60

3 years ago

0.1.61

3 years ago

0.1.62

3 years ago

0.1.57

3 years ago

0.1.52

3 years ago

0.1.53

3 years ago

0.1.54

3 years ago

0.1.55

3 years ago

0.1.56

3 years ago

0.1.50

3 years ago

0.1.51

3 years ago

0.1.49

3 years ago

0.1.43

3 years ago

0.1.44

3 years ago

0.1.45

3 years ago

0.1.46

3 years ago

0.1.47

3 years ago

0.1.48

3 years ago

0.1.30

3 years ago

0.1.31

3 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.35

3 years ago

0.1.13

3 years ago

0.1.36

3 years ago

0.1.14

3 years ago

0.1.37

3 years ago

0.1.15

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.41

3 years ago

0.1.42

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.40

3 years ago

0.1.38

3 years ago

0.1.16

3 years ago

0.1.39

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.10

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.0

3 years ago