LitoMore
fa4b7d42da
Upgrade xo to 2.0.2 ( #14484 )
2026-03-18 09:38:08 +08:00
Álvaro Mondéjar Rubio
f4168df0b2
Add curly and no-shadow rules to XO config ( #14193 )
2026-01-05 07:27:42 +08:00
LitoMore
e44fbde35e
Add type declarations for data JSON entry ( #13510 )
2025-07-02 08:50:03 +01:00
Álvaro Mondéjar Rubio
92c49822bc
Minify CJS SDK and be explicit encoding package files ( #13521 )
2025-06-26 00:18:38 +08:00
Álvaro Mondéjar Rubio
55d055c380
Enforce consistency of titles and slugs ( #13533 )
2025-06-25 22:55:30 +08:00
Álvaro Mondéjar Rubio
4014625891
Deprecate simple-icons/icons entrypoint ( #13530 )
2025-06-24 21:27:40 +01:00
LitoMore
f977b90743
Bump to xo@1.0.0 ( #13015 )
2025-05-27 20:36:59 +02:00
LitoMore
cd1934aaf3
Use import.meta.dirname & import.meta.filename ( #10863 )
2025-05-27 13:22:37 +02:00
Álvaro Mondéjar Rubio
ffb7d467e3
Resolve ts-ignore comments in scripts and tests ( #12843 )
2025-03-05 10:21:55 +08:00
Álvaro Mondéjar Rubio
43dc6b190b
Use square brackets for JSDoc optional arguments ( #12841 )
2025-03-04 21:49:47 +08:00
Álvaro Mondéjar Rubio
18a5c39e21
Check JSDoc types with TypeScript ( #12840 )
2025-03-04 03:12:53 +01:00
LitoMore
4a2dc79842
Use tab indentations ( #12380 )
2024-12-21 22:49:25 +08:00
LitoMore
7409de9458
Add script for formatting icon data ( #12381 )
2024-12-19 11:32:41 +01:00
Álvaro Mondéjar Rubio
5183e3c06b
Stricter rules for JSDoc documentation blocks ( #11881 )
2024-09-29 22:28:34 +08:00
LitoMore
55b5a43a03
Bump xo to v0.59.3 ( #11781 )
2024-09-17 03:46:48 +02:00
Álvaro Mondéjar Rubio
512e4cbf4a
Resolve all possible TODO comments ( #11119 )
2024-06-07 03:24:29 +08:00
Álvaro Mondéjar Rubio
236f5fc715
Add types to source code ( #10637 )
2024-06-06 14:40:35 +02:00
LitoMore
da97f3263f
Fix scripts execution compatibility ( #10838 )
2024-04-21 14:16:09 +02:00
LitoMore
bf69b6dee0
Add XO linter ( #10643 )
2024-03-24 18:38:18 +01:00
Álvaro Mondéjar
1350a52726
Drop del-cli dependency ( #10652 )
2024-03-19 20:35:59 +08:00
Álvaro Mondéjar
30dd8a1fbf
Use permanent README icons links in releases ( #9788 )
...
* Ensure permanent release README links
* Minor change
2023-10-28 19:24:55 +01:00
Álvaro Mondéjar
17ea889273
Refactor tests and scripts ( #9237 )
...
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com >
2023-08-08 06:38:52 +02:00
LitoMore
b3906b828e
Remove unused shebang line ( #9126 )
2023-07-28 16:19:49 +02:00
LitoMore
bbdf2e604d
Use icons from CDN ( #7950 )
2023-07-28 21:50:15 +08:00
LitoMore
e9c814ac00
Omit undefined properties ( #8582 )
2023-05-25 14:45:12 +02:00
Álvaro Mondéjar
6178243859
Expose SDK in NPM package ( #8077 )
2023-04-19 15:23:13 +02:00
Sachin Raja
fcec7adc8b
replace index.js entry point ( #8058 )
...
* replace index.js entry point
* add types.d.ts
* Update documentation
* Add Typescript usage example
* Drop template file
* Readd test
* Minor change
Co-authored-by: Álvaro Mondéjar Rubio <mondejar1994@gmail.com >
2022-11-28 12:32:57 +01:00
Álvaro Mondéjar
ad7de0434e
Standarize locale comparisons and sort icons by title in package ( #7854 )
...
* Use Intl.Collator for locale comparisons
* Sort icons by title in package
2022-09-24 17:29:43 +02:00
LitoMore
fdc707bf81
Build icons in order ( #7852 )
2022-09-23 20:44:28 +02:00
Álvaro Mondéjar
e0a4e765ad
Reuse svg getter package template parts ( #7457 )
...
* Reuse svg getter package template parts
2022-05-27 15:09:33 +02:00
Sachin Raja
986589c34c
deprecate index ( #7453 )
2022-05-26 23:18:44 -07:00
Sachin Raja
665b82590d
remove icons/* entrypoints ( #6788 )
...
* remove icons/* entrypoints
* remove icons/* tests
* remove icons/* references from the README
* reference actual variable in README console.log
* merge develop
* fix conflicts
* fix
* fix tests
* Update scripts/build/package.js
* Update README.md
* fix ignore files
2022-05-26 14:29:37 +02: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
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
Sachin Raja
ec75522f42
add deprecation warnings for icons/* imports ( #6900 )
...
* add deprecation warnings for icons/* imports
* do not log warnings during tests
* update message
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
* remove message formatting
* add jsdoc deprecation tags
* Update scripts/build/package.js
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
* Update scripts/build/package.js
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
* Update scripts/build/package.js
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
* Update scripts/build/package.js
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
* fix "use" for jsdoc
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
2021-11-23 12:33:37 -08:00
Eric Cornelissen
4c7b870af6
Remove .get from package's default export ( #6820 )
...
* Remove `.get` from package's default export
* Update TypeScript definitions
* Updated index.js test suite
2021-11-22 20:56:10 +01: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
Álvaro Mondéjar
2d3485b8c1
Use getter for svg instead of path in packaged javascript version of icons ( #6505 )
...
* Use getter for 'svg' instead of 'path' in packaged javascript version of icons
* Use variable to avoid calling `escape` twice
* Convert title to HTML friendly in build script
* Update tests
* Only friendly title for SVG content
* Add equality test for SVG contents
* Add missing import
* Test using icons template
* Fix lint error
* Fix lint error in utils
* Read files synchronicly in tests
* Remove done from tests, make them pass
* Remove uneeded imports
* Remove replacements in tests
* Update with changes in develop
* Drop uneeded requirement
* Space between requirements
* Simplify encoding utility
* Fix syntax error
* Apply @ericcornelissen's suggestions
* Apply @ericcornelissen's suggestions
2021-11-06 16:03:37 +01: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
Eric Cornelissen
f6b60e428f
Rename 'get' to 'Get' on simpleIcons export ( #5777 )
2021-05-28 11:16:50 +01:00
Eric Cornelissen
c66b8bc2f3
Remove get-by-title from NPM package API ( #4920 )
2021-05-25 17:40:11 +01: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