Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alaskaairlines/wc-generator
Auro's automated web component generator
https://github.com/alaskaairlines/wc-generator
auro custom-element design-system generator
Last synced: about 1 month ago
JSON representation
Auro's automated web component generator
- Host: GitHub
- URL: https://github.com/alaskaairlines/wc-generator
- Owner: AlaskaAirlines
- License: apache-2.0
- Created: 2019-06-05T19:34:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T18:21:08.000Z (2 months ago)
- Last Synced: 2024-10-31T09:18:01.710Z (about 2 months ago)
- Topics: auro, custom-element, design-system, generator
- Language: JavaScript
- Homepage: https://auro.alaskaair.com/getting-started/developers/generator/install
- Size: 1.74 MB
- Stars: 5
- Watchers: 10
- Forks: 9
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# WC-Generator
Auro's Design System web component generator is a project tool intended to assist developers with an easy to configure and execute HTML custom element development environment.
## Install
[![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/WC-Generator/testPublish.yml?branch=master&style=for-the-badge)](https://github.com/AlaskaAirlines/WC-Generator/actions/workflows/testPublish.yml)
[![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/wc-generator.svg?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/wc-generator)
[![License](https://img.shields.io/npm/l/@aurodesignsystem/wc-generator.svg?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
[![issues](https://img.shields.io/github/issues-raw/AlaskaAirlines/WC-Generator?style=for-the-badge)](https://github.com/AlaskaAirlines/WC-Generator/issues)## Execute
WC-Generator example use:
```
$ npx @aurodesignsystem/wc-generator --name [wc-name]
```### Minimum Node version
The WC-Generator requires a minimum install of Node.js `18.15.0`.
Be sure to check out our [getting started](https://auro.alaskaair.com/aurolabs/minors) page for helpful tips when starting a new project.
## UI development and browser support
For the most up to date information on UI development browser support, see [Auro Web Component Browser Support](https://auro.alaskaair.com/support/browsersSupport)
## Custom namespace support
When generating a new custom element using the Auro WC-Generator, you are not restricted to using the Auro namespace for your new element. The following example will crate the project, `@aurodesignsystem/auro-ticker`
```shell
$ npx @aurodesignsystem/wc-generator --name Auro-Ticker
```## Custom npm namespace support
By default, the WC-Generator will output a project that the custom element is for the `@aurodesignsystem` npm namespace. The following example illustrates how you can customize this to `@mynamespace/auro-ticker` for example.
```shell
$ npx @aurodesignsystem/wc-generator --name Auro-Ticker --npm @mynamespace
```## WC-Generator development API
| Command | Description |
| --- | --- |
| `build:test` | Will test the generate pipeline w/o the install process at `./auro-test`
| `build:complete` | Will build a new custom element with complete install process at `../auro-test`
| `sweep` | Will delete auro-test directory
| `test` | Runs `build:test`## Help and version management
For help with the WC-Generator API and to see what version you have installed, run `$ npx @aurodesignsystem/wc-generator --help`.
With each new repo created, the version of the generator will be added to the bottom of the `./README.md` file. As versions of the WC-Generator progress this will help authors to understand where the feature gap is.
```html
Built from WC-Generator v[genVersion]
```## Developing locally
To test changes to the generator, run `npm test` to generate an `auro-test` component.