Skip to content

Commit 585d7a7

Browse files
committed
0.0.8
1 parent 65ec163 commit 585d7a7

File tree

21 files changed

+117
-171
lines changed

21 files changed

+117
-171
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -157,54 +157,6 @@ jobs:
157157
name: bindings-${{ matrix.settings.target }}
158158
path: ${{ env.APP_NAME }}.*.node
159159
if-no-files-found: error
160-
build-freebsd:
161-
runs-on: macos-12
162-
name: Build FreeBSD
163-
steps:
164-
- uses: actions/checkout@v3
165-
- name: Build
166-
id: build
167-
uses: vmactions/freebsd-vm@v0
168-
env:
169-
DEBUG: napi:*
170-
RUSTUP_HOME: /usr/local/rustup
171-
CARGO_HOME: /usr/local/cargo
172-
RUSTUP_IO_THREADS: 1
173-
with:
174-
envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS
175-
usesh: true
176-
mem: 3000
177-
prepare: |
178-
pkg install -y -f curl node libnghttp2 npm yarn
179-
curl https://sh.rustup.rs -sSf --output rustup.sh
180-
sh rustup.sh -y --profile minimal --default-toolchain beta
181-
export PATH="/usr/local/cargo/bin:$PATH"
182-
echo "~~~~ rustc --version ~~~~"
183-
rustc --version
184-
echo "~~~~ node -v ~~~~"
185-
node -v
186-
echo "~~~~ yarn --version ~~~~"
187-
yarn --version
188-
run: |
189-
export PATH="/usr/local/cargo/bin:$PATH"
190-
pwd
191-
ls -lah
192-
whoami
193-
env
194-
freebsd-version
195-
yarn install
196-
yarn build
197-
strip -x *.node
198-
yarn test
199-
rm -rf node_modules
200-
rm -rf target
201-
rm -rf .yarn/cache
202-
- name: Upload artifact
203-
uses: actions/upload-artifact@v3
204-
with:
205-
name: bindings-freebsd
206-
path: ${{ env.APP_NAME }}.*.node
207-
if-no-files-found: error
208160
test-macOS-windows-binding:
209161
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
210162
needs:
@@ -459,7 +411,6 @@ jobs:
459411
name: Publish
460412
runs-on: ubuntu-latest
461413
needs:
462-
- build-freebsd
463414
- test-macOS-windows-binding
464415
- test-linux-x64-gnu-binding
465416
- test-linux-x64-musl-binding

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## [0.0.8](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.7...v0.0.8) (2023-10-17)
2+
3+
4+
### Bug Fixes
5+
6+
* 去掉样式继承逻辑 ([eec198f](https://github.com/NervJS/parse-css-to-stylesheet/commit/eec198f20bd0a93e163c5990424a19322ca9a94a))
7+
* 去掉样式继承逻辑,仅支持类选择器 ([0752a13](https://github.com/NervJS/parse-css-to-stylesheet/commit/0752a13770e2387b3b6479cca7472783fe12f3bb))
8+
9+
10+
### Features
11+
12+
*__calc_style__ 函数插入到代码中 ([65ec163](https://github.com/NervJS/parse-css-to-stylesheet/commit/65ec1632f9031eb346fb90993031b1f977237170))
13+
* 将样式转为对象插入到代码中 ([644a0d3](https://github.com/NervJS/parse-css-to-stylesheet/commit/644a0d3018efb34c0a9c1afda918034a6f13eb05))
14+
* 支持处理动态类名情况 ([ae91b2c](https://github.com/NervJS/parse-css-to-stylesheet/commit/ae91b2c31362ff1d073e3bc268d3aa43fac7cb51))
15+
16+
17+
118
## [0.0.7](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.6...v0.0.7) (2023-10-12)
219

320

__test__/index.spec.mjs.md

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,38 @@ Generated by [AVA](https://avajs.dev).
1111
`import React from 'react';␊
1212
import './Mod.scss';␊
1313
var __inner_style__ = {␊
14-
instruction1: {␊
15-
color: "#000",␊
16-
font-size: "16px",␊
17-
line-height: "1",␊
14+
cnt_col: {␊
15+
display: "flex",␊
16+
flex-direction: "column",␊
17+
align-items: "flex-start",␊
18+
justify-content: "center",␊
19+
gap: "8px",␊
20+
width: "145px",␊
21+
height: "50px"␊
22+
},␊
23+
cnt_row: {␊
24+
width: "176px",␊
25+
height: "24px",␊
26+
border-radius: "100px",␊
27+
background-color: "#000000b3",␊
28+
display: "flex",␊
29+
align-items: "center",␊
30+
justify-content: "center",␊
1831
flex-shrink: "0px",␊
19-
width: "116px",␊
20-
display: "inline-flex"␊
32+
gap: "4px",␊
33+
padding-left: "4px",␊
34+
padding-right: "8px",␊
35+
padding-top: "8px",␊
36+
padding-bottom: "8px"␊
37+
},␊
38+
cnt_row1: {␊
39+
display: "flex",␊
40+
align-items: "center",␊
41+
justify-content: "flex-start",␊
42+
gap: "10px",␊
43+
position: "relative",␊
44+
width: "311px",␊
45+
height: "50px"␊
2146
},␊
2247
cnt_row2: {␊
2348
border-width: "1px",␊
@@ -40,25 +65,58 @@ Generated by [AVA](https://avajs.dev).
4065
padding-bottom: "4px",␊
4166
z-index: "12"␊
4267
},␊
43-
cnt_row: {␊
44-
width: "176px",␊
45-
height: "24px",␊
46-
border-radius: "100px",␊
47-
background-color: "#000000b3",␊
68+
cnt_row3: {␊
4869
display: "flex",␊
4970
align-items: "center",␊
50-
justify-content: "center",␊
51-
flex-shrink: "0px",␊
52-
gap: "4px",␊
53-
padding-left: "4px",␊
54-
padding-right: "8px",␊
55-
padding-top: "8px",␊
56-
padding-bottom: "8px"␊
71+
justify-content: "space-between",␊
72+
gap: "-311px",␊
73+
width: "311px",␊
74+
height: "44px"␊
5775
},␊
5876
icon: {␊
5977
width: "18px",␊
6078
height: "18px"␊
6179
},␊
80+
icon1: {␊
81+
width: "15px",␊
82+
height: "15px"␊
83+
},␊
84+
img: {␊
85+
width: "50px",␊
86+
height: "50px"␊
87+
},␊
88+
img1: {␊
89+
width: "6px",␊
90+
height: "10px"␊
91+
},␊
92+
instruction: {␊
93+
color: "#fff",␊
94+
font-size: "12px",␊
95+
line-height: "1",␊
96+
flex-shrink: "0px",␊
97+
display: "inline-flex"␊
98+
},␊
99+
instruction1: {␊
100+
color: "#000",␊
101+
font-size: "16px",␊
102+
line-height: "1",␊
103+
flex-shrink: "0px",␊
104+
width: "116px",␊
105+
display: "inline-flex"␊
106+
},␊
107+
instruction2: {␊
108+
color: "#999",␊
109+
font-size: "11px",␊
110+
line-height: "1.36",␊
111+
text-align: "center",␊
112+
flex-shrink: "0px",␊
113+
overflow: "hidden"␊
114+
},␊
115+
line1: {␊
116+
text-overflow: "ellipsis",␊
117+
white-space: "nowrap",␊
118+
overflow: "hidden"␊
119+
},␊
62120
mod: {␊
63121
background-color: "#fff6f0",␊
64122
border-radius: "8px",␊
@@ -77,85 +135,27 @@ Generated by [AVA](https://avajs.dev).
77135
padding-top: "29px",␊
78136
padding-bottom: "29px"␊
79137
},␊
80-
cnt_col: {␊
81-
display: "flex",␊
82-
flex-direction: "column",␊
83-
align-items: "flex-start",␊
84-
justify-content: "center",␊
85-
gap: "8px",␊
86-
width: "145px",␊
87-
height: "50px"␊
88-
},␊
89-
line1: {␊
90-
text-overflow: "ellipsis",␊
91-
white-space: "nowrap",␊
92-
overflow: "hidden"␊
93-
},␊
94-
txt2: {␊
138+
txt: {␊
95139
color: "#999",␊
96140
font-size: "12px",␊
97-
line-height: "1.83",␊
141+
line-height: "1",␊
98142
flex-shrink: "0px",␊
99-
width: "290px",␊
100143
display: "inline-flex"␊
101144
},␊
102-
img: {␊
103-
width: "50px",␊
104-
height: "50px"␊
105-
},␊
106-
img1: {␊
107-
width: "6px",␊
108-
height: "10px"␊
109-
},␊
110145
txt1: {␊
111146
color: "#222",␊
112147
font-size: "11px",␊
113148
line-height: "1.36",␊
114149
text-align: "center",␊
115150
flex-shrink: "0px"␊
116151
},␊
117-
cnt_row3: {␊
118-
display: "flex",␊
119-
align-items: "center",␊
120-
justify-content: "space-between",␊
121-
gap: "-311px",␊
122-
width: "311px",␊
123-
height: "44px"␊
124-
},␊
125-
icon1: {␊
126-
width: "15px",␊
127-
height: "15px"␊
128-
},␊
129-
txt: {␊
130-
color: "#999",␊
131-
font-size: "12px",␊
132-
line-height: "1",␊
133-
flex-shrink: "0px",␊
134-
display: "inline-flex"␊
135-
},␊
136-
instruction2: {␊
152+
txt2: {␊
137153
color: "#999",␊
138-
font-size: "11px",␊
139-
line-height: "1.36",␊
140-
text-align: "center",␊
141-
flex-shrink: "0px",␊
142-
overflow: "hidden"␊
143-
},␊
144-
instruction: {␊
145-
color: "#fff",␊
146154
font-size: "12px",␊
147-
line-height: "1",␊
155+
line-height: "1.83",␊
148156
flex-shrink: "0px",␊
157+
width: "290px",␊
149158
display: "inline-flex"␊
150-
},␊
151-
cnt_row1: {␊
152-
display: "flex",␊
153-
align-items: "center",␊
154-
justify-content: "flex-start",␊
155-
gap: "10px",␊
156-
position: "relative",␊
157-
width: "311px",␊
158-
height: "50px"␊
159159
}␊
160160
};␊
161161
function __calc_style__(classnames, styleObj) {␊

__test__/index.spec.mjs.snap

-11 Bytes
Binary file not shown.

npm/android-arm-eabi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-android-arm-eabi",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"os": [
55
"android"
66
],

npm/android-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-android-arm64",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"os": [
55
"android"
66
],

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-arm64",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"os": [
55
"darwin"
66
],

npm/darwin-universal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-universal",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"os": [
55
"darwin"
66
],

npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tarojs/parse-css-to-stylesheet-darwin-x64",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"os": [
55
"darwin"
66
],

npm/freebsd-x64/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)