@fortawesome/vue-fontawesome 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +6 -6
- package/index.es.js +288 -229
- package/index.js +636 -577
- package/package.json +40 -23
- package/src/components/FontAwesomeIcon.js +15 -3
- package/src/utils.js +5 -1
- package/.babelrc +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -24
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/workflows/ci.yml +0 -31
- package/.npmrc.proregistry +0 -2
- package/.tool-versions +0 -2
- package/CODE_OF_CONDUCT.md +0 -74
- package/CONTRIBUTING.md +0 -57
- package/DEVELOPMENT.md +0 -44
- package/bin/dev +0 -3
- package/bin/setup +0 -8
- package/examples/vue-cli-webpack/.babelrc +0 -12
- package/examples/vue-cli-webpack/.editorconfig +0 -9
- package/examples/vue-cli-webpack/.eslintignore +0 -4
- package/examples/vue-cli-webpack/.eslintrc.js +0 -29
- package/examples/vue-cli-webpack/.postcssrc.js +0 -10
- package/examples/vue-cli-webpack/README.md +0 -21
- package/examples/vue-cli-webpack/build/build.js +0 -41
- package/examples/vue-cli-webpack/build/check-versions.js +0 -54
- package/examples/vue-cli-webpack/build/logo.png +0 -0
- package/examples/vue-cli-webpack/build/utils.js +0 -101
- package/examples/vue-cli-webpack/build/vue-loader.conf.js +0 -22
- package/examples/vue-cli-webpack/build/webpack.base.conf.js +0 -91
- package/examples/vue-cli-webpack/build/webpack.dev.conf.js +0 -95
- package/examples/vue-cli-webpack/build/webpack.prod.conf.js +0 -145
- package/examples/vue-cli-webpack/config/dev.env.js +0 -7
- package/examples/vue-cli-webpack/config/index.js +0 -76
- package/examples/vue-cli-webpack/config/prod.env.js +0 -4
- package/examples/vue-cli-webpack/index.html +0 -13
- package/examples/vue-cli-webpack/package-lock.json +0 -11632
- package/examples/vue-cli-webpack/package.json +0 -77
- package/examples/vue-cli-webpack/src/App.vue +0 -66
- package/examples/vue-cli-webpack/src/assets/logo.png +0 -0
- package/examples/vue-cli-webpack/src/components/HelloWorld.vue +0 -113
- package/examples/vue-cli-webpack/src/main.js +0 -28
- package/examples/vue-cli-webpack/static/.gitkeep +0 -0
- package/rollup.config.js +0 -54
- package/src/components/__fixtures__/helpers.js +0 -40
- package/src/components/__fixtures__/icons.js +0 -35
- package/src/components/__tests__/FontAwesomeIcon.test.js +0 -337
- package/src/components/__tests__/FontAwesomeLayers.test.js +0 -55
- package/src/components/__tests__/FontAwesomeLayersText.test.js +0 -52
package/package.json
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fortawesome/vue-fontawesome",
|
|
3
3
|
"description": "Official Vue component for Font Awesome 5",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.7",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"README.md",
|
|
8
|
+
"LICENSE.txt",
|
|
9
|
+
"UPGRADING.md",
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
"index.d.ts",
|
|
12
|
+
"index.es.js",
|
|
13
|
+
"index.js",
|
|
14
|
+
"src/components/**.js",
|
|
15
|
+
"src/**.js"
|
|
16
|
+
],
|
|
17
|
+
"jest": {
|
|
18
|
+
"verbose": true
|
|
19
|
+
},
|
|
6
20
|
"module": "index.es.js",
|
|
7
21
|
"jsnext:main": "index.es.js",
|
|
8
22
|
"types": "index.d.ts",
|
|
@@ -26,10 +40,9 @@
|
|
|
26
40
|
"scripts": {
|
|
27
41
|
"build": "rollup -c rollup.config.js",
|
|
28
42
|
"dist": "cross-env NODE_ENV=production npm run build",
|
|
29
|
-
"test": "npm run test.
|
|
30
|
-
"test.
|
|
31
|
-
"test.
|
|
32
|
-
"test.next.proregistry": "npm --userconfig .npmrc.proregistry --registry https://npm.fontawesome.com install --no-save @fortawesome/fontawesome-svg-core@next @fortawesome/free-solid-svg-icons@next && jest --silent",
|
|
43
|
+
"test": "npm run test.5 && npm run test.6",
|
|
44
|
+
"test.5": "npm --no-save install @fortawesome/fontawesome-svg-core@1.2.x @fortawesome/free-solid-svg-icons@5.x && jest --silent",
|
|
45
|
+
"test.6": "npm --no-save install @fortawesome/fontawesome-svg-core@6.x @fortawesome/free-solid-svg-icons@6.x && jest --silent",
|
|
33
46
|
"prepack": "npm run dist"
|
|
34
47
|
},
|
|
35
48
|
"lint-staged": {
|
|
@@ -39,31 +52,35 @@
|
|
|
39
52
|
]
|
|
40
53
|
},
|
|
41
54
|
"peerDependencies": {
|
|
42
|
-
"@fortawesome/fontawesome-svg-core": "~1 ||
|
|
55
|
+
"@fortawesome/fontawesome-svg-core": "~1 || ~6",
|
|
43
56
|
"vue": "~2"
|
|
44
57
|
},
|
|
45
58
|
"devDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"babel-
|
|
49
|
-
"babel-
|
|
50
|
-
"babel
|
|
51
|
-
"babel-
|
|
52
|
-
"babel
|
|
53
|
-
"
|
|
54
|
-
"
|
|
59
|
+
"@babel/core": "^7.18.2",
|
|
60
|
+
"@babel/plugin-external-helpers": "^7.17.12",
|
|
61
|
+
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
62
|
+
"@babel/plugin-proposal-json-strings": "^7.17.12",
|
|
63
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
64
|
+
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
65
|
+
"@babel/preset-env": "^7.18.2",
|
|
66
|
+
"@fortawesome/fontawesome-svg-core": "~6",
|
|
67
|
+
"@fortawesome/free-solid-svg-icons": "^6",
|
|
68
|
+
"babel-core": "^7.0.0-bridge.0",
|
|
69
|
+
"babel-jest": "^28.1.1",
|
|
70
|
+
"concurrently": "^7.2.1",
|
|
71
|
+
"cross-env": "^7.0.3",
|
|
55
72
|
"humps": "^2.0.1",
|
|
56
|
-
"husky": "^
|
|
57
|
-
"jest": "^
|
|
58
|
-
"
|
|
73
|
+
"husky": "^8.0.1",
|
|
74
|
+
"jest": "^28.1.1",
|
|
75
|
+
"jest-environment-jsdom": "^28.1.1",
|
|
76
|
+
"lint-staged": "^13.0.0",
|
|
59
77
|
"markdown-toc": "^1.2.0",
|
|
60
|
-
"rollup": "^
|
|
61
|
-
"rollup
|
|
62
|
-
"rollup
|
|
63
|
-
"rollup
|
|
78
|
+
"rollup": "^2.75.6",
|
|
79
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
80
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
81
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
64
82
|
"vue": "^2.4.4"
|
|
65
83
|
},
|
|
66
|
-
"dependencies": {},
|
|
67
84
|
"husky": {
|
|
68
85
|
"hooks": {
|
|
69
86
|
"pre-commit": "lint-staged"
|
|
@@ -58,9 +58,9 @@ export default {
|
|
|
58
58
|
default: false
|
|
59
59
|
},
|
|
60
60
|
flip: {
|
|
61
|
-
type: String,
|
|
62
|
-
default:
|
|
63
|
-
validator: (value) => ['horizontal', 'vertical', 'both'].indexOf(value) > -1
|
|
61
|
+
type: [Boolean, String],
|
|
62
|
+
default: false,
|
|
63
|
+
validator: (value) => [true, false, 'horizontal', 'vertical', 'both'].indexOf(value) > -1
|
|
64
64
|
},
|
|
65
65
|
icon: {
|
|
66
66
|
type: [Object, Array, String],
|
|
@@ -124,6 +124,18 @@ export default {
|
|
|
124
124
|
inverse: {
|
|
125
125
|
type: Boolean,
|
|
126
126
|
default: false
|
|
127
|
+
},
|
|
128
|
+
bounce: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: false
|
|
131
|
+
},
|
|
132
|
+
shake: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false
|
|
135
|
+
},
|
|
136
|
+
beatFade: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: false
|
|
127
139
|
}
|
|
128
140
|
},
|
|
129
141
|
|
package/src/utils.js
CHANGED
|
@@ -15,12 +15,16 @@ export function classList (props) {
|
|
|
15
15
|
'fa-border': props.border,
|
|
16
16
|
'fa-li': props.listItem,
|
|
17
17
|
'fa-inverse': props.inverse,
|
|
18
|
+
'fa-flip': props.flip === true,
|
|
18
19
|
'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
|
|
19
20
|
'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both',
|
|
20
21
|
[`fa-${props.size}`]: props.size !== null,
|
|
21
22
|
[`fa-rotate-${props.rotation}`]: props.rotation !== null,
|
|
22
23
|
[`fa-pull-${props.pull}`]: props.pull !== null,
|
|
23
|
-
'fa-swap-opacity': props.swapOpacity
|
|
24
|
+
'fa-swap-opacity': props.swapOpacity,
|
|
25
|
+
'fa-bounce': props.bounce,
|
|
26
|
+
'fa-shake': props.shake,
|
|
27
|
+
'fa-beat-fade': props.beatFade
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
return Object.keys(classes)
|
package/.babelrc
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
**Reproducible test case**
|
|
14
|
-
Include a URL (codepen.io, jsfiddle.net, Git repository, codesandbox.io, stackblitz.com, etc.) that demonstrates the problem.
|
|
15
|
-
|
|
16
|
-
**Expected behavior**
|
|
17
|
-
A clear and concise description of what you expected to happen.
|
|
18
|
-
|
|
19
|
-
**Desktop (please complete the following information):**
|
|
20
|
-
- Browser [e.g. chrome, safari]
|
|
21
|
-
- Version
|
|
22
|
-
|
|
23
|
-
**Additional context**
|
|
24
|
-
Add any other context about the problem here.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
|
11
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
A clear and concise description of what you want to happen.
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered**
|
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
-
|
|
19
|
-
**Additional context**
|
|
20
|
-
Add any other context or screenshots about the feature request here.
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on: [push]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
|
|
10
|
-
strategy:
|
|
11
|
-
matrix:
|
|
12
|
-
node-version: [8.x, 10.x, 12.x]
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v1
|
|
16
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
17
|
-
uses: actions/setup-node@v1
|
|
18
|
-
with:
|
|
19
|
-
node-version: ${{ matrix.node-version }}
|
|
20
|
-
- name: install, build, and test
|
|
21
|
-
run: |
|
|
22
|
-
npm install
|
|
23
|
-
npm run build
|
|
24
|
-
npm run test.latest
|
|
25
|
-
npm run test.next.proregistry
|
|
26
|
-
env:
|
|
27
|
-
CI: true
|
|
28
|
-
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
|
|
29
|
-
- name: dist
|
|
30
|
-
run: |
|
|
31
|
-
npm run dist
|
package/.npmrc.proregistry
DELETED
package/.tool-versions
DELETED
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
-
orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at <hello@fontawesome.com>. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
|
72
|
-
|
|
73
|
-
[homepage]: https://contributor-covenant.org
|
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
This is the repository for the _official_ Font Awesome Angular component, _initialized_ by the team behind Font Awesome,
|
|
2
|
-
but intended to evolve over time with _community_ contributions.
|
|
3
|
-
|
|
4
|
-
# Ways to Contribute
|
|
5
|
-
|
|
6
|
-
## Ask a Question
|
|
7
|
-
|
|
8
|
-
Trying to figure out how to make it work? Or how to use it in your scenario?
|
|
9
|
-
|
|
10
|
-
1. Review the [README](README.md)
|
|
11
|
-
1. Get familiar with the documentation for the [SVG with JavaScript](https://fontawesome.com/how-to-use/svg-with-js) implementation,
|
|
12
|
-
the framework upon which this component is built. Sometimes the answers you need may be there.
|
|
13
|
-
1. Post any remaining questions on [StackOverflow](https://stackoverflow.com/questions/tagged/vue-fontawesome) with the tag `vue-fontawesome`.
|
|
14
|
-
|
|
15
|
-
## Report a Bug
|
|
16
|
-
|
|
17
|
-
1. Create a test case that reproduces the unexpected behavior using [codesandbox.io](https://codesandbox.io)
|
|
18
|
-
1. [Open a new issue with this template](https://github.com/FortAwesome/vue-fontawesome/issues/new?template=bug-report.md),
|
|
19
|
-
and be sure to include a link to the reproduction you made with StackBlitz.
|
|
20
|
-
|
|
21
|
-
## Submit a Pull Request
|
|
22
|
-
|
|
23
|
-
Add tests if you add code.
|
|
24
|
-
|
|
25
|
-
## Everything Else
|
|
26
|
-
|
|
27
|
-
* [Request a feature](https://github.com/FortAwesome/vue-fontawesome/issues/new??title=Feature%20request:feature-name&template=feature-request.md)
|
|
28
|
-
* [Request a new icon](https://github.com/FortAwesome/Font-Awesome/issues/new?title=Icon%20request:%20icon-name&template=icon-request.md)
|
|
29
|
-
|
|
30
|
-
# Project Goals
|
|
31
|
-
|
|
32
|
-
1. Achieve and maintain feature parity with Font Awesome's [SVG with JavaScript](https://fontawesome.com/how-to-use/svg-with-js) method.
|
|
33
|
-
|
|
34
|
-
1. Keep with best practices in the Angular development community.
|
|
35
|
-
|
|
36
|
-
1. Stay current with major developments in Angular and Angular-CLI
|
|
37
|
-
|
|
38
|
-
1. Maintain a reasonable level of consistency between this component and the other Font Awesome official JavaScript
|
|
39
|
-
framework components ([Vue](https://github.com/FortAwesome/angular-fontawesome), [React](https://github.com/FortAwesome/react-fontawesome), [Ember](https://github.com/FortAwesome/ember-fontawesome))
|
|
40
|
-
|
|
41
|
-
1. Sharing responsibility: The Font Awesome team will continue to be involved in ongoing development, hoping to _propel_
|
|
42
|
-
the project's momentum as we make _our_ contributions, while minimizing any bottle-necking that may happen as we balance
|
|
43
|
-
our own priorities across various projects. Ideally, members of the community will enjoy lending a hand to help keep
|
|
44
|
-
the project moving forward by responding to issues, answering questions on StackOverflow, reviewing and merging pull
|
|
45
|
-
requests, and publishing npm updates.
|
|
46
|
-
|
|
47
|
-
# Code of Conduct
|
|
48
|
-
|
|
49
|
-
We'll contribute according to the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
50
|
-
|
|
51
|
-
# Wanted: Core Contributors
|
|
52
|
-
|
|
53
|
-
We're seeking core contributors to help drive this project. Core contributors:
|
|
54
|
-
1. Share these goals
|
|
55
|
-
1. Demonstrate competence through contributions
|
|
56
|
-
1. Contribute with conduct fitting with our code of conduct
|
|
57
|
-
1. Want to make this project awesome
|
package/DEVELOPMENT.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Developing vue-fontawesome
|
|
2
|
-
|
|
3
|
-
## Tasks
|
|
4
|
-
|
|
5
|
-
The following commands are available through `npm run` or `yarn`:
|
|
6
|
-
|
|
7
|
-
Command | Purpose
|
|
8
|
-
--- | ---
|
|
9
|
-
build | Build a development version of the library using Rollup
|
|
10
|
-
dist | Build a production version of the library using Rollup
|
|
11
|
-
test | Execute unit tests
|
|
12
|
-
|
|
13
|
-
## Release this project
|
|
14
|
-
<a name="release"></a>
|
|
15
|
-
|
|
16
|
-
1. Update `package.json` and change `version`
|
|
17
|
-
1. Update `README.md` and `package.json`; adding any contributors
|
|
18
|
-
1. Update the `CHANGELOG.md`
|
|
19
|
-
1. `npm publish`
|
|
20
|
-
1. `npm publish --registry https://npm.fontawesome.com`
|
|
21
|
-
1. `git add .`
|
|
22
|
-
1. `git commit -a -m 'Release VERSION'`
|
|
23
|
-
1. `git push`
|
|
24
|
-
1. Create a [new release](https://github.com/FortAwesome/vue-fontawesome/releases/new) with CHANGELOG details
|
|
25
|
-
|
|
26
|
-
## Authenticating with the npm.fontawesome.com registry
|
|
27
|
-
|
|
28
|
-
Contributors with authorization to publish to npm.fontawesome.com will receive an invite
|
|
29
|
-
from a Font Awesome project owner.
|
|
30
|
-
|
|
31
|
-
1. Respond to the invite in your email
|
|
32
|
-
1. Let the owner know when you've setup your account
|
|
33
|
-
1. Owner will add you to the team
|
|
34
|
-
|
|
35
|
-
You can then run:
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
npm login --registry https://npm.fontawesome.com
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
- The username is the "slug" for your Cloudsmith account. For example mine is "rob-madole".
|
|
42
|
-
- Enter the password that you setup just a few minutes ago.
|
|
43
|
-
- It says the your email is PUBLIC. Pretty sure that's false since the auth is through Cloudsmith.
|
|
44
|
-
- This doesn't overwrite your standard login, just adds to your `~/.npmrc`
|
package/bin/dev
DELETED
package/bin/setup
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// https://eslint.org/docs/user-guide/configuring
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
parserOptions: {
|
|
6
|
-
parser: 'babel-eslint'
|
|
7
|
-
},
|
|
8
|
-
env: {
|
|
9
|
-
browser: true,
|
|
10
|
-
},
|
|
11
|
-
extends: [
|
|
12
|
-
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
|
13
|
-
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
14
|
-
'plugin:vue/essential',
|
|
15
|
-
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
|
16
|
-
'standard'
|
|
17
|
-
],
|
|
18
|
-
// required to lint *.vue files
|
|
19
|
-
plugins: [
|
|
20
|
-
'vue'
|
|
21
|
-
],
|
|
22
|
-
// add your custom rules here
|
|
23
|
-
rules: {
|
|
24
|
-
// allow async-await
|
|
25
|
-
'generator-star-spacing': 'off',
|
|
26
|
-
// allow debugger during development
|
|
27
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# vue-cli-webpack
|
|
2
|
-
|
|
3
|
-
> A Vue.js project
|
|
4
|
-
|
|
5
|
-
## Build Setup
|
|
6
|
-
|
|
7
|
-
``` bash
|
|
8
|
-
# install dependencies
|
|
9
|
-
npm install
|
|
10
|
-
|
|
11
|
-
# serve with hot reload at localhost:8080
|
|
12
|
-
npm run dev
|
|
13
|
-
|
|
14
|
-
# build for production with minification
|
|
15
|
-
npm run build
|
|
16
|
-
|
|
17
|
-
# build for production and view the bundle analyzer report
|
|
18
|
-
npm run build --report
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
require('./check-versions')()
|
|
3
|
-
|
|
4
|
-
process.env.NODE_ENV = 'production'
|
|
5
|
-
|
|
6
|
-
const ora = require('ora')
|
|
7
|
-
const rm = require('rimraf')
|
|
8
|
-
const path = require('path')
|
|
9
|
-
const chalk = require('chalk')
|
|
10
|
-
const webpack = require('webpack')
|
|
11
|
-
const config = require('../config')
|
|
12
|
-
const webpackConfig = require('./webpack.prod.conf')
|
|
13
|
-
|
|
14
|
-
const spinner = ora('building for production...')
|
|
15
|
-
spinner.start()
|
|
16
|
-
|
|
17
|
-
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
|
|
18
|
-
if (err) throw err
|
|
19
|
-
webpack(webpackConfig, (err, stats) => {
|
|
20
|
-
spinner.stop()
|
|
21
|
-
if (err) throw err
|
|
22
|
-
process.stdout.write(stats.toString({
|
|
23
|
-
colors: true,
|
|
24
|
-
modules: false,
|
|
25
|
-
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
|
|
26
|
-
chunks: false,
|
|
27
|
-
chunkModules: false
|
|
28
|
-
}) + '\n\n')
|
|
29
|
-
|
|
30
|
-
if (stats.hasErrors()) {
|
|
31
|
-
console.log(chalk.red(' Build failed with errors.\n'))
|
|
32
|
-
process.exit(1)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
console.log(chalk.cyan(' Build complete.\n'))
|
|
36
|
-
console.log(chalk.yellow(
|
|
37
|
-
' Tip: built files are meant to be served over an HTTP server.\n' +
|
|
38
|
-
' Opening index.html over file:// won\'t work.\n'
|
|
39
|
-
))
|
|
40
|
-
})
|
|
41
|
-
})
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
const chalk = require('chalk')
|
|
3
|
-
const semver = require('semver')
|
|
4
|
-
const packageConfig = require('../package.json')
|
|
5
|
-
const shell = require('shelljs')
|
|
6
|
-
|
|
7
|
-
function exec (cmd) {
|
|
8
|
-
return require('child_process').execSync(cmd).toString().trim()
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const versionRequirements = [
|
|
12
|
-
{
|
|
13
|
-
name: 'node',
|
|
14
|
-
currentVersion: semver.clean(process.version),
|
|
15
|
-
versionRequirement: packageConfig.engines.node
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
|
|
19
|
-
if (shell.which('npm')) {
|
|
20
|
-
versionRequirements.push({
|
|
21
|
-
name: 'npm',
|
|
22
|
-
currentVersion: exec('npm --version'),
|
|
23
|
-
versionRequirement: packageConfig.engines.npm
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
module.exports = function () {
|
|
28
|
-
const warnings = []
|
|
29
|
-
|
|
30
|
-
for (let i = 0; i < versionRequirements.length; i++) {
|
|
31
|
-
const mod = versionRequirements[i]
|
|
32
|
-
|
|
33
|
-
if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
|
|
34
|
-
warnings.push(mod.name + ': ' +
|
|
35
|
-
chalk.red(mod.currentVersion) + ' should be ' +
|
|
36
|
-
chalk.green(mod.versionRequirement)
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (warnings.length) {
|
|
42
|
-
console.log('')
|
|
43
|
-
console.log(chalk.yellow('To use this template, you must update following to modules:'))
|
|
44
|
-
console.log()
|
|
45
|
-
|
|
46
|
-
for (let i = 0; i < warnings.length; i++) {
|
|
47
|
-
const warning = warnings[i]
|
|
48
|
-
console.log(' ' + warning)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
console.log()
|
|
52
|
-
process.exit(1)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
Binary file
|