This repository has been archived by the owner on Jun 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
10 changed files
with
697 additions
and
149 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,5 +1,7 @@ | ||
node_modules | ||
reports | ||
dist | ||
.DS_Store | ||
node_modules/ | ||
npm-debug.log | ||
test/coverage | ||
dist | ||
yarn-error.log | ||
reports |
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,36 @@ | ||
# Contributing | ||
|
||
Contributions are **welcome** and will be fully **credited**. | ||
|
||
We accept contributions via Pull Requests on [Github](https://github.com/posva/vue-mdc). | ||
|
||
|
||
## Pull Requests | ||
|
||
- **Keep the same style** - eslint will automatically be ran before committing | ||
|
||
- **Tip** to pass lint tests easier use the `npm run lint:fix` command | ||
|
||
- **Add tests!** - Your patch won't be accepted if it doesn't have tests. | ||
|
||
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. | ||
|
||
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option. | ||
|
||
- **Create feature branches** - Don't ask us to pull from your master branch. | ||
|
||
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. | ||
|
||
- **Send coherent history** - Make sure your commits message means something | ||
|
||
|
||
## Running Tests | ||
|
||
Launch visual tests and watch the components at the same time | ||
|
||
``` bash | ||
$ npm run dev | ||
``` | ||
|
||
|
||
**Happy coding**! |
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,20 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 Eduardo San Martin Morote | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,79 @@ | ||
# VueMdc | ||
|
||
[![npm](https://img.shields.io/npm/v/vue-mdc.svg)](https://www.npmjs.com/package/vue-mdc) [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/) | ||
|
||
> Material Components Web for Vue.js | ||
## Installation | ||
|
||
```bash | ||
npm install --save vue-mdc | ||
``` | ||
|
||
## Usage | ||
|
||
### Bundler (Webpack, Rollup) | ||
|
||
```js | ||
import Vue from 'vue' | ||
import VueMdc from 'vue-mdc' | ||
// You need a specific loader for CSS files like https://github.com/webpack/css-loader | ||
import 'vue-mdc/dist/vue-mdc.css' | ||
|
||
Vue.use(VueMdc) | ||
``` | ||
|
||
### Browser | ||
|
||
```html | ||
<!-- Include after Vue --> | ||
<!-- Local files --> | ||
<link rel="stylesheet" href="vue-mdc/dist/vue-mdc.css"></link> | ||
<script src="vue-mdc/dist/vue-mdc.js"></script> | ||
|
||
<!-- From CDN --> | ||
<link rel="stylesheet" href="https://unpkg.com/vue-mdc/dist/vue-mdc.css"></link> | ||
<script src="https://unpkg.com/vue-mdc"></script> | ||
``` | ||
|
||
## Development | ||
|
||
### Launch visual tests | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
### Launch Karma with coverage | ||
|
||
```bash | ||
npm run dev:coverage | ||
``` | ||
|
||
### Build | ||
|
||
Bundle the js and css of to the `dist` folder: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
|
||
## Publishing | ||
|
||
The `prepublish` hook will ensure dist files are created before publishing. This | ||
way you don't need to commit them in your repository. | ||
|
||
```bash | ||
# Bump the version first | ||
# It'll also commit it and create a tag | ||
npm version | ||
# Push the bumped package and tags | ||
git push --follow-tags | ||
# Ship it 🚀 | ||
npm publish | ||
``` | ||
|
||
## License | ||
|
||
[MIT](http://opensource.org/licenses/MIT) |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.