Commit graph

300 commits

Author SHA1 Message Date
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
github-actions[bot] 2cfea3131c version bump 2021-08-29 00:11:40 +00:00
renovate[bot] 81344e6bd3
Update all dependencies (#6351)
* Update all dependencies

* Update SVGO configuration

SVGO v2.4.0 deprecated the old approach of extending default
plugins (using `extendDefaultPlugins`) and introduced a new
approach using the 'preset-default' plugin.


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-08-23 09:43:03 +02:00
Siddharth 12ca93cf27
Change engine to engines in package.json (#6349) 2021-08-22 22:06:39 +02:00
github-actions[bot] 56100cc5e9 version bump 2021-08-22 00:10:53 +00:00
github-actions[bot] 01b26ba35a version bump 2021-08-15 00:11:04 +00:00
github-actions[bot] 8388a095c1 version bump 2021-08-08 00:11:07 +00:00
Eric Cornelissen eca5056774 version bump 2021-08-01 11:29:29 +02:00
renovate[bot] e6b8bbe251
Update dependency uglify-js to v3.14.0 (#6169)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 10:09:09 +02:00
github-actions[bot] ee377edb12 version bump 2021-07-25 00:09:49 +00:00
github-actions[bot] 712875fd99 version bump 2021-07-18 00:10:25 +00:00
renovate[bot] b4fd6d4d72
Update all dependencies to v27.0.6 (#6096)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-12 11:23:16 +02:00
github-actions[bot] 73ac45609f version bump 2021-07-11 00:09:50 +00:00
github-actions[bot] 23b8e9e8c6 version bump 2021-07-04 00:09:16 +00:00
renovate[bot] 01478b524f
Update all dependencies (#6038)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-28 08:41:55 +02:00
github-actions[bot] 897c0f3b95 version bump 2021-06-27 00:10:34 +00:00
GitHub Actions e8b25f9275 version bump 2021-06-20 00:10:46 +00:00
GitHub Actions 0904a994cf version bump 2021-06-13 00:12:16 +00:00
Álvaro Mondéjar bbac9332b0
Update svg-path-segments to stable version (#5876) 2021-06-08 10:27:06 +02:00
GitHub Actions 8cf7175fee version bump 2021-06-06 00:20:24 +00:00
Álvaro Mondéjar 8dc6c821d6
Update 'svg-path-bbox' to v1.0.0 (#5846)
Co-authored-by: Peter Noble <petershaggynoble@gmail.com>
2021-06-03 20:15:21 +01:00
Eric Cornelissen 1cfaf5bd02 version bump 2021-05-30 11:13:36 +02:00
GitHub Actions e9eec77acb version bump 2021-05-23 00:13:38 +00:00
GitHub Actions 7e27d0b323 version bump 2021-05-16 00:12:36 +00:00
GitHub Actions e9cfea7480 version bump 2021-05-09 00:06:23 +00:00
Eric Cornelissen 153a029c25
Restructure the scripts/ directory (#5546)
* Restructure scripts/ directory

And update references to this scripts everywhere.

* Update names of file-level constants in bump-version.js

* Normalize quotes between all scripts

* Move "create-release.yml" scripts to scripts/release

* Move slugs table script to scripts/release

* Update relative path logic in update-slugs-table.js
2021-05-07 19:55:06 +02:00
renovate[bot] 92a049441b
Update all dependencies (#5595) 2021-05-05 11:35:03 +01:00
GitHub Actions 5e077bf9af version bump 2021-05-02 00:15:01 +00:00
GitHub Actions 7a0a61636b version bump 2021-04-25 00:23:27 +00:00