forked from dylanblokhuis/svelte-feather-icons
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
3,579 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: yarn install | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./packages/astro-feather-icons | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: pnpm install | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ package-lock.json | |
index.js | ||
index.mjs | ||
index.d.ts | ||
src | ||
dist/ | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,45 @@ | ||
# svelte-feather-icons | ||
# astro-feather-icons | ||
|
||
## Install | ||
[GitHub](https://github.com/edazpotato/astro-feather-icons) | | ||
[NPM](https://npmjs.com/package/astro-feather-icons) | ||
|
||
```bash | ||
yarn add --dev svelte-feather-icons | ||
``` | ||
|
||
or use NPM | ||
## Install | ||
|
||
```bash | ||
npm install --save-dev svelte-feather-icons | ||
npm i astro-feather-icons --save | ||
pnpm i astro-feather-icons | ||
``` | ||
|
||
## Usage | ||
|
||
```html | ||
<script> | ||
// Only import what you need! | ||
import { AirplayIcon, AtSignIcon, ... } from 'svelte-feather-icons' | ||
</script> | ||
```astro | ||
--- | ||
import { AirplayIcon, AtSignIcon, ... } from 'astro-feather-icons' | ||
--- | ||
<AirplayIcon size="24" /> | ||
<AtSignIcon size="1.5x" /> | ||
``` | ||
|
||
See all icons and usage here: https://vue-feather-icons.netlify.com | ||
See all icons here: https://feathericons.com/ More examples can be found in | ||
[src/pages/index.astro](src/pages/index.astro). | ||
|
||
## Prop types | ||
|
||
Here's the `Props` interface used in every icon component: | ||
|
||
```ts | ||
export interface Props { | ||
size?: string | number; | ||
strokeWidth?: number; | ||
class?: string; | ||
color?: string; | ||
} | ||
``` | ||
|
||
## Author | ||
|
||
This package is completely based on [vue-feather-icons](https://github.com/egoist/vue-feather-icons) | ||
This package is maintained by [Edazpotato](https://github.com/edazpotato) and | ||
based on | ||
[svelte-feather-icons](https://github.com/dylanblokhuis/svelte-feather-icons) by | ||
[dylanblokhuis](https://github.com/dylanblokhuis). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
renderers: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,14 @@ | ||
{ | ||
"name": "svelte-feather-icons", | ||
"description": "Feather icons for Svelte (Completely based on vue-feather-icons by EGOIST)", | ||
"version": "3.5.0", | ||
"author": "dylanblokhuis <[email protected]>", | ||
"repository": { | ||
"url": "dylanblokhuis/svelte-feather-icons", | ||
"type": "git" | ||
}, | ||
"svelte": "src/index.js", | ||
"module": "index.mjs", | ||
"main": "index.js", | ||
"files": [ | ||
"src", | ||
"index.mjs", | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"types": "index.d.ts", | ||
"license": "MIT", | ||
"scripts": { | ||
"build:icons": "node build", | ||
"build:dist": "rollup -c", | ||
"build": "npm run build:icons && npm run build:dist", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"feather-icons": "4.28.0", | ||
"fs-extra": "^10.0.0", | ||
"pascal-case": "^3.1.2", | ||
"path": "^0.12.7", | ||
"rollup": "latest", | ||
"rollup-plugin-svelte": "latest", | ||
"rollup-plugin-terser": "^7.0.2" | ||
}, | ||
"keywords": [ | ||
"svelte", | ||
"feather icons" | ||
], | ||
"dependencies": { | ||
"svelte": "^3.38.2" | ||
} | ||
"name": "astro-feather-icons-workspace", | ||
"workspaces": [ | ||
"./packages/*" | ||
], | ||
"dependencies": { | ||
"astro": "^0.21.3" | ||
}, | ||
"scripts": { | ||
"dev": "astro dev", | ||
"build": "astro build", | ||
"preview": "astro preview" | ||
} | ||
} |
Oops, something went wrong.