Skip to content

Commit 47b71f3

Browse files
committed
Initial
0 parents  commit 47b71f3

File tree

6 files changed

+152
-0
lines changed

6 files changed

+152
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea
2+
build
3+
composer.lock
4+
docs
5+
vendor

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The MIT License (MIT)
2+
3+
Copyright (c) 2016 Pavel Agalecky <[email protected]>
4+
5+
> Permission is hereby granted, free of charge, to any person obtaining a copy
6+
> of this software and associated documentation files (the "Software"), to deal
7+
> in the Software without restriction, including without limitation the rights
8+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
> copies of the Software, and to permit persons to whom the Software is
10+
> furnished to do so, subject to the following conditions:
11+
>
12+
> The above copyright notice and this permission notice shall be included in
13+
> all copies or substantial portions of the Software.
14+
>
15+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
> THE SOFTWARE.

README.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# yii2-vuejs
2+
3+
[![Latest Version on Packagist][ico-version]][link-packagist]
4+
[![Software License][ico-license]](LICENSE.md)
5+
6+
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what
7+
PSRs you support to avoid any confusion with users and contributors.
8+
9+
## Install
10+
11+
Via Composer
12+
13+
``` bash
14+
$ composer require omnilight/yii2-vuejs
15+
```
16+
17+
## Usage
18+
19+
``` php
20+
$skeleton = new League\Skeleton();
21+
echo $skeleton->echoPhrase('Hello, League!');
22+
```
23+
24+
## Change log
25+
26+
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
27+
28+
## Testing
29+
30+
``` bash
31+
$ composer test
32+
```
33+
34+
## Security
35+
36+
If you discover any security related issues, please email :author_email instead of using the issue tracker.
37+
38+
## Credits
39+
40+
- [:author_name][link-author]
41+
42+
## License
43+
44+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
45+
46+
[ico-version]: https://img.shields.io/packagist/v/omnilight/yii2-vuejs.svg?style=flat-square
47+
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
48+
[ico-travis]: https://img.shields.io/travis/omnilight/yii2-vuejs/master.svg?style=flat-square
49+
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/omnilight/yii2-vuejs.svg?style=flat-square
50+
[ico-code-quality]: https://img.shields.io/scrutinizer/g/omnilight/yii2-vuejs.svg?style=flat-square
51+
[ico-downloads]: https://img.shields.io/packagist/dt/omnilight/yii2-vuejs.svg?style=flat-square
52+
53+
[link-packagist]: https://packagist.org/packages/omnilight/yii2-vuejs
54+
[link-travis]: https://travis-ci.org/omnilight/yii2-vuejs
55+
[link-scrutinizer]: https://scrutinizer-ci.com/g/omnilight/yii2-vuejs/code-structure
56+
[link-code-quality]: https://scrutinizer-ci.com/g/omnilight/yii2-vuejs
57+
[link-downloads]: https://packagist.org/packages/omnilight/yii2-vuejs
58+
[link-author]: https://github.com/omnilight
59+
[link-contributors]: ../../contributors

composer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "omnilight/yii2-vuejs",
3+
"type": "library",
4+
"description": "Vue.js library for Yii2 framework",
5+
"keywords": [
6+
"yii2",
7+
"omnilight",
8+
"vue",
9+
"vuejs"
10+
],
11+
"homepage": "https://github.com/omnilight/yii2-vuejs",
12+
"license": "MIT",
13+
"authors": [
14+
{
15+
"name": "Pavel Agalecky",
16+
"email": "[email protected]",
17+
"role": "Developer"
18+
}
19+
],
20+
"require": {
21+
"php" : "~5.5|~7.0",
22+
"bower-asset/vue": "^1.0.0"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"omnilight\\assets\\": "src"
27+
}
28+
},
29+
"extra": {
30+
"branch-alias": {
31+
"dev-master": "1.0-dev"
32+
}
33+
}
34+
}

src/VueJsAsset.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace omnilight\assets;
4+
use yii\web\AssetBundle;
5+
6+
7+
/**
8+
* Class VueJsAsset
9+
*/
10+
class VueJsAsset extends AssetBundle
11+
{
12+
public $sourcePath = '@bower/vue/dist';
13+
14+
public function init()
15+
{
16+
$this->js[] = YII_ENV_DEV ? 'vue.js' : 'vue.min.js';
17+
}
18+
}

0 commit comments

Comments
 (0)