Skip to content

Commit

Permalink
0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Oct 17, 2023
1 parent 65ec163 commit 585d7a7
Show file tree
Hide file tree
Showing 21 changed files with 117 additions and 171 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,54 +157,6 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
build-freebsd:
runs-on: macos-12
name: Build FreeBSD
steps:
- uses: actions/checkout@v3
- name: Build
id: build
uses: vmactions/freebsd-vm@v0
env:
DEBUG: napi:*
RUSTUP_HOME: /usr/local/rustup
CARGO_HOME: /usr/local/cargo
RUSTUP_IO_THREADS: 1
with:
envs: DEBUG RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS
usesh: true
mem: 3000
prepare: |
pkg install -y -f curl node libnghttp2 npm yarn
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile minimal --default-toolchain beta
export PATH="/usr/local/cargo/bin:$PATH"
echo "~~~~ rustc --version ~~~~"
rustc --version
echo "~~~~ node -v ~~~~"
node -v
echo "~~~~ yarn --version ~~~~"
yarn --version
run: |
export PATH="/usr/local/cargo/bin:$PATH"
pwd
ls -lah
whoami
env
freebsd-version
yarn install
yarn build
strip -x *.node
yarn test
rm -rf node_modules
rm -rf target
rm -rf .yarn/cache
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: bindings-freebsd
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
test-macOS-windows-binding:
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -459,7 +411,6 @@ jobs:
name: Publish
runs-on: ubuntu-latest
needs:
- build-freebsd
- test-macOS-windows-binding
- test-linux-x64-gnu-binding
- test-linux-x64-musl-binding
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## [0.0.8](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.7...v0.0.8) (2023-10-17)


### Bug Fixes

* 去掉样式继承逻辑 ([eec198f](https://github.com/NervJS/parse-css-to-stylesheet/commit/eec198f20bd0a93e163c5990424a19322ca9a94a))
* 去掉样式继承逻辑,仅支持类选择器 ([0752a13](https://github.com/NervJS/parse-css-to-stylesheet/commit/0752a13770e2387b3b6479cca7472783fe12f3bb))


### Features

*__calc_style__ 函数插入到代码中 ([65ec163](https://github.com/NervJS/parse-css-to-stylesheet/commit/65ec1632f9031eb346fb90993031b1f977237170))
* 将样式转为对象插入到代码中 ([644a0d3](https://github.com/NervJS/parse-css-to-stylesheet/commit/644a0d3018efb34c0a9c1afda918034a6f13eb05))
* 支持处理动态类名情况 ([ae91b2c](https://github.com/NervJS/parse-css-to-stylesheet/commit/ae91b2c31362ff1d073e3bc268d3aa43fac7cb51))



## [0.0.7](https://github.com/NervJS/parse-css-to-stylesheet/compare/v0.0.6...v0.0.7) (2023-10-12)


Expand Down
162 changes: 81 additions & 81 deletions __test__/index.spec.mjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,38 @@ Generated by [AVA](https://avajs.dev).
`import React from 'react';␊
import './Mod.scss';␊
var __inner_style__ = {␊
instruction1: {␊
color: "#000",␊
font-size: "16px",␊
line-height: "1",␊
cnt_col: {␊
display: "flex",␊
flex-direction: "column",␊
align-items: "flex-start",␊
justify-content: "center",␊
gap: "8px",␊
width: "145px",␊
height: "50px"␊
},␊
cnt_row: {␊
width: "176px",␊
height: "24px",␊
border-radius: "100px",␊
background-color: "#000000b3",␊
display: "flex",␊
align-items: "center",␊
justify-content: "center",␊
flex-shrink: "0px",␊
width: "116px",␊
display: "inline-flex"␊
gap: "4px",␊
padding-left: "4px",␊
padding-right: "8px",␊
padding-top: "8px",␊
padding-bottom: "8px"␊
},␊
cnt_row1: {␊
display: "flex",␊
align-items: "center",␊
justify-content: "flex-start",␊
gap: "10px",␊
position: "relative",␊
width: "311px",␊
height: "50px"␊
},␊
cnt_row2: {␊
border-width: "1px",␊
Expand All @@ -40,25 +65,58 @@ Generated by [AVA](https://avajs.dev).
padding-bottom: "4px",␊
z-index: "12"␊
},␊
cnt_row: {␊
width: "176px",␊
height: "24px",␊
border-radius: "100px",␊
background-color: "#000000b3",␊
cnt_row3: {␊
display: "flex",␊
align-items: "center",␊
justify-content: "center",␊
flex-shrink: "0px",␊
gap: "4px",␊
padding-left: "4px",␊
padding-right: "8px",␊
padding-top: "8px",␊
padding-bottom: "8px"␊
justify-content: "space-between",␊
gap: "-311px",␊
width: "311px",␊
height: "44px"␊
},␊
icon: {␊
width: "18px",␊
height: "18px"␊
},␊
icon1: {␊
width: "15px",␊
height: "15px"␊
},␊
img: {␊
width: "50px",␊
height: "50px"␊
},␊
img1: {␊
width: "6px",␊
height: "10px"␊
},␊
instruction: {␊
color: "#fff",␊
font-size: "12px",␊
line-height: "1",␊
flex-shrink: "0px",␊
display: "inline-flex"␊
},␊
instruction1: {␊
color: "#000",␊
font-size: "16px",␊
line-height: "1",␊
flex-shrink: "0px",␊
width: "116px",␊
display: "inline-flex"␊
},␊
instruction2: {␊
color: "#999",␊
font-size: "11px",␊
line-height: "1.36",␊
text-align: "center",␊
flex-shrink: "0px",␊
overflow: "hidden"␊
},␊
line1: {␊
text-overflow: "ellipsis",␊
white-space: "nowrap",␊
overflow: "hidden"␊
},␊
mod: {␊
background-color: "#fff6f0",␊
border-radius: "8px",␊
Expand All @@ -77,85 +135,27 @@ Generated by [AVA](https://avajs.dev).
padding-top: "29px",␊
padding-bottom: "29px"␊
},␊
cnt_col: {␊
display: "flex",␊
flex-direction: "column",␊
align-items: "flex-start",␊
justify-content: "center",␊
gap: "8px",␊
width: "145px",␊
height: "50px"␊
},␊
line1: {␊
text-overflow: "ellipsis",␊
white-space: "nowrap",␊
overflow: "hidden"␊
},␊
txt2: {␊
txt: {␊
color: "#999",␊
font-size: "12px",␊
line-height: "1.83",␊
line-height: "1",␊
flex-shrink: "0px",␊
width: "290px",␊
display: "inline-flex"␊
},␊
img: {␊
width: "50px",␊
height: "50px"␊
},␊
img1: {␊
width: "6px",␊
height: "10px"␊
},␊
txt1: {␊
color: "#222",␊
font-size: "11px",␊
line-height: "1.36",␊
text-align: "center",␊
flex-shrink: "0px"␊
},␊
cnt_row3: {␊
display: "flex",␊
align-items: "center",␊
justify-content: "space-between",␊
gap: "-311px",␊
width: "311px",␊
height: "44px"␊
},␊
icon1: {␊
width: "15px",␊
height: "15px"␊
},␊
txt: {␊
color: "#999",␊
font-size: "12px",␊
line-height: "1",␊
flex-shrink: "0px",␊
display: "inline-flex"␊
},␊
instruction2: {␊
txt2: {␊
color: "#999",␊
font-size: "11px",␊
line-height: "1.36",␊
text-align: "center",␊
flex-shrink: "0px",␊
overflow: "hidden"␊
},␊
instruction: {␊
color: "#fff",␊
font-size: "12px",␊
line-height: "1",␊
line-height: "1.83",␊
flex-shrink: "0px",␊
width: "290px",␊
display: "inline-flex"␊
},␊
cnt_row1: {␊
display: "flex",␊
align-items: "center",␊
justify-content: "flex-start",␊
gap: "10px",␊
position: "relative",␊
width: "311px",␊
height: "50px"␊
}␊
};␊
function __calc_style__(classnames, styleObj) {␊
Expand Down
Binary file modified __test__/index.spec.mjs.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-android-arm-eabi",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-android-arm64",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-darwin-arm64",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-universal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-darwin-universal",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-darwin-x64",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"darwin"
],
Expand Down
3 changes: 0 additions & 3 deletions npm/freebsd-x64/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions npm/freebsd-x64/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-linux-arm-gnueabihf",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-linux-arm64-gnu",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-linux-arm64-musl",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-linux-x64-gnu",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/parse-css-to-stylesheet-linux-x64-musl",
"version": "0.0.7",
"version": "0.0.8",
"os": [
"linux"
],
Expand Down
Loading

0 comments on commit 585d7a7

Please sign in to comment.