Skip to content

Update to v4.9.0 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ PureScript bindings for [`react-icons`](https://react-icons.github.io/react-icon

> Include popular icons in your React projects easily with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.

Tested with react-icons `v4.7.1`.
Tested with react-icons `v4.9.0`.

## Installation

```shell
npm install --save react-icons@4.7.1
npm install --save react-icons@4.9.0
spago install react-icons
```

Expand Down Expand Up @@ -58,3 +58,7 @@ All icons and a search can be found on the [`react-icons` project website](https
- [VS Code Icons](https://github.com/microsoft/vscode-codicons) ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/))
- [Weather Icons](https://erikflowers.github.io/weather-icons/) ([SIL OFL 1.1](http://scripts.sil.org/OFL))
- [css.gg](https://github.com/astrit/css.gg) ([MIT](https://opensource.org/licenses/MIT))

## Development

[Release and update a new version](./RELEASE.md)
19 changes: 14 additions & 5 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Release

* Commit all changes
* `spago bump-version patch --no-dry-run`
* `git push --follow-tags`
* `pulp login`
* `pulp publish`
## Update

- Change react-icons version `sed -i 's/4.7.1/4.9.0/g' README.md package.json`
- `npm install`
- `npm run codegen`
- `npm run build`

## Release new version

- Commit all changes
- `spago bump-version patch --no-dry-run`
- `git push --follow-tags`
- `pulp login`
- `pulp publish`
4 changes: 2 additions & 2 deletions codegen/codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ command -v "sort" >/dev/null 2>&1 || {

dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
libDir="$dir/../node_modules/react-icons"
allLibsFile="$libDir/all.d.ts"

[ -d "$libDir" ] || {
echo "Error: react-icons dependency not installed" && exit 1
Expand All @@ -42,7 +41,8 @@ toJavaScript() {
outputJs+="\n"
}

libs=$(sed -nr "s/export \* from '\.\/([a-z0-9]+)';/\1/p" "$allLibsFile" | sort -u)
libs=$(ls -1p "$libDir" | grep / | sed 's/^\(.*\)\//\1/' | sort -u)
libs=${libs[*]//lib/}

for lib in $libs; do
echo "Generating $lib icons ..."
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"codegen": "codegen/codegen.sh"
},
"dependencies": {
"react-icons": "^4.7.1"
"react-icons": "^4.9.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.7-20230216/packages.dhall
sha256:8d4dc43ba920e029cfc39c122201ed821b37ad1c22bc115ab283bd9fab949eba
https://github.com/purescript/package-sets/releases/download/psc-0.15.8-20230616/packages.dhall
sha256:d15d99463bdce08f78a80bd8cde1fadb2ce1b490eb53924adf44215713f1a1a5

in upstream
57 changes: 57 additions & 0 deletions src/React/Icons/Bi.js

Large diffs are not rendered by default.

Loading