Skip to content

Commit 215a9bb

Browse files
authored
0.0.6 (#15)
1 parent 7db44ed commit 215a9bb

File tree

9 files changed

+114
-18
lines changed

9 files changed

+114
-18
lines changed

.github/workflows/ci.yml

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
name: Rust
1+
name: CI
22

33
on:
44
push:
55
branches:
6-
- main
7-
- '0\.*\.*'
8-
pull_request:
9-
branches:
10-
- main
6+
- '**'
117

128
jobs:
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 numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

soft-skia-wasm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "soft-skia-wasm"
3-
version = "0.4.0"
3+
version = "0.6.0"
44
authors = ["meloalright <[email protected]>"]
55
edition = "2018"
66

soft-skia/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "soft_skia"
3-
version = "0.4.0"
3+
version = "0.6.0"
44
edition = "2021"
55
description="software rasterization skia binding"
66
license = "MIT"

vue-playground/package-ci.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
}

vue-playground/src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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>

vue-skia-framework/launch.ts

+1-1
Original file line numberDiff line numberDiff 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
}
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

vue-skia-framework/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
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",

0 commit comments

Comments
 (0)