Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
Signed-off-by: Edaz <[email protected]>
  • Loading branch information
edazpotato committed Nov 24, 2021
1 parent 47f9805 commit ed46cf9
Show file tree
Hide file tree
Showing 10 changed files with 3,579 additions and 159 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/main.yml
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}}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ package-lock.json
index.js
index.mjs
index.d.ts
src
dist/
*.log
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

44 changes: 29 additions & 15 deletions README.md
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).
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
renderers: [],
};
43 changes: 0 additions & 43 deletions build.js

This file was deleted.

54 changes: 12 additions & 42 deletions package.json
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"
}
}
Loading

0 comments on commit ed46cf9

Please sign in to comment.