Skip to content

Commit d5932eb

Browse files
author
Ajay Marathe
committed
update vue-fontawesome npm package to 1.2.0 and added index.js for vue.use()
1 parent c1cdf4b commit d5932eb

10 files changed

+47
-71
lines changed

.browserslistrc

-2
This file was deleted.

.eslintrc.js

-14
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Vue from 'vue'
2323
import "font-awesome/css/font-awesome.min.css";
2424

2525
//defined as global component
26-
Vue.component('VueFontawesome', require('vue-fontawesome-icon/src/components/VueFontawesome.vue').default);
26+
Vue.component('VueFontawesome', require('vue-fontawesome-icon/VueFontawesome.vue').default);
2727

2828
Vue.config.productionTip = false
2929

File renamed without changes.

babel.config.js

-3
This file was deleted.

index.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import VueFontawesome from "VueFontawesome.vue";
2+
3+
// theme components
4+
export default {
5+
install(Vue) {
6+
Vue.component(VueFontawesome.name, VueFontawesome);
7+
}
8+
};

package-lock.json

+36-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
{
22
"name": "vue-fontawesome-icon",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"scripts": {
55
"serve": "vue-cli-service serve",
66
"build": "vue-cli-service build",
77
"lint": "vue-cli-service lint"
88
},
99
"dependencies": {
1010
"core-js": "^2.6.5",
11-
"font-awesome": "^4.7.0",
1211
"vue": "^2.6.10"
1312
},
1413
"devDependencies": {
15-
"@vue/cli-plugin-babel": "^3.11.0",
16-
"@vue/cli-plugin-eslint": "^3.11.0",
1714
"@vue/cli-service": "^3.11.0",
18-
"@vue/eslint-config-prettier": "^5.0.0",
1915
"babel-eslint": "^10.0.1",
20-
"eslint": "^5.16.0",
21-
"eslint-plugin-prettier": "^3.1.0",
22-
"eslint-plugin-vue": "^5.0.0",
2316
"prettier": "^1.18.2",
2417
"vue-template-compiler": "^2.6.10"
2518
},
2619
"description": "🍺 Hi there, Font-awesome icons for Vue.js lovers <3",
27-
"main": ".eslintrc.js",
20+
"main": "index.js",
2821
"repository": {
2922
"type": "git",
3023
"url": "git+https://github.com/ajaymarathe/vue-fontawesome.git"

postcss.config.js

-5
This file was deleted.

src/main.js

-12
This file was deleted.

0 commit comments

Comments
 (0)