Skip to content

Commit daf287a

Browse files
committed
chore(ci): add spdx license headers
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES SPDX-License-Identifier: Apache-2.0 Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent a5ea211 commit daf287a

File tree

1,426 files changed

+5234
-8230
lines changed

Some content is hidden

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

1,426 files changed

+5234
-8230
lines changed

.claude/settings.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
"mcp__elements__packages_list",
1818
"mcp__elements__packages_get",
1919
"mcp__elements__packages_changelogs_get",
20-
"mcp__MaaS-GitLab__gitlab_list_pipelines_jobs",
21-
"mcp__MaaS-GitLab__gitlab_list_issues",
22-
"mcp__MaaS-GitLab__gitlab_get_issue",
2320
"WebFetch(domain:code.claude.com)"
2421
]
2522
},
26-
"enabledMcpjsonServers": ["elements"],
23+
"enabledMcpjsonServers": [
24+
"elements"
25+
],
2726
"hooks": {
2827
"SessionStart": [
2928
{

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
ci:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
with:
16+
fetch-depth: 0
17+
lfs: true
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
run_install: false
21+
- uses: actions/setup-node@v6
22+
with:
23+
node-version-file: './.nvmrc'
24+
registry-url: 'https://registry.npmjs.org'
25+
cache: 'pnpm'
26+
# - uses: google/wireit@setup-github-actions-caching/v2
27+
- run: pnpm install --frozen-lockfile
28+
- run: pnpm exec playwright install --with-deps chromium
29+
- name: Run CI checks
30+
env:
31+
ELEMENTS_PAGES_BASE_URL: ${{vars.ELEMENTS_PAGES_BASE_URL}}
32+
ELEMENTS_REGISTRY_URL: ${{vars.ELEMENTS_REGISTRY_URL}}
33+
ELEMENTS_REPO_BASE_URL: ${{vars.ELEMENTS_REPO_BASE_URL}}
34+
run: PAGES_BASE_URL="/elements/" pnpm run ci && PAGES_BASE_URL="/elements/" node ./projects/internals/ci/cache-validate.js ci
35+
- name: Upload build artifacts
36+
if: github.event_name == 'push'
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: build-artifacts
40+
retention-days: 1
41+
path: |
42+
projects/core/dist
43+
projects/core/package.json
44+
projects/forms/dist
45+
projects/forms/package.json
46+
projects/styles/dist
47+
projects/styles/package.json
48+
projects/themes/dist
49+
projects/themes/package.json
50+
projects/lint/dist
51+
projects/lint/package.json
52+
projects/cli/dist
53+
projects/cli/package.json
54+
projects/code/dist
55+
projects/code/package.json
56+
projects/create/dist
57+
projects/create/package.json
58+
projects/markdown/dist
59+
projects/markdown/package.json
60+
projects/media/dist
61+
projects/media/package.json
62+
projects/monaco/dist
63+
projects/monaco/package.json
64+
projects/pages/dist
65+
- name: Upload pages artifact
66+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
67+
uses: actions/upload-pages-artifact@v4
68+
with:
69+
path: projects/pages/dist
70+
71+
lighthouse:
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v6
75+
with:
76+
fetch-depth: 0
77+
lfs: true
78+
- uses: pnpm/action-setup@v4
79+
with:
80+
run_install: false
81+
- uses: actions/setup-node@v6
82+
with:
83+
node-version-file: './.nvmrc'
84+
registry-url: 'https://registry.npmjs.org'
85+
cache: 'pnpm'
86+
# - uses: google/wireit@setup-github-actions-caching/v2
87+
- run: pnpm install --frozen-lockfile
88+
- run: pnpm exec playwright install --with-deps chromium
89+
- name: Run Lighthouse tests
90+
run: WIREIT_FAILURES=kill pnpm run lighthouse && node ./projects/internals/ci/cache-validate.js lighthouse && node ./projects/internals/ci/metrics.lighthouse.js
91+
92+
release:
93+
needs: ci
94+
if: github.event_name == 'push'
95+
runs-on: ubuntu-latest
96+
permissions:
97+
issues: write
98+
deployments: write
99+
pull-requests: write
100+
contents: write
101+
id-token: write
102+
steps:
103+
- uses: actions/checkout@v6
104+
with:
105+
fetch-depth: 0
106+
lfs: true
107+
ref: main
108+
- uses: pnpm/action-setup@v4
109+
with:
110+
run_install: false
111+
- uses: actions/setup-node@v6
112+
with:
113+
node-version-file: './.nvmrc'
114+
registry-url: 'https://registry.npmjs.org'
115+
cache: 'pnpm'
116+
- run: pnpm install --frozen-lockfile
117+
- name: Download build artifacts
118+
uses: actions/download-artifact@v8
119+
with:
120+
name: build-artifacts
121+
path: projects
122+
- name: Release
123+
env:
124+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
125+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
126+
run: WIREIT_PARALLEL=1 WIREIT_LOGGER=metrics pnpm run release
127+
128+
deploy-pages:
129+
needs: ci
130+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
131+
runs-on: ubuntu-latest
132+
permissions:
133+
pages: write
134+
id-token: write
135+
environment:
136+
name: github-pages
137+
url: ${{steps.deployment.outputs.page_url}}
138+
concurrency:
139+
group: pages
140+
cancel-in-progress: false
141+
steps:
142+
- name: Deploy to GitHub Pages
143+
id: deployment
144+
uses: actions/deploy-pages@v5

CODE_OF_CONDUCT.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Overview
4+
5+
Define the code of conduct followed and enforced for Elements
6+
7+
### Intended audience
8+
9+
Community | Developers | Project Leads
10+
11+
## Our Pledge
12+
13+
In the interest of fostering an open and welcoming environment, we as
14+
contributors and maintainers pledge to making participation in our project and
15+
our community a harassment-free experience for everyone, regardless of age, body
16+
size, disability, ethnicity, sex characteristics, gender identity and expression,
17+
level of experience, education, socio-economic status, nationality, personal
18+
appearance, race, religion, or sexual identity and orientation.
19+
20+
## Our Standards
21+
22+
Examples of behavior that contributes to creating a positive environment
23+
include:
24+
25+
* Using welcoming and inclusive language
26+
* Being respectful of differing viewpoints and experiences
27+
* Gracefully accepting constructive criticism
28+
* Focusing on what is best for the community
29+
* Showing empathy towards other community members
30+
31+
Examples of unacceptable behavior by participants include:
32+
33+
* The use of sexualized language or imagery and unwelcome sexual attention or
34+
advances
35+
* Trolling, insulting/derogatory comments, and personal or political attacks
36+
* Public or private harassment
37+
* Publishing others' private information, such as a physical or electronic
38+
address, without explicit permission
39+
* Other conduct which could reasonably be considered inappropriate in a
40+
professional setting
41+
42+
## Our Responsibilities
43+
44+
Project maintainers are responsible for clarifying the standards of acceptable
45+
behavior and are expected to take appropriate and fair corrective action in
46+
response to any instances of unacceptable behavior.
47+
48+
Project maintainers have the right and responsibility to remove, edit, or
49+
reject comments, commits, code, wiki edits, issues, and other contributions
50+
that are not aligned to this Code of Conduct, or to ban temporarily or
51+
permanently any contributor for other behaviors that they deem inappropriate,
52+
threatening, offensive, or harmful.
53+
54+
## Scope
55+
56+
This Code of Conduct applies both within project spaces and in public spaces
57+
when an individual is representing the project or its community. Examples of
58+
representing a project or community include using an official project e-mail
59+
address, posting via an official social media account, or acting as an appointed
60+
representative at an online or offline event. Representation of a project may be
61+
further defined and clarified by project maintainers.
62+
63+
## Enforcement
64+
65+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
66+
reported by contacting <GitHub_Conduct@nvidia.com>. All complaints will be reviewed and
67+
investigated and will result in a response that is deemed necessary and appropriate
68+
to the circumstances. The project team is obligated to maintain confidentiality with
69+
regard to the reporter of an incident. Further details of specific enforcement policies
70+
may be posted separately.
71+
72+
Project maintainers who do not follow or enforce the Code of Conduct in good
73+
faith may face temporary or permanent repercussions as determined by other
74+
members of the project's leadership.
75+
76+
## Attribution
77+
78+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
79+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
80+
81+
[homepage]: https://www.contributor-covenant.org
82+
83+
For answers to common questions about this code of conduct, see
84+
<https://www.contributor-covenant.org/faq>

CONTRIBUTING.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Developer Certificate of Origin
2+
3+
All contributions to this project must adhere to the requirements of the [Developer Certificate of Origin](https://developercertificate.org/).
4+
5+
## Signing Your Work
6+
7+
We require that all contributors sign-off on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license. Any contribution which contains commits that do not have the Signed-off-by trailer will not be accepted.
8+
9+
To sign off on a commit you must use the `--signoff` (or `-s`) option when committing your change:
10+
``` shell
11+
git commit -s -m "feat: Add some feature."
12+
```
13+
14+
This will append the following trailer to your commit message:
15+
``` text
16+
Signed-off-by: Your Name <yourname@example.com>
17+
```
18+
19+
---
20+
21+
Developer Certificate of Origin
22+
Version 1.1
23+
24+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
25+
26+
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
27+
28+
Developer's Certificate of Origin 1.1
29+
30+
By making a contribution to this project, I certify that:
31+
32+
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
33+
34+
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
35+
36+
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
37+
38+
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

0 commit comments

Comments
 (0)