File tree Expand file tree Collapse file tree 9 files changed +114
-18
lines changed Expand file tree Collapse file tree 9 files changed +114
-18
lines changed Original file line number Diff line number Diff line change 1- name : Rust
1+ name : CI
22
33on :
44 push :
55 branches :
6- - main
7- - ' 0\.*\.*'
8- pull_request :
9- branches :
10- - main
6+ - ' **'
117
128jobs :
139 build :
@@ -47,15 +43,23 @@ jobs:
4743 cd vue-playground
4844 pnpm i
4945 pnpm build
46+
5047 - name : Archive vue-skia-framework artifacts
5148 uses : actions/upload-artifact@v3
5249 with :
5350 name : vue-skia-framework
5451 path : |
55- vue-skia-framework
56- !node_modules
57- - name : Archive vue-playground results
52+ vue-skia-framework/lib
53+ vue-skia-framework/type.d.ts
54+ vue-skia-framework/main.js
55+ vue-skia-framework/main.d.ts
56+ vue-skia-framework/components
57+ vue-skia-framework/LICENSE
58+ vue-skia-framework/package-publish.json
59+
60+ - name : Archive soft-skia-wasm artifacts
5861 uses : actions/upload-artifact@v3
5962 with :
60- name : vue-playground
61- path : vue-playground/dist
63+ name : soft-skia-wasm
64+ path : |
65+ soft-skia-wasm/pkg
Original file line number Diff line number Diff line change 1+ name : Playground Use Latest
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - ' 0\.*\.*'
8+ pull_request :
9+ branches :
10+ - main
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - uses : actions-rs/toolchain@v1
19+ with :
20+ toolchain : stable
21+ components : clippy
22+ override : true
23+
24+ - name : vue-playground
25+ run : |
26+ cd vue-playground
27+ cp package-ci.json package.json
28+ npm i
29+ npm run build
30+
31+ - name : Archive vue-playground results
32+ uses : actions/upload-artifact@v3
33+ with :
34+ name : vue-playground-use-latest
35+ path : |
36+ vue-playground
37+ !vue-playground/node_modules
Original file line number Diff line number Diff line change 11[package ]
22name = " soft-skia-wasm"
3- version = " 0.4 .0"
3+ version = " 0.6 .0"
44authors = [" meloalright <meloalright@gmail.com>" ]
55edition = " 2018"
66
Original file line number Diff line number Diff line change 11[package ]
22name = " soft_skia"
3- version = " 0.4 .0"
3+ version = " 0.6 .0"
44edition = " 2021"
55description =" software rasterization skia binding"
66license = " MIT"
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " vue-playground" ,
3+ "version" : " 0.6.0" ,
4+ "private" : true ,
5+ "scripts" : {
6+ "serve" : " vue-cli-service serve" ,
7+ "build" : " vue-cli-service build" ,
8+ "lint" : " vue-cli-service lint"
9+ },
10+ "dependencies" : {
11+ "@uivjs/vue-github-corners" : " ^1.0.1" ,
12+ "core-js" : " ^3.8.3" ,
13+ "prism-themes" : " ^1.9.0" ,
14+ "prismjs" : " ^1.29.0" ,
15+ "vue" : " ^3.2.13" ,
16+ "vue-live" : " ^2.5.4" ,
17+ "vue-skia" : " latest"
18+ },
19+ "devDependencies" : {
20+ "@types/node" : " ^20.5.0" ,
21+ "@typescript-eslint/eslint-plugin" : " ^5.4.0" ,
22+ "@typescript-eslint/parser" : " ^5.4.0" ,
23+ "@vue/cli-plugin-babel" : " ~5.0.0" ,
24+ "@vue/cli-plugin-eslint" : " ~5.0.0" ,
25+ "@vue/cli-plugin-typescript" : " ~5.0.0" ,
26+ "@vue/cli-service" : " ~5.0.0" ,
27+ "@vue/eslint-config-typescript" : " ^9.1.0" ,
28+ "eslint" : " ^7.32.0" ,
29+ "eslint-config-prettier" : " ^8.3.0" ,
30+ "eslint-plugin-prettier" : " ^4.0.0" ,
31+ "eslint-plugin-vue" : " ^8.0.3" ,
32+ "prettier" : " ^2.4.1" ,
33+ "typescript" : " ~4.5.5" ,
34+ "url-loader" : " ^4.1.1"
35+ }
36+ }
Original file line number Diff line number Diff line change 1111 <p class =" description" >
1212 This super cool editor is based on <em >vue-live</em > !
1313 </p >
14- <div class =" livebox" >
14+ <div class =" livebox" v-if = " !debug " >
1515 <div class =" hint" >
1616 You can edit <a title =" copy code to clipboard" @click =" copy" >this</a >
1717 <span >-></span >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const launch = function () {
1010 const wasm = import ( "soft-skia-wasm/soft_skia_wasm.js" ) ;
1111 wasm . then ( ( ssw ) => {
1212 ssw . default ( ) . then ( ( ) => {
13- global . ssw = ssw ;
13+ window . ssw = ssw ;
1414 while ( SSWInitialHelper . initialSucceedCallbackQueue . length ) {
1515 SSWInitialHelper . initialSucceedCallbackQueue . pop ( ) ( ) ;
1616 }
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " vue-skia" ,
3+ "version" : " 0.0.6" ,
4+ "files" : [
5+ " lib" ,
6+ " type.d.ts" ,
7+ " main.js" ,
8+ " main.d.ts" ,
9+ " components" ,
10+ " LICENSE"
11+ ],
12+ "license" : " MIT" ,
13+ "main" : " ./main.js" ,
14+ "module" : " ./main.js" ,
15+ "dependencies" : {
16+ "soft-skia-wasm" : " 0.6.0"
17+ }
18+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-skia" ,
3- "version" : " 0.0.4" ,
3+ "version" : " 0.0.0" ,
4+ "private" : " true" ,
45 "files" : [
56 " lib" ,
6- " soft-skia-wasm/pkg " ,
7+ " type.d.ts " ,
78 " main.js" ,
89 " main.d.ts" ,
910 " components" ,
1011 " LICENSE"
1112 ],
1213 "scripts" : {
13- "build" : " rm -rf lib; tsc;cp main.js main.d.ts"
14+ "build" : " rm -rf lib; tsc; cp main.js main.d.ts; cp type.ts type .d.ts"
1415 },
1516 "license" : " MIT" ,
1617 "main" : " ./main.js" ,
You can’t perform that action at this time.
0 commit comments