Skip to content

Commit c0ff96f

Browse files
committed
Add test code
1 parent 5445e78 commit c0ff96f

38 files changed

+1745
-860
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [
11+
"next-example"
12+
]
13+
}

.changeset/shy-yaks-warn.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@devup-ui/webpack-plugin": minor
3+
"@devup-ui/wasm": minor
4+
"@devup-ui/next-plugin": minor
5+
"@devup-ui/react": minor
6+
---
7+
8+
Deploy

.github/workflows/check-pr.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
check:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- uses: actions-rust-lang/setup-rust-toolchain@v1
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
cache: 'pnpm'
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- uses: pnpm/action-setup@v4
24+
name: Install pnpm
25+
with:
26+
version: 9
27+
run_install: false
28+
- run: pnpm i
29+
- run: |
30+
pnpm build
31+
pnpm lint
32+
pnpm test

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Package to npm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: false
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- uses: actions-rust-lang/setup-rust-toolchain@v1
18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
version: 9
22+
run_install: false
23+
- name: Install Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
registry-url: "https://registry.npmjs.org"
27+
node-version: 22
28+
cache: 'pnpm'
29+
- run: pnpm i
30+
- run: |
31+
pnpm build
32+
pnpm lint
33+
pnpm test
34+
- name: Create Release Pull Request or Publish to npm
35+
id: changesets
36+
uses: changesets/action@v1
37+
with:
38+
publish: pnpm publish --access=public
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ build
33
dist
44
node_modules
55
target
6+
*.*.timestamp-*
7+
coverage

Cargo.lock

Lines changed: 32 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "next",
2+
"name": "next-example",
33
"version": "0.1.0",
44
"type": "module",
55
"private": true,

bindings/devup-ui-wasm/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-ui/wasm",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"keywords": [
55
"react",
66
"css-in-js",
@@ -9,7 +9,10 @@
99
"design-system"
1010
],
1111
"files": [
12-
"pkg"
12+
"pkg/index.d.ts",
13+
"pkg/index.js",
14+
"pkg/index_bg.wasm",
15+
"pkg/index_bg.wasm.d.ts"
1316
],
1417
"type": "module",
1518
"exports": {

0 commit comments

Comments
 (0)