Skip to content

Commit 58fddc0

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 92e716a commit 58fddc0

1,430 files changed

Lines changed: 5323 additions & 7974 deletions

File tree

Some content is hidden

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

.claude/settings.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
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+
],
26+
"enabledPlugins": {
27+
"frontend-design@claude-plugins-official": false
28+
},
2729
"hooks": {
2830
"SessionStart": [
2931
{

.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: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
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: Write CI job summary
36+
if: always()
37+
run: node ./projects/internals/ci/ci-summary.js >> "$GITHUB_STEP_SUMMARY"
38+
- name: Upload build artifacts
39+
if: github.event_name == 'push'
40+
uses: actions/upload-artifact@v7
41+
with:
42+
name: build-artifacts
43+
retention-days: 1
44+
path: |
45+
projects/core/dist
46+
projects/core/package.json
47+
projects/forms/dist
48+
projects/forms/package.json
49+
projects/styles/dist
50+
projects/styles/package.json
51+
projects/themes/dist
52+
projects/themes/package.json
53+
projects/lint/dist
54+
projects/lint/package.json
55+
projects/cli/dist
56+
projects/cli/package.json
57+
projects/code/dist
58+
projects/code/package.json
59+
projects/create/dist
60+
projects/create/package.json
61+
projects/markdown/dist
62+
projects/markdown/package.json
63+
projects/media/dist
64+
projects/media/package.json
65+
projects/monaco/dist
66+
projects/monaco/package.json
67+
projects/pages/dist
68+
- name: Upload pages artifact
69+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
70+
uses: actions/upload-pages-artifact@v5
71+
with:
72+
path: projects/pages/dist
73+
74+
lighthouse:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v6
78+
with:
79+
fetch-depth: 0
80+
lfs: true
81+
- uses: pnpm/action-setup@v4
82+
with:
83+
run_install: false
84+
- uses: actions/setup-node@v6
85+
with:
86+
node-version-file: './.nvmrc'
87+
registry-url: 'https://registry.npmjs.org'
88+
cache: 'pnpm'
89+
# - uses: google/wireit@setup-github-actions-caching/v2
90+
- run: pnpm install --frozen-lockfile
91+
- run: pnpm exec playwright install --with-deps chromium
92+
- name: Run Lighthouse tests
93+
run: WIREIT_FAILURES=kill pnpm run lighthouse && node ./projects/internals/ci/cache-validate.js lighthouse && node ./projects/internals/ci/metrics.lighthouse.js
94+
- name: Write lighthouse job summary
95+
if: always()
96+
run: node ./projects/internals/ci/lighthouse-summary.js >> "$GITHUB_STEP_SUMMARY"
97+
98+
release:
99+
needs: ci
100+
if: github.event_name == 'push'
101+
runs-on: ubuntu-latest
102+
permissions:
103+
issues: write
104+
deployments: write
105+
pull-requests: write
106+
contents: write
107+
id-token: write
108+
steps:
109+
- uses: actions/checkout@v6
110+
with:
111+
fetch-depth: 0
112+
lfs: true
113+
ref: main
114+
# Use RELEASE_TOKEN so the persisted git credentials match the token
115+
# semantic-release pushes with — otherwise the default GITHUB_TOKEN's
116+
# http.extraheader overrides @semantic-release/git's push auth.
117+
token: ${{secrets.RELEASE_TOKEN}}
118+
- uses: pnpm/action-setup@v4
119+
with:
120+
run_install: false
121+
- uses: actions/setup-node@v6
122+
with:
123+
node-version-file: './.nvmrc'
124+
registry-url: 'https://registry.npmjs.org'
125+
cache: 'pnpm'
126+
- run: pnpm install --frozen-lockfile
127+
- name: Download build artifacts
128+
uses: actions/download-artifact@v8
129+
with:
130+
name: build-artifacts
131+
path: projects
132+
- name: Release
133+
env:
134+
# RELEASE_TOKEN must be a PAT or GitHub App token with contents:write and
135+
# bypass permission for main's branch protection rules. The default
136+
# GITHUB_TOKEN cannot push tags/release commits to a protected branch.
137+
GITHUB_TOKEN: ${{secrets.RELEASE_TOKEN}}
138+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
139+
run: WIREIT_PARALLEL=1 WIREIT_LOGGER=metrics pnpm run release
140+
141+
deploy-pages:
142+
needs: ci
143+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
144+
runs-on: ubuntu-latest
145+
permissions:
146+
pages: write
147+
id-token: write
148+
environment:
149+
name: github-pages
150+
url: ${{steps.deployment.outputs.page_url}}
151+
concurrency:
152+
group: pages
153+
cancel-in-progress: false
154+
steps:
155+
- name: Deploy to GitHub Pages
156+
id: deployment
157+
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)