0.1.46 • Published 4 years ago
table-bulgo-app v0.1.46
login-bulgo-app
Create Module Bulgo App
vue create ${name}-bulgo-app
vue add vuetify
Default option.env.development
Add:VUE_APP_MODE=development
npm i bulgo-spa-library && npm i mobile-device-detect && npm i vue-svg-loader
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}\""
Create file
index.js
in /src with this:import { routes as routes${name}BulgoApp } from "./router"; export default { routes${name}BulgoApp, };
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';
- Modified
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 }
- Remove
- Copy Folder /helper and paste in /src.
- Add in
index.vue
page this:import Helper from './helpers/index' created(){ // * Register Helper console.log('register helper', Helper); }
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) },
- Added
0.1.43
4 years ago
0.1.44
4 years ago
0.1.45
4 years ago
0.1.46
4 years ago
0.1.30
4 years ago
0.1.31
4 years ago
0.1.32
4 years ago
0.1.33
4 years ago
0.1.34
4 years ago
0.1.35
4 years ago
0.1.36
4 years ago
0.1.37
4 years ago
0.1.27
4 years ago
0.1.29
4 years ago
0.1.41
4 years ago
0.1.42
4 years ago
0.1.26
4 years ago
0.1.40
4 years ago
0.1.38
4 years ago
0.1.39
4 years ago
0.1.20
4 years ago
0.1.21
4 years ago
0.1.22
4 years ago
0.1.11
4 years ago
0.1.23
4 years ago
0.1.12
4 years ago
0.1.24
4 years ago
0.1.13
4 years ago
0.1.25
4 years ago
0.1.14
4 years ago
0.1.15
4 years ago
0.1.16
4 years ago
0.1.17
4 years ago
0.1.18
4 years ago
0.1.19
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago