File tree Expand file tree Collapse file tree 11 files changed +78
-43
lines changed Expand file tree Collapse file tree 11 files changed +78
-43
lines changed Original file line number Diff line number Diff line change
1
+ name : github-pages
2
+
3
+ on : push
4
+
5
+ jobs :
6
+ pages :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+
11
+ - name : Setup Node
12
+ uses : actions/setup-node@v2.1.2
13
+ with :
14
+ node-version : ' 18.x'
15
+
16
+ - name : Cache .pnpm-store
17
+ uses : actions/cache@v2
18
+ with :
19
+ path : ~/.pnpm-store
20
+ key : ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
21
+ restore-keys : |
22
+ ${{ runner.os }}-${{ matrix.node-version }}
23
+
24
+ - name : install pnpm and npm
25
+ run : |
26
+ curl -L https://pnpm.js.org/pnpm.js | node - add --global pnpm@dev npm@6
27
+ - name : pnpm install
28
+ run : pnpm install
29
+ - name : build pages
30
+ run : pnpm run build:example
31
+
32
+ - name : GitHub Pages action
33
+ uses : peaceiris/actions-gh-pages@v3
34
+ with :
35
+ github_token : ${{ secrets.GITHUB_TOKEN }}
36
+ publish_dir : ./build
37
+ cname : vueleaflet.brandonxiang.top
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ lerna-debug.log*
9
9
10
10
node_modules
11
11
dist
12
+ build
12
13
dist-ssr
13
14
* .local
14
15
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2" ,
3
+ "ignorePaths" : [],
4
+ "dictionaryDefinitions" : [],
5
+ "dictionaries" : [],
6
+ "words" : [
7
+ " Tilelayer"
8
+ ],
9
+ "ignoreWords" : [],
10
+ "import" : []
11
+ }
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import LMap from ' ./components/LMap.vue' ;
3
- import LTilelayer from ' ./components/LTilelayer.vue' ;
4
- import LMarker from ' ./components/LMarker.vue' ;
5
- import LTooltip from ' ./components/LTooltip.vue' ;
6
- import LPopup from ' ./components/LPopup.vue' ;
7
- import LCircle from ' ./components/LCircle.vue' ;
8
- import LPolygon from ' ./components/LPolygon.vue' ;
2
+ import {
3
+ LMap ,
4
+ LTilelayer ,
5
+ LMarker ,
6
+ LTooltip ,
7
+ LPopup ,
8
+ LCircle ,
9
+ LPolygon
10
+ } from ' ../src' ;
9
11
import ' ../node_modules/leaflet/dist/leaflet.css' ;
10
12
11
13
</script >
Original file line number Diff line number Diff line change 1
1
import { createApp } from 'vue'
2
- import App from '../dist/vueleaflet.es' ;
3
- import '../dist/style.css' ;
2
+ import App from './Layout.vue' ;
4
3
5
4
createApp ( App ) . mount ( '#app' )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
</ head >
9
9
< body >
10
10
< div id ="app "> </ div >
11
- < script type ="module " src ="/src /main.ts "> </ script >
11
+ < script type ="module " src ="/examples /main.ts "> </ script >
12
12
</ body >
13
13
</ html >
Original file line number Diff line number Diff line change 12
12
}
13
13
},
14
14
"scripts" : {
15
- "example " : " vite dev --config vite.example.config.ts" ,
16
- "build" : " vite build" ,
17
- "dev " : " vite dev "
15
+ "dev " : " vite dev --config vite.example.config.ts" ,
16
+ "build:example " : " vite build --config vite.example.config.ts " ,
17
+ "build " : " vite build "
18
18
},
19
19
"dependencies" : {
20
20
"vue" : " ^3.3.4" ,
Original file line number Diff line number Diff line change 1
1
export { default as LMap } from './components/LMap.vue' ;
2
2
export { default as LMarker } from './components/LMarker.vue' ;
3
- export { default as LTooltip } from './components/LTooltip.vue' ;
3
+ export { default as LTooltip } from './components/LTooltip.vue' ;
4
+ export { default as LTilelayer } from './components/LTilelayer.vue' ;
4
5
export { default as LPopup } from './components/LPopup.vue' ;
5
6
export { default as LCircle } from './components/LCircle.vue' ;
6
7
export { default as LPolygon } from './components/LPolygon.vue' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { defineConfig } from ' vite' ;
2
- import vue from ' @vitejs/plugin-vue' ;
3
- import { resolve } from ' path' ;
1
+ import { defineConfig } from " vite" ;
2
+ import vue from " @vitejs/plugin-vue" ;
3
+ import { resolve } from " path" ;
4
4
5
5
// https://vitejs.dev/config/
6
6
export default defineConfig ( {
7
- build : {
8
- rollupOptions : {
9
- input : {
10
- main : resolve ( __dirname , 'index.example.html' ) ,
11
- }
12
- }
13
- } ,
14
- plugins : [ vue ( ) ] ,
15
- } )
7
+ build : {
8
+ outDir : 'build' ,
9
+ rollupOptions : {
10
+ input : {
11
+ main : resolve ( __dirname , "index.html" ) ,
12
+ } ,
13
+ } ,
14
+ } ,
15
+ plugins : [ vue ( ) ] ,
16
+ } ) ;
You can’t perform that action at this time.
0 commit comments