Comparing version 0.4.9 to 0.4.10
# CHANGELOG | ||
## 🚀 v0.4.10 | ||
- 🔨 Export string array of icon names and generate type union from it (#13) | ||
## 🚀 v0.4.9 | ||
@@ -4,0 +8,0 @@ |
@@ -109,5 +109,6 @@ var __create = Object.create; | ||
component += ` | ||
export type IconName = | ||
${icons.map((icon) => ` | "${icon}"`).join("\n")} | ||
`; | ||
export const iconNames = [ | ||
${icons.map((icon) => ` "${icon}",`).join("\n")} | ||
] as const; | ||
export type IconName = typeof iconNames[number];`; | ||
icons.forEach((icon) => console.log(`\u2705 ${icon}`)); | ||
@@ -114,0 +115,0 @@ if (namedComponents) { |
{ | ||
"name": "rmx-cli", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "A CLI for remix-run", | ||
@@ -5,0 +5,0 @@ "author": "Michael J. Carter <kiliman@gmail.com> (https://kiliman.dev/)", |
# rmx-cli | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
@@ -36,3 +38,3 @@ | ||
React component. The typed `IconNames` and exported components will be be appended to this | ||
template file. | ||
template file. An array of icon names is also exported: `export const iconNames = ["..."] as const` | ||
@@ -238,2 +240,3 @@ Here's a sample template file: | ||
<td align="center"><a href="https://github.com/andrewcohen"><img src="https://avatars.githubusercontent.com/u/1016046?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Cohen</b></sub></a><br /><a href="https://github.com/Kiliman/rmx-cli/commits?author=andrewcohen" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/courdek"><img src="https://avatars.githubusercontent.com/u/319738?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Coppola</b></sub></a><br /><a href="https://github.com/Kiliman/rmx-cli/commits?author=courdek" title="Code">💻</a></td> | ||
</tr> | ||
@@ -240,0 +243,0 @@ </table> |
39089
640
249