Skip to content

Commit d9dbf56

Browse files
authored
Merge pull request #161 from get-convex/component-api
Component api
2 parents 5bef7de + 493caaa commit d9dbf56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3757
-11005
lines changed

.github/workflows/node.js.yml

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

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test and lint
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
4+
cancel-in-progress: true
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: ["**"]
11+
12+
jobs:
13+
check:
14+
name: Test and lint
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 30
17+
18+
steps:
19+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
20+
21+
- name: Node setup
22+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
23+
with:
24+
cache-dependency-path: package.json
25+
node-version: "20.x"
26+
cache: "npm"
27+
28+
- name: Install and build
29+
run: |
30+
npm i
31+
npm run build
32+
- name: Publish package for testing branch
33+
run: npx pkg-pr-new publish || echo "Have you set up pkg-pr-new for this repo?"
34+
- name: Test
35+
run: |
36+
npm run test
37+
npm run typecheck
38+
npm run lint

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ dist-ssr
99
explorations
1010
node_modules
1111
.eslintcache
12-
# components are libraries!
13-
.package-lock.json
12+
*.tsbuildinfo
1413

15-
# this is a package-json-redirect stub dir, see https://github.com/andrewbranch/example-subpath-exports-ts-compat?tab=readme-ov-file
16-
frontend/package.json
1714
# npm pack output
1815
*.tgz

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"trailingComma": "es5"
2+
"trailingComma": "all",
3+
"proseWrap": "always"
34
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.2.0
4+
5+
- Adds /test and /\_generated/component.js entrypoints
6+
- Drops commonjs support
7+
- Improves source mapping for generated files
8+
- Changes to a statically generated component API
9+
310
## 0.1.25
411

512
- Add batch API for "sum"

CONTRIBUTING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Developing guide
2+
3+
## Running locally
4+
5+
```sh
6+
npm i
7+
npm run dev
8+
```
9+
10+
## Testing
11+
12+
```sh
13+
npm run clean
14+
npm run build
15+
npm run typecheck
16+
npm run lint
17+
npm run test
18+
```
19+
20+
## Deploying
21+
22+
### Building a one-off package
23+
24+
```sh
25+
npm run clean
26+
npm ci
27+
npm pack
28+
```
29+
30+
### Deploying a new version
31+
32+
```sh
33+
npm run release
34+
```
35+
36+
or for alpha release:
37+
38+
```sh
39+
npm run alpha
40+
```

0 commit comments

Comments
 (0)