diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..04e8f04
Binary files /dev/null and b/.DS_Store differ
diff --git a/.github/.DS_Store b/.github/.DS_Store
new file mode 100644
index 0000000..293559f
Binary files /dev/null and b/.github/.DS_Store differ
diff --git a/.github/workflows/autotag.yml b/.github/workflows/autotag.yml
new file mode 100644
index 0000000..130692b
--- /dev/null
+++ b/.github/workflows/autotag.yml
@@ -0,0 +1,19 @@
+name: Create Tag on package.json update
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ token: '${{ secrets.GH_AUTH_TOKEN }}'
+ fetch-depth: 0
+ - uses: butlerlogic/action-autotag@master
+ with:
+ GITHUB_TOKEN: "${{ secrets.GH_AUTH_TOKEN }}"
+ tag_prefix: "v"
diff --git a/.github/workflows/npm-publish-pro.yml b/.github/workflows/npm-publish-pro.yml
new file mode 100644
index 0000000..43ed921
--- /dev/null
+++ b/.github/workflows/npm-publish-pro.yml
@@ -0,0 +1,25 @@
+name: Publish to NPM PRO
+
+on:
+ push:
+ tags:
+ - '*'
+
+jobs:
+ publish-npm:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.16.3
+ - name: Install NPM
+ run: npm ci --progress=false
+ - name: Set Gemfury Config
+ run: printf "@iconscout:registry=https://npm-proxy.fury.io/iconscout/\n//npm-proxy.fury.io/iconscout/:_authToken=${NPM_TOKEN}" > ~/.npmrc
+ env:
+ NPM_TOKEN: ${{ secrets.FURY_AUTH_TOKEN }}
+ - name: Download & Build Icons
+ run: npm i @iconscout/unicons@latest && npm run generate
+ - name: Publish to Gemfury
+ run: npm publish
\ No newline at end of file
diff --git a/.github/workflows/npm-publish-rc.yml b/.github/workflows/npm-publish-rc.yml
new file mode 100644
index 0000000..b94eb50
--- /dev/null
+++ b/.github/workflows/npm-publish-rc.yml
@@ -0,0 +1,33 @@
+name: Publish to NPM RC
+
+on:
+ push:
+ # Sequence of patterns matched against refs/heads
+ branches:
+ - "release-*"
+
+jobs:
+ publish-npm:
+ runs-on: ubuntu-latest
+ steps:
+ - if: github.event_name == 'push'
+ uses: actions/checkout@v2
+ - if: github.event_name == 'pull_request'
+ uses: actions/checkout@v2
+ with:
+ ref: ${{ github.head_ref }}
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.16.3
+ - name: Download & Build Icons
+ run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ token: ${{ secrets.GH_AUTH_TOKEN }}
+ title: Updated Icons
+ - name: Publish to NPM
+ uses: primer/publish@v2.0.0
+ env:
+ GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
+ NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
new file mode 100644
index 0000000..7297887
--- /dev/null
+++ b/.github/workflows/npm-publish.yml
@@ -0,0 +1,21 @@
+name: Publish to NPM
+
+on:
+ push:
+ tags:
+ - '*'
+
+jobs:
+ publish-npm:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 10.16.3
+ - name: Download & Build Icons
+ run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate
+ - name: Publish to NPM
+ run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc && npm publish
+ env:
+ NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9b26ed0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+lib
\ No newline at end of file
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..d959f0c
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,2 @@
+node_modules
+example
\ No newline at end of file
diff --git a/README.md b/README.md
index 7c180b7..202f8cb 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Vue Unicons Solid
+# Vue Unicons Thinline
1100+ Pixel-perfect vector icons as Vue Components. These icons are designed by [Iconscout](https://iconscout.com).
@@ -23,16 +23,16 @@ yarn add @iconscout/vue-unicons-thinline
```html
-
+
diff --git a/babel.config.js b/babel.config.js
new file mode 100644
index 0000000..7bfd0db
--- /dev/null
+++ b/babel.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ presets: [[require('@babel/preset-env'), { modules: false }]],
+}
diff --git a/build/generate.js b/build/generate.js
new file mode 100644
index 0000000..5eb49a4
--- /dev/null
+++ b/build/generate.js
@@ -0,0 +1,69 @@
+const path = require("path");
+const fs = require("fs-plus");
+const cheerio = require("cheerio");
+const upperCamelCase = require("uppercamelcase");
+
+const iconsComponentPath = path.join(process.cwd(), "icons");
+const iconsIndexPath = path.join(process.cwd(), "index.js");
+const uniconsConfig = require("@iconscout/unicons/json/thinline.json");
+
+// Clear Directories
+fs.removeSync(iconsComponentPath);
+fs.mkdirSync(iconsComponentPath);
+
+const indexJs = [];
+
+uniconsConfig.forEach((icon) => {
+ const baseName = `uit-${icon.name}`;
+ const location = path.join(iconsComponentPath, `${baseName}.vue`);
+ const name = upperCamelCase(baseName);
+ const svgFile = fs.readFileSync(
+ path.resolve("node_modules/@iconscout/unicons", icon.svg),
+ "utf-8"
+ );
+
+ let data = svgFile.replace(/