Skip to content

Commit

Permalink
Merge branch 'main' into feat/starter-example
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Dec 28, 2024
2 parents 0c41dbe + 0e7975b commit c6bcd51
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 21 deletions.
1 change: 0 additions & 1 deletion .github/workflows/compressed-size-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- uses: preactjs/compressed-size-action@v2
with:
pattern: './dist/**/*.{js,mjs}'
4 changes: 2 additions & 2 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpx pkg-pr-new publish './dist' --compact --template './examples/*'
- run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'
3 changes: 1 addition & 2 deletions .github/workflows/lint-and-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm test:format
- run: pnpm test:types
- run: pnpm test:lint
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm test
- run: pnpm build
- run: npm publish
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-multiple-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm build
- name: Patch for DEV-ONLY
if: ${{ matrix.env == 'development' }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test-multiple-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm build # we don't have any other workflows to test build
- run: pnpm test:spec

Expand All @@ -41,8 +40,7 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm build # for macro test
- name: Install legacy testing-library
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-old-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm build
- name: Patch for all TS
run: |
Expand Down
2 changes: 2 additions & 0 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"preview": "vite preview"
},
"dependencies": {
"@types/lowlight": "^0.0.7",
"highlight.js": "^11.11.0",
"lowlight": "^3.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-lowlight": "^3.0.1",
Expand Down
35 changes: 35 additions & 0 deletions examples/counter/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions website/styles/prism-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ pre {
}

:not(pre) > code[class*="language-"],
code {
pre[class*="language-"] {
background: #2e3440;
padding: 1em;
}

code:not([class*="language-"]) {
padding: 0.1em 0.3em;
background: #2e3440;
padding: 0.1em;
}

code {
Expand Down Expand Up @@ -164,7 +169,3 @@ blockquote {
.important {
border-left: 5px solid #a3be8c;
}

code {

}

0 comments on commit c6bcd51

Please sign in to comment.