Sigurd Spieckermann
e58dc74d30
add "exports" for SVG files ( #7241 )
...
Co-authored-by: Sachin Raja <sachinraja2349@gmail.com>
2022-03-19 07:19:49 -07:00
Álvaro Mondéjar
9b823a427f
Add funding
key to package.json ( #7218 )
2022-03-14 14:26:40 +01:00
github-actions[bot]
d362dbbab9
version bump
2022-03-13 00:18:49 +00:00
github-actions[bot]
7d5d8236bc
version bump
2022-03-06 00:18:30 +00:00
github-actions[bot]
a1f29ca7aa
version bump
2022-02-27 00:19:42 +00:00
github-actions[bot]
ea8e05550d
version bump
2022-02-20 00:20:37 +00:00
renovate[bot]
ebbc9dea2a
Update all dependencies ( #7146 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 16:09:00 -08:00
github-actions[bot]
d54b71ddc7
version bump
2022-02-13 00:16:37 +00:00
github-actions[bot]
a89f126550
version bump
2022-02-06 00:18:29 +00:00
github-actions[bot]
376a4bb6b7
version bump
2022-01-30 00:14:36 +00:00
Sachin Raja
d49492f1ef
switch from uvu to mocha ( #7071 )
...
* switch from uvu to mocha
* remove unused import
* custom min reporter
* use constants
2022-01-19 18:23:32 +01:00
github-actions[bot]
132fcc2d9b
version bump
2022-01-16 00:15:49 +00:00
github-actions[bot]
690b9c67ca
version bump
2022-01-09 00:15:28 +00:00
github-actions[bot]
2309e4c43c
version bump
2022-01-02 00:15:06 +00:00
renovate[bot]
bdae801317
Update all dependencies ( #6986 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-27 04:13:04 +01:00
github-actions[bot]
09b22d010a
version bump
2021-12-26 00:15:39 +00:00
Sachin Raja
a930dc57ec
convert scripts to esm ( #6946 )
...
* convert scripts to esm
* fix tests
* fix tests
* fix lints
* syncFs to fsSync
* named export for fs
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com>
* fsSync to { promises as fs }
* convert update-svgs-count to esm
* rename data to icons
* fix build script
* switch svglintrc file to mjs
* use node: protocol
* pluralize getIcons
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com>
2021-12-25 06:22:56 -08:00
Eric Cornelissen
2c351f6452
Upgrade SVGLint dependency ( #6970 )
...
* Upgrade svglint from 1.3.0 to 2.0.0
* Update minimum required NodeJS version for local testing
In accordance with the new minimum required NodeJS version for SVGLint:
2d242fe57a/package.json (L52)
* Update CONTRIBUTING.md
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com>
2021-12-21 19:14:29 +01:00
github-actions[bot]
f9c14cbc86
version bump
2021-12-19 00:14:55 +00:00
renovate[bot]
2a8cea5a72
Update all dependencies ( #6962 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 10:30:52 +01:00
github-actions[bot]
adf7db7121
version bump
2021-12-12 00:14:40 +00:00
github-actions[bot]
9020eb4a81
version bump
2021-12-05 00:14:47 +00:00
Álvaro Mondéjar
ebbd39bd32
Enforce <svg>
node alphabetical attributes ordering ( #6930 )
2021-12-01 15:03:52 -08:00
renovate[bot]
4beea3a1b1
Update all dependencies ( #6922 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-29 10:37:52 +01:00
Sachin Raja
a14e03cf7a
Switch testing framework from jest to uvu ( #6915 )
...
* switch from jest to uvu
* remove jest config
* convert index.test.js to uvu
* use assert.type
* Get rid of jest-diff
* Remove uneeded splits
* remove out.txt
* switch to fake-diff
2021-11-29 09:44:36 +01:00
Álvaro Mondéjar
67825e3d6e
Bump named-html-entities-json
to stable version ( #6921 )
2021-11-28 14:16:54 -08:00
github-actions[bot]
47eb472a12
version bump
2021-11-28 00:14:17 +00:00
LitoMore
1fc838517a
Avoid CRLF in SVGs ( #6880 )
2021-11-25 09:08:34 +01:00
Sachin Raja
8010341b97
make building async and minify with esbuild ( #6898 )
...
* make building async and minify with esbuild
* switch from fs/promises to fs.promises
* cleanup fs.promises
* fix conflicts
* fix conflicts
* revert test file changes
2021-11-24 03:01:24 +01:00
github-actions[bot]
a94f8dd1cf
version bump
2021-11-21 00:13:11 +00:00
github-actions[bot]
9234fd26ae
version bump
2021-11-14 00:13:13 +00:00
Sachin Raja
7c8146e475
refactor: reorganize tests, reduce repetition ( #6829 )
...
* refactor: reorganize tests, reduce repetition
* fix conflicts
* fix conflicts
* remove unnecessary type checks and use toStrictEqual
* move index tests to separate file
* test svg values in testIcon
2021-11-08 11:55:47 +01:00
github-actions[bot]
2cbce346f7
version bump
2021-11-07 00:12:58 +00:00
Eric Cornelissen
3fdcb11536
Add prepare script that installs husky ( #6805 )
2021-10-31 06:33:36 -07:00
Eric Cornelissen
cc9ee3f853
version bump
...
Patch installation failure due to postinstall script
2021-10-31 11:37:18 +01:00
github-actions[bot]
f31abe30dc
version bump
2021-10-31 00:13:02 +00:00
Sachin Raja
1a77d28227
export bundled icons from one entry point and add types ( #6767 )
...
* export all icons from a single file (#6189 )
* fix: revert formatting, add exports to package.json
* feat: generate icons.js and add relevant exports field
* add minifyAndWrite
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* fix: minifyAndWrite build
* add type: commonjs
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* simplify exports
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* add "require" in exports
* place objects directly in barrel file
* write exports minified
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* fix formatting
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* refactor slugToVariableName code into a function
* fix slugToVariableName
* change prefix to "si"
* move slugToVariableName to local helper functions
* unignore icons.js and icons.mjs
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* feat: add types (#6580 )
* feat: add types
* fix linting error
* export default from types/index.d.ts
* minify
* revert formatting changes
* revert formatting change
* change paths from types/index.d.ts to index.d.ts
* mark icons.get as deprecated
* move type alias to another file
* update readme
* update readme.md
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* update typescript usage section
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* fix conflicts
* Apply suggestions from code review
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
* add writeTs function
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-10-28 16:16:34 -07:00
Eric Cornelissen
e0df400494
Setup prettier ( #6758 )
...
* Add prettier as a dependency
* Add format command and configure prettier
I opted for single quotes to be in line with other simple-icons projects
I ignore the data file because changing its formatting is quite a bit of
trouble for all open PRs.
* Run prettier
* Replace all functions by arrow functions
* Move prettier configuration to config file
Move it to a file so editors (and other software) can pick up on the
configuration. I went with .js because (a) it allows for comments and
(2) it seems most of the config files are in JavaScript already.
* Add prettier --check when running npm run lint (This adds it to the CI as well)
* Add husky and format changes before committing
* Use object destructuring for imports consistently
* Add shebang and fileoverview to jsonlint.js
2021-10-25 21:13:10 +02:00
github-actions[bot]
ad9170fb47
version bump
2021-10-24 00:13:25 +00:00
github-actions[bot]
4073e6dccc
version bump
2021-10-17 00:12:29 +00:00
renovate[bot]
20e7c258aa
Update all dependencies ( #6706 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-10 20:53:19 -07:00
github-actions[bot]
a33cd9c8eb
version bump
2021-10-10 00:12:46 +00:00
github-actions[bot]
8eb69b42ac
version bump
2021-10-03 00:13:29 +00:00
Álvaro Mondéjar
f726999af2
Unify SVGs for HTML safe titles reporting encoding errors in linting ( #6522 )
...
* Basic implementation
* Fix error
* Update icons
* Tweak implementation
* Minor changes
* Apply suggested changes
* Don't encode 34 and 39 codepoints (double and single quotes)
* Fix comments
2021-10-02 16:46:07 +02:00
renovate[bot]
466b58f6fe
Update all dependencies ( #6603 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 10:02:10 +02:00
github-actions[bot]
2b34541d75
version bump
2021-09-26 00:12:26 +00:00
github-actions[bot]
7185e4f994
version bump
2021-09-19 00:12:08 +00:00
github-actions[bot]
c4cbdd82be
version bump
2021-09-12 00:12:27 +00:00
github-actions[bot]
babc9a1dcc
version bump
2021-09-05 00:11:40 +00:00
Álvaro Mondéjar
7728aad8a8
Add cross platform support for 'clean' script ( #6450 )
2021-09-02 09:50:22 +02:00