1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00
Commit Graph

14 Commits

Author SHA1 Message Date
Prashant Ashok
4da04655ce
feat: add Marko icon (#7386) 2022-05-07 11:11:20 -07: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
Sachin Raja
e232399271
Remove jest cache in CI (#6693)
* remove jest cache in ci

* remove jest cache from publish workflow

* remove jest config file and cache from gitignore
2021-10-26 10:59:11 +02:00
Eric Cornelissen
a95ad430a3
Improve CI config: caching & refactoring (#5912)
* Set up caching jest cache for tests in CI

Use actions/cache to cache the jest cache between runs. The cache will
be invalided if the package-lock.json file is updated OR after 7
days [1]. The cache directory for jest is now also configured to be in a
directory called ".jestcache" at the root of this project. This
directory will be ignored by git due to its addition to the .gitignore.

--
1. https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy

* Trigger jest cache in CI

* Include date in cache key

This way the cache is invalidated very day

* Add name for caching Jest's cache step

* Demonstrate test failure with cache enabled

* Revert ff915d4660

* Cache dependencies

* Update Jest cache configuration

* Refactor and use Jest cache in Publish workfow

- Refactor out the duplicated sanity check in the publish workflow into
  a separate, depended upon, job.
- Use the Jest cache in the Publish workflow.

* Update linter job in CI to just run `npm run lint`

... whereas previously it ran each linter separately. This avoids having
to update the workflow file if a new linter is added (or a linter is
removed).

* Use run_number instead of date for jest cache in CI

* Simplify GitHub release publish job
2021-06-29 12:07:50 +02:00
Eric Cornelissen
c368b14e62
Remove (old) website source files (#5553)
* Remove files directly related to the website

Remove all the files directly related to the Jekyll-based website in
this repository. This includes the HTML, CSS and JS for the website, the
assets that can be found in the images/ folder, Jekyll-related files
(_config.yml, Gemfile, Gemfile.lock) and the CNAME file.

* Remove website-related configurations

Remove website-related files from ignore files, update the EditorConfig
configuration to remove any mention of website files, and update
.gitattributes to omit removed files.

* Update issue templates

Remove the issue templates for issues regarding the website and replace
it with a issue templates configuration file [1] that provides a link to
a the equivalent issue template in the simple-icons-website repository.

--
1. https://docs.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository


* Remove building website from verify workflow

* Remove mentions of website from Contributing Guidelines

* Remove mention of GitPod

I believe the main advantage of GitPod was that it allows you to preview
a contribution in the context of the website. Now that the website is no
longer in the repository this is not a thing anymore (unless someone
can configure GitPod to pull in the website from its repo), so I removed
any mention of it.

I'm open to reverting this change if contributors still want to use
GitPod.

* Add CI job for building the NodeJS package
2021-05-29 18:00:40 +02:00
Alexandre Paradis
195a7aa1c2
Ignore files that are not SVGs in the icons folder (#4672) 2021-01-08 09:33:40 +00:00
Álvaro Mondéjar
740dfba419
Formalize website Ruby dependencies and installation process (#4416)
* Formalize website Ruby dependencies and installation process

* Improve Contributing Guidelines

* Add Gemfile.lock to .gitattributes

* Use 'ruby/setup-ruby' caching strategy

* Add link to documentation of 'bundler-cache'
2020-12-22 21:11:57 +01:00
Johan Fagerberg
f11ae61afe
Add .jekyll-cache/ to gitignore 2019-10-20 00:33:52 +02:00
Eric Cornelissen
63e3d3dc97 Ignore files generated by prepublish script in git 2019-07-21 19:51:15 +01:00
Eric Cornelissen
b566627804 Add "jsonhint" dependency 2017-09-11 21:53:21 +02:00
Dan Leech
d606adcf78 Adds Jekyll to gitignore 2017-04-23 16:46:05 +01:00
Dan Leech
463d5025ec Finished v1 node builder script 2015-10-14 16:52:04 +01:00
Dan Leech
d6f771d1e1 Removed icon? from gitignore
Oops.
2012-11-26 16:29:20 +00:00
Dan Leech
cb353fd6e7 Initial commit 2012-11-16 11:08:51 +00:00