0.1.46 • Published 3 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
3 years ago
0.1.44
3 years ago
0.1.45
3 years ago
0.1.46
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.34
3 years ago
0.1.35
3 years ago
0.1.36
3 years ago
0.1.37
3 years ago
0.1.27
3 years ago
0.1.29
3 years ago
0.1.41
3 years ago
0.1.42
3 years ago
0.1.26
3 years ago
0.1.40
3 years ago
0.1.38
3 years ago
0.1.39
3 years ago
0.1.20
3 years ago
0.1.21
3 years ago
0.1.22
3 years ago
0.1.11
3 years ago
0.1.23
3 years ago
0.1.12
3 years ago
0.1.24
3 years ago
0.1.13
3 years ago
0.1.25
3 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.17
3 years ago
0.1.18
3 years ago
0.1.19
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.2
3 years ago
0.1.1
3 years ago