File tree 5 files changed +24
-34
lines changed
5 files changed +24
-34
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
node_modules
3
+ /dist
3
4
4
5
# local env files
5
6
.env.local
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " vue-ui-loader " ,
3
- "version" : " 1.0.0 " ,
2
+ "name" : " vue-ui-preloader " ,
3
+ "version" : " 1.0.10 " ,
4
4
"private" : false ,
5
5
"scripts" : {
6
6
"serve" : " vue-cli-service serve" ,
7
7
"build" : " vue-cli-service build" ,
8
8
"lint" : " vue-cli-service lint" ,
9
- "build-bundle" : " vue-cli-service build --target lib --name vue-ui- loader ./src/components/index.js "
9
+ "build-bundle" : " vue-cli-service build --target lib --name loader ./src/components/loader.vue "
10
10
},
11
11
"dependencies" : {
12
12
"bootstrap" : " ^4.5.0" ,
34
34
"eslint-plugin-vue" : " ^6.2.2" ,
35
35
"vue-template-compiler" : " ^2.6.11"
36
36
},
37
- "main" : " ./dist/vue-ui-loader.common.js" ,
37
+ "main" : " ./src/components/index.js" ,
38
+ "unpkg" : " dist/loader.umd.min.js" ,
38
39
"license" : " MIT" ,
39
40
"eslintConfig" : {
40
41
"root" : true ,
56
57
" not dead"
57
58
],
58
59
"files" : [
59
- " dist/vue-ui-loader.common.js" ,
60
- " dist/vue-ui-loader.umd.js"
60
+ " dist/*" ,
61
+ " src/*" ,
62
+ " *.json" ,
63
+ " *.js"
61
64
]
62
65
}
Original file line number Diff line number Diff line change 1
1
// Import vue component
2
- import { Uiloader } from './loader.vue' ;
2
+ import loader from './loader.vue' ;
3
3
4
4
// Declare install function executed by Vue.use()
5
- export function install ( Vue ) {
6
- if ( install . installed ) return ;
7
- install . installed = true ;
8
- Vue . component ( 'loader' , Uiloader ) ;
5
+ const install = ( Vue ) => {
6
+ Vue . component ( 'loader' , loader )
9
7
}
10
8
11
- // Create module definition for Vue.use()
12
- const plugin = {
13
- install,
14
- } ;
15
9
16
- // Auto-install when vue is found (eg. in browser via <script> tag)
17
- let GlobalVue = null ;
18
- if ( typeof window !== 'undefined' ) {
19
- GlobalVue = window . Vue ;
20
- } else if ( typeof global !== 'undefined' ) {
21
- GlobalVue = global . Vue ;
22
- }
23
- if ( GlobalVue ) {
24
- GlobalVue . use ( plugin ) ;
10
+ export default {
11
+ install
25
12
}
26
13
27
14
// To allow use as module (npm/webpack/etc.) export component
28
- export default { Uiloader } ;
15
+ export { loader } ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import circular from "./loaders/circular";
19
19
import toptombar from " ./loaders/toptombar" ;
20
20
import box from " ./loaders/box" ;
21
21
export default {
22
+ name: ' loader' ,
22
23
components: {
23
24
spinning: loader1,
24
25
dots: dots,
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- css : {
3
- extract : false
4
- } ,
5
- configureWebpack : {
6
- output : {
7
- libraryExport : 'default'
8
- }
9
- }
10
- }
2
+ publicPath : '/vue-ui-preloader/' ,
3
+ configureWebpack : {
4
+ output : {
5
+ libraryExport : 'default'
6
+ }
7
+ }
8
+ }
You can’t perform that action at this time.
0 commit comments