generated from web-illinois/toolkit-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31155be
commit bbc9b3a
Showing
14 changed files
with
71 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
.idea/ | ||
/package-lock.json | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,28 @@ | ||
# Toolkit Template | ||
# ilw-icon | ||
|
||
Repository template for creating a new Web Component, specifically | ||
tailored to be part of the | ||
[Web at Illinois](https://github.com/web-illinois) Web Implementation | ||
Guidelines Group (WIGG) [Toolkit](https://github.com/web-illinois/toolkit-management). | ||
Links: **[ilw-icon in Builder](https://builder3.toolkit.illinois.edu/component/ilw-icon/index.html)** | | ||
[Illinois Web Theme](https://webtheme.illinois.edu/) | | ||
[Toolkit Development](https://github.com/web-illinois/toolkit-management) | ||
|
||
## How To Use | ||
## Overview | ||
|
||
> [!IMPORTANT] | ||
> Follow the [steps in the toolkit-management documentation](https://github.com/web-illinois/toolkit-management/blob/main/documentation/README.md) | ||
> to contribute a component to the toolkit. | ||
A 1-3 paragraph explanation of what the component does and how it presents. | ||
|
||
## How this template works | ||
## Code Examples | ||
|
||
The content that will be in the resulting repository is templated under | ||
the [`template`](./template) directory. The templating is configured | ||
in [`index.js`](./index.js), and uses a simple scaffolding tool called | ||
[CAZ](https://github.com/zce/caz). | ||
```html | ||
<ilw-icon></ilw-icon> | ||
``` | ||
|
||
There is a [templating GitHub Workflow](./.github/workflows/templating.yml) in this | ||
repository that's configured to run only once when the template is used. | ||
That workflow executes CAZ to scaffold the repository to the proper contents | ||
with the naming determined by the new repository's name. | ||
## Accessibility Notes and Use | ||
|
||
CAZ accepts input using "prompts", which can be specified in the command | ||
line invocation of the tool. The workflow specifies the values to those | ||
prompts, and CAZ takes care of the rest. | ||
Consider accessibility, both for building the component and for its use: | ||
|
||
Finally, the workflow commits the changes to the new repository. This usually | ||
takes less than 10 seconds. Once done, the repository is ready to be worked on. | ||
|
||
## Developing this template | ||
|
||
### Adding files | ||
|
||
New files can be added to the [`template`](./template) directory, and they | ||
are automatically picked up. | ||
|
||
- Substitutions in file names happen with curly braces, `{variable}` | ||
- Inside files, [lodash](https://lodash.com/docs#template) templates are used, | ||
which uses `<%= variable %>` as delimiters. | ||
|
||
> [!NOTE] | ||
> GitHub Workflows cannot be templated, and so must be entirely dynamic | ||
> and contained in the main [`.github/workflows`](./.github/workflows) directory. | ||
### Adding Variables | ||
|
||
If additional variables are needed, they must be added in two locations: | ||
|
||
1. In [`index.js`](./index.js) as prompts. | ||
2. In the [workflow](./.github/workflows/templating.yml), they need to be | ||
given values as arguments for the `caz` command. | ||
- Is there sufficient color contrast? | ||
- Can the component be fully understood without colors? | ||
- Does the component need alt text or ARIA roles? | ||
- Can the component be navigated with a keyboard? Is the tab order correct? | ||
- Are focusable elements interactive, and interactive elements focusable? | ||
- Are form fields, figures, fieldsets and other interactive elements labelled? | ||
|
||
## External References |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
.../builder/versions/{name}.1.0.0-alpha.json → builder/versions/ilw-icon.1.0.0-alpha.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters