-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
712 changed files
with
3,064 additions
and
166 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": [ | ||
["es2015", { "modules": false }] | ||
], | ||
"plugins": [ | ||
"add-module-exports" | ||
] | ||
} |
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
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
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,4 +1,4 @@ | ||
module.exports = { | ||
{ | ||
"500px": { | ||
"width": 1536, | ||
"height": 1792, | ||
|
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,6 +1,6 @@ | ||
{ | ||
"name": "vue-awesome", | ||
"version": "0.3.0", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/Justineo/vue-awesome", | ||
"authors": [ | ||
"Justineo <[email protected]>" | ||
|
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 @@ | ||
import Icon from '../components/Icon.vue' | ||
|
||
Icon.register(${icon}) |
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,18 @@ | ||
var fs = require('fs') | ||
var path = require('path') | ||
var icons = require('../assets/icons.json') | ||
|
||
var moduleTpl = fs.readFileSync(path.resolve(__dirname, './icon.tpl'), 'utf8') | ||
var ICON_PATH = path.resolve(__dirname, '../src/icons') | ||
|
||
var indexModule = '' | ||
var names = Object.keys(icons) | ||
names.forEach(function (name) { | ||
var icon = {} | ||
icon[name] = icons[name] | ||
fs.writeFileSync(ICON_PATH + '/' + name + '.js', moduleTpl.replace('${icon}', JSON.stringify(icon))) | ||
indexModule += 'import \'./' + name + '\'\n' | ||
}) | ||
|
||
fs.writeFileSync(ICON_PATH + '/index.js', indexModule) | ||
console.log(names.length + ' icon modules generated.') |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,33 +1,33 @@ | ||
{ | ||
"name": "vue-awesome", | ||
"version": "0.3.1", | ||
"version": "2.0.0", | ||
"description": "Font Awesome component for Vue.js, using inline SVG.", | ||
"main": "dist/vue-awesome.js", | ||
"scripts": { | ||
"dev": "webpack-dev-server --inline --hot", | ||
"build": "webpack -p" | ||
"dev": "cross-env NODE_ENV=development webpack-dev-server --inline --hot", | ||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules", | ||
"icons": "node build/icons.js" | ||
}, | ||
"keywords": [ | ||
"Font Awesome", | ||
"Vue.js" | ||
], | ||
"author": "Justineo ([email protected])", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babel-core": "^6.7.2", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-transform-runtime": "^6.6.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-runtime": "^6.6.1", | ||
"css-loader": "^0.23.1", | ||
"vue-hot-reload-api": "^1.3.2", | ||
"vue-html-loader": "^1.2.0", | ||
"vue-loader": "^8.2.1", | ||
"vue-style-loader": "^1.0.0", | ||
"webpack": "^1.12.14", | ||
"webpack-dev-server": "^1.14.1" | ||
}, | ||
"dependencies": { | ||
"vue": "^1.0.17" | ||
"vue": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.17.0", | ||
"babel-loader": "^6.2.5", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-es2015": "^6.16.0", | ||
"cross-env": "^3.1.1", | ||
"css-loader": "^0.25.0", | ||
"file-loader": "^0.9.0", | ||
"vue-loader": "^9.5.1", | ||
"webpack": "2.1.0-beta.22", | ||
"webpack-dev-server": "^2.1.0-beta.8", | ||
"webpack-merge": "^0.14.1" | ||
} | ||
} |
Oops, something went wrong.