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*
99
1010node_modules
1111dist
12+ build
1213dist-ssr
1314* .local
1415
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 11<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' ;
911import ' ../node_modules/leaflet/dist/leaflet.css' ;
1012
1113 </script >
Original file line number Diff line number Diff line change 11import { createApp } from 'vue'
2- import App from '../dist/vueleaflet.es' ;
3- import '../dist/style.css' ;
2+ import App from './Layout.vue' ;
43
54createApp ( App ) . mount ( '#app' )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 </ head >
99 < body >
1010 < div id ="app "> </ div >
11- < script type ="module " src ="/src /main.ts "> </ script >
11+ < script type ="module " src ="/examples /main.ts "> </ script >
1212 </ body >
1313</ html >
Original file line number Diff line number Diff line change 1212 }
1313 },
1414 "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 "
1818 },
1919 "dependencies" : {
2020 "vue" : " ^3.3.4" ,
Original file line number Diff line number Diff line change 11export { default as LMap } from './components/LMap.vue' ;
22export { 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' ;
45export { default as LPopup } from './components/LPopup.vue' ;
56export { default as LCircle } from './components/LCircle.vue' ;
67export { default as LPolygon } from './components/LPolygon.vue' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments