Skip to content

Commit 1850ce0

Browse files
committed
chore: initial commit
Setup the project.
0 parents  commit 1850ce0

23 files changed

+4251
-0
lines changed

.changeset/config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "davejsdev/cssom-gen" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main"
9+
}

.github/ISSUE_TEMPLATE/01_spec.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Specification Issue
2+
description: This library doesn’t match the W3C specification.
3+
title: 📝 Spec Issue
4+
labels:
5+
- bug
6+
- spec
7+
- triage
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
You’re opening an issue because this library diverges from the [CSSOM API Specification](https://www.w3.org/TR/cssom-1/).
13+
14+
Since this library expands on the specification, these issues should specifically be identifying _conflicts_ with the specification. Additional functionality is the intent of this library, so they are not specification issues.
15+
- type: textarea
16+
id: output
17+
attributes:
18+
label: API Differences
19+
description: What did this library produce? What were you expecting?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: notes
24+
attributes:
25+
label: Notes
26+
description: Any other additional information or comments?
27+
- type: checkboxes
28+
id: checkboxes
29+
attributes:
30+
label: Contributing
31+
options:
32+
- label: I am willing to open a Pull Request

.github/ISSUE_TEMPLATE/02_bug.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Bug Report
2+
description: I encountered an error when using this library that is NOT specification related
3+
title: 🐛 Bug
4+
labels:
5+
- bug
6+
- triage
7+
body:
8+
- type: textarea
9+
id: output
10+
attributes:
11+
label: Output
12+
description: What is the error message or output you received?
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: expected
17+
attributes:
18+
label: Expected
19+
description: What were you expecting?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: notes
24+
attributes:
25+
label: Notes
26+
description: Any other additional information or comments?
27+
- type: checkboxes
28+
id: checkboxes
29+
attributes:
30+
label: Contributing
31+
options:
32+
- label: I am willing to open a Pull Request
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: ✨ Feature
3+
about: Proposing additional functionality for cssom-gen
4+
labels:
5+
- feature
6+
- triage
7+
---
8+
9+
## Proposal
10+
11+
### Summary
12+
13+
<!-- Give a short summary of your proposed feature in a few sentences. -->
14+
15+
### Detail
16+
17+
<!-- What are the advantages of this? How does this work in detail? -->
18+
19+
### Example
20+
21+
<!-- Give an example usage of this feature (pseudocode is OK). -->
22+
23+
## Tradeoffs / breaking changes
24+
25+
<!-- What would accepting this feature take away? Would this cause any breaking changes? -->
26+
27+
## Alternatives considered
28+
29+
<!-- What are the alternatives to your feature you considered? -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Changes
2+
3+
<!-- What does this PR change? Link to any related issue(s). -->
4+
5+
## How to Review
6+
7+
<!-- How can a reviewer review your changes? What should be kept in mind for this review? -->
8+
9+
## Checklist
10+
11+
- [ ] Unit tests updated
12+
- [ ] Changelog updated

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ci-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
run_install: true
24+
- run: pnpm run lint
25+
test-node-versions:
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
node-version: [20, 22, 24]
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
- uses: pnpm/action-setup@v4
36+
with:
37+
run_install: true
38+
- run: pnpm run build
39+
- run: pnpm exec playwright install
40+
- run: pnpm test
41+
test-macos:
42+
runs-on: macos-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-node@v4
46+
with:
47+
node-version: 24
48+
- uses: pnpm/action-setup@v4
49+
with:
50+
run_install: true
51+
- run: pnpm run build
52+
- run: pnpm exec playwright install
53+
- run: pnpm test
54+
test-windows:
55+
runs-on: windows-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: actions/setup-node@v4
59+
with:
60+
node-version: 24
61+
- uses: pnpm/action-setup@v4
62+
with:
63+
run_install: true
64+
- run: pnpm run build
65+
- run: pnpm exec playwright install
66+
- run: pnpm test

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
changelog:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 24
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
run_install: true
22+
- run: pnpm run build
23+
- uses: changesets/action@v1
24+
with:
25+
version: pnpm run version
26+
publish: pnpm exec changeset publish
27+
commit: "[ci] release"
28+
title: "[ci] release"
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/*.config.*
2+
.changeset
3+
.github
4+
.nvmrc
5+
.vscode
6+
biome.json
7+
tsconfig.*
8+
scripts
9+
src
10+
test

0 commit comments

Comments
 (0)