diff --git a/VueAsset.php b/VueAsset.php index 0b0c099..9c064bc 100644 --- a/VueAsset.php +++ b/VueAsset.php @@ -14,7 +14,6 @@ */ class VueAsset extends AssetBundle { - public $sourcePath='@bower/vue/dist/'; public $css = [ ]; @@ -26,6 +25,7 @@ class VueAsset extends AssetBundle ]; public function init() { - $this->js[] = YII_ENV_DEV ? 'vue.js' : 'vue.min.js'; + $this->sourcePath = __DIR__ . '/assets/'; + $this->js[] = YII_ENV_DEV ? 'vue/dist/vue.js' : 'vue/dist/vue.min.js'; } -} +} \ No newline at end of file diff --git a/asset/vue-drag-and-drop b/assets/vue-drag-and-drop similarity index 100% rename from asset/vue-drag-and-drop rename to assets/vue-drag-and-drop diff --git a/asset/vue/.bower.json b/assets/vue/.bower.json similarity index 100% rename from asset/vue/.bower.json rename to assets/vue/.bower.json diff --git a/asset/vue/LICENSE b/assets/vue/LICENSE similarity index 100% rename from asset/vue/LICENSE rename to assets/vue/LICENSE diff --git a/asset/vue/bower.json b/assets/vue/bower.json similarity index 100% rename from asset/vue/bower.json rename to assets/vue/bower.json diff --git a/asset/vue/dist/vue.common.js b/assets/vue/dist/vue.common.js similarity index 100% rename from asset/vue/dist/vue.common.js rename to assets/vue/dist/vue.common.js diff --git a/asset/vue/dist/vue.js b/assets/vue/dist/vue.js similarity index 100% rename from asset/vue/dist/vue.js rename to assets/vue/dist/vue.js diff --git a/asset/vue/dist/vue.min.js b/assets/vue/dist/vue.min.js similarity index 100% rename from asset/vue/dist/vue.min.js rename to assets/vue/dist/vue.min.js diff --git a/asset/vue/src/batcher.js b/assets/vue/src/batcher.js similarity index 100% rename from asset/vue/src/batcher.js rename to assets/vue/src/batcher.js diff --git a/asset/vue/src/cache.js b/assets/vue/src/cache.js similarity index 100% rename from asset/vue/src/cache.js rename to assets/vue/src/cache.js diff --git a/asset/vue/src/compiler/compile-props.js b/assets/vue/src/compiler/compile-props.js similarity index 100% rename from asset/vue/src/compiler/compile-props.js rename to assets/vue/src/compiler/compile-props.js diff --git a/asset/vue/src/compiler/compile.js b/assets/vue/src/compiler/compile.js similarity index 100% rename from asset/vue/src/compiler/compile.js rename to assets/vue/src/compiler/compile.js diff --git a/asset/vue/src/compiler/index.js b/assets/vue/src/compiler/index.js similarity index 100% rename from asset/vue/src/compiler/index.js rename to assets/vue/src/compiler/index.js diff --git a/asset/vue/src/compiler/resolve-slots.js b/assets/vue/src/compiler/resolve-slots.js similarity index 100% rename from asset/vue/src/compiler/resolve-slots.js rename to assets/vue/src/compiler/resolve-slots.js diff --git a/asset/vue/src/compiler/transclude.js b/assets/vue/src/compiler/transclude.js similarity index 100% rename from asset/vue/src/compiler/transclude.js rename to assets/vue/src/compiler/transclude.js diff --git a/asset/vue/src/config.js b/assets/vue/src/config.js similarity index 100% rename from asset/vue/src/config.js rename to assets/vue/src/config.js diff --git a/asset/vue/src/directive.js b/assets/vue/src/directive.js similarity index 100% rename from asset/vue/src/directive.js rename to assets/vue/src/directive.js diff --git a/asset/vue/src/directives/element/index.js b/assets/vue/src/directives/element/index.js similarity index 100% rename from asset/vue/src/directives/element/index.js rename to assets/vue/src/directives/element/index.js diff --git a/asset/vue/src/directives/element/partial.js b/assets/vue/src/directives/element/partial.js similarity index 100% rename from asset/vue/src/directives/element/partial.js rename to assets/vue/src/directives/element/partial.js diff --git a/asset/vue/src/directives/element/slot.js b/assets/vue/src/directives/element/slot.js similarity index 100% rename from asset/vue/src/directives/element/slot.js rename to assets/vue/src/directives/element/slot.js diff --git a/asset/vue/src/directives/internal/class.js b/assets/vue/src/directives/internal/class.js similarity index 100% rename from asset/vue/src/directives/internal/class.js rename to assets/vue/src/directives/internal/class.js diff --git a/asset/vue/src/directives/internal/component.js b/assets/vue/src/directives/internal/component.js similarity index 100% rename from asset/vue/src/directives/internal/component.js rename to assets/vue/src/directives/internal/component.js diff --git a/asset/vue/src/directives/internal/index.js b/assets/vue/src/directives/internal/index.js similarity index 100% rename from asset/vue/src/directives/internal/index.js rename to assets/vue/src/directives/internal/index.js diff --git a/asset/vue/src/directives/internal/prop.js b/assets/vue/src/directives/internal/prop.js similarity index 100% rename from asset/vue/src/directives/internal/prop.js rename to assets/vue/src/directives/internal/prop.js diff --git a/asset/vue/src/directives/internal/style.js b/assets/vue/src/directives/internal/style.js similarity index 100% rename from asset/vue/src/directives/internal/style.js rename to assets/vue/src/directives/internal/style.js diff --git a/asset/vue/src/directives/internal/transition.js b/assets/vue/src/directives/internal/transition.js similarity index 100% rename from asset/vue/src/directives/internal/transition.js rename to assets/vue/src/directives/internal/transition.js diff --git a/asset/vue/src/directives/priorities.js b/assets/vue/src/directives/priorities.js similarity index 100% rename from asset/vue/src/directives/priorities.js rename to assets/vue/src/directives/priorities.js diff --git a/asset/vue/src/directives/public/bind.js b/assets/vue/src/directives/public/bind.js similarity index 100% rename from asset/vue/src/directives/public/bind.js rename to assets/vue/src/directives/public/bind.js diff --git a/asset/vue/src/directives/public/cloak.js b/assets/vue/src/directives/public/cloak.js similarity index 100% rename from asset/vue/src/directives/public/cloak.js rename to assets/vue/src/directives/public/cloak.js diff --git a/asset/vue/src/directives/public/el.js b/assets/vue/src/directives/public/el.js similarity index 100% rename from asset/vue/src/directives/public/el.js rename to assets/vue/src/directives/public/el.js diff --git a/asset/vue/src/directives/public/for.js b/assets/vue/src/directives/public/for.js similarity index 100% rename from asset/vue/src/directives/public/for.js rename to assets/vue/src/directives/public/for.js diff --git a/asset/vue/src/directives/public/html.js b/assets/vue/src/directives/public/html.js similarity index 100% rename from asset/vue/src/directives/public/html.js rename to assets/vue/src/directives/public/html.js diff --git a/asset/vue/src/directives/public/if.js b/assets/vue/src/directives/public/if.js similarity index 100% rename from asset/vue/src/directives/public/if.js rename to assets/vue/src/directives/public/if.js diff --git a/asset/vue/src/directives/public/index.js b/assets/vue/src/directives/public/index.js similarity index 100% rename from asset/vue/src/directives/public/index.js rename to assets/vue/src/directives/public/index.js diff --git a/asset/vue/src/directives/public/model/checkbox.js b/assets/vue/src/directives/public/model/checkbox.js similarity index 100% rename from asset/vue/src/directives/public/model/checkbox.js rename to assets/vue/src/directives/public/model/checkbox.js diff --git a/asset/vue/src/directives/public/model/index.js b/assets/vue/src/directives/public/model/index.js similarity index 100% rename from asset/vue/src/directives/public/model/index.js rename to assets/vue/src/directives/public/model/index.js diff --git a/asset/vue/src/directives/public/model/radio.js b/assets/vue/src/directives/public/model/radio.js similarity index 100% rename from asset/vue/src/directives/public/model/radio.js rename to assets/vue/src/directives/public/model/radio.js diff --git a/asset/vue/src/directives/public/model/select.js b/assets/vue/src/directives/public/model/select.js similarity index 100% rename from asset/vue/src/directives/public/model/select.js rename to assets/vue/src/directives/public/model/select.js diff --git a/asset/vue/src/directives/public/model/text.js b/assets/vue/src/directives/public/model/text.js similarity index 100% rename from asset/vue/src/directives/public/model/text.js rename to assets/vue/src/directives/public/model/text.js diff --git a/asset/vue/src/directives/public/on.js b/assets/vue/src/directives/public/on.js similarity index 100% rename from asset/vue/src/directives/public/on.js rename to assets/vue/src/directives/public/on.js diff --git a/asset/vue/src/directives/public/ref.js b/assets/vue/src/directives/public/ref.js similarity index 100% rename from asset/vue/src/directives/public/ref.js rename to assets/vue/src/directives/public/ref.js diff --git a/asset/vue/src/directives/public/show.js b/assets/vue/src/directives/public/show.js similarity index 100% rename from asset/vue/src/directives/public/show.js rename to assets/vue/src/directives/public/show.js diff --git a/asset/vue/src/directives/public/text.js b/assets/vue/src/directives/public/text.js similarity index 100% rename from asset/vue/src/directives/public/text.js rename to assets/vue/src/directives/public/text.js diff --git a/asset/vue/src/filters/array-filters.js b/assets/vue/src/filters/array-filters.js similarity index 100% rename from asset/vue/src/filters/array-filters.js rename to assets/vue/src/filters/array-filters.js diff --git a/asset/vue/src/filters/index.js b/assets/vue/src/filters/index.js similarity index 100% rename from asset/vue/src/filters/index.js rename to assets/vue/src/filters/index.js diff --git a/asset/vue/src/fragment/factory.js b/assets/vue/src/fragment/factory.js similarity index 100% rename from asset/vue/src/fragment/factory.js rename to assets/vue/src/fragment/factory.js diff --git a/asset/vue/src/fragment/fragment.js b/assets/vue/src/fragment/fragment.js similarity index 100% rename from asset/vue/src/fragment/fragment.js rename to assets/vue/src/fragment/fragment.js diff --git a/asset/vue/src/global-api.js b/assets/vue/src/global-api.js similarity index 100% rename from asset/vue/src/global-api.js rename to assets/vue/src/global-api.js diff --git a/asset/vue/src/index.js b/assets/vue/src/index.js similarity index 100% rename from asset/vue/src/index.js rename to assets/vue/src/index.js diff --git a/asset/vue/src/instance/api/data.js b/assets/vue/src/instance/api/data.js similarity index 100% rename from asset/vue/src/instance/api/data.js rename to assets/vue/src/instance/api/data.js diff --git a/asset/vue/src/instance/api/dom.js b/assets/vue/src/instance/api/dom.js similarity index 100% rename from asset/vue/src/instance/api/dom.js rename to assets/vue/src/instance/api/dom.js diff --git a/asset/vue/src/instance/api/events.js b/assets/vue/src/instance/api/events.js similarity index 100% rename from asset/vue/src/instance/api/events.js rename to assets/vue/src/instance/api/events.js diff --git a/asset/vue/src/instance/api/lifecycle.js b/assets/vue/src/instance/api/lifecycle.js similarity index 100% rename from asset/vue/src/instance/api/lifecycle.js rename to assets/vue/src/instance/api/lifecycle.js diff --git a/asset/vue/src/instance/internal/events.js b/assets/vue/src/instance/internal/events.js similarity index 100% rename from asset/vue/src/instance/internal/events.js rename to assets/vue/src/instance/internal/events.js diff --git a/asset/vue/src/instance/internal/init.js b/assets/vue/src/instance/internal/init.js similarity index 100% rename from asset/vue/src/instance/internal/init.js rename to assets/vue/src/instance/internal/init.js diff --git a/asset/vue/src/instance/internal/lifecycle.js b/assets/vue/src/instance/internal/lifecycle.js similarity index 100% rename from asset/vue/src/instance/internal/lifecycle.js rename to assets/vue/src/instance/internal/lifecycle.js diff --git a/asset/vue/src/instance/internal/misc.js b/assets/vue/src/instance/internal/misc.js similarity index 100% rename from asset/vue/src/instance/internal/misc.js rename to assets/vue/src/instance/internal/misc.js diff --git a/asset/vue/src/instance/internal/state.js b/assets/vue/src/instance/internal/state.js similarity index 100% rename from asset/vue/src/instance/internal/state.js rename to assets/vue/src/instance/internal/state.js diff --git a/asset/vue/src/instance/vue.js b/assets/vue/src/instance/vue.js similarity index 100% rename from asset/vue/src/instance/vue.js rename to assets/vue/src/instance/vue.js diff --git a/asset/vue/src/observer/array.js b/assets/vue/src/observer/array.js similarity index 100% rename from asset/vue/src/observer/array.js rename to assets/vue/src/observer/array.js diff --git a/asset/vue/src/observer/dep.js b/assets/vue/src/observer/dep.js similarity index 100% rename from asset/vue/src/observer/dep.js rename to assets/vue/src/observer/dep.js diff --git a/asset/vue/src/observer/index.js b/assets/vue/src/observer/index.js similarity index 100% rename from asset/vue/src/observer/index.js rename to assets/vue/src/observer/index.js diff --git a/asset/vue/src/parsers/directive.js b/assets/vue/src/parsers/directive.js similarity index 100% rename from asset/vue/src/parsers/directive.js rename to assets/vue/src/parsers/directive.js diff --git a/asset/vue/src/parsers/expression.js b/assets/vue/src/parsers/expression.js similarity index 100% rename from asset/vue/src/parsers/expression.js rename to assets/vue/src/parsers/expression.js diff --git a/asset/vue/src/parsers/path.js b/assets/vue/src/parsers/path.js similarity index 100% rename from asset/vue/src/parsers/path.js rename to assets/vue/src/parsers/path.js diff --git a/asset/vue/src/parsers/template.js b/assets/vue/src/parsers/template.js similarity index 100% rename from asset/vue/src/parsers/template.js rename to assets/vue/src/parsers/template.js diff --git a/asset/vue/src/parsers/text.js b/assets/vue/src/parsers/text.js similarity index 100% rename from asset/vue/src/parsers/text.js rename to assets/vue/src/parsers/text.js diff --git a/asset/vue/src/transition/index.js b/assets/vue/src/transition/index.js similarity index 100% rename from asset/vue/src/transition/index.js rename to assets/vue/src/transition/index.js diff --git a/asset/vue/src/transition/queue.js b/assets/vue/src/transition/queue.js similarity index 100% rename from asset/vue/src/transition/queue.js rename to assets/vue/src/transition/queue.js diff --git a/asset/vue/src/transition/transition.js b/assets/vue/src/transition/transition.js similarity index 100% rename from asset/vue/src/transition/transition.js rename to assets/vue/src/transition/transition.js diff --git a/asset/vue/src/util/component.js b/assets/vue/src/util/component.js similarity index 100% rename from asset/vue/src/util/component.js rename to assets/vue/src/util/component.js diff --git a/asset/vue/src/util/debug.js b/assets/vue/src/util/debug.js similarity index 100% rename from asset/vue/src/util/debug.js rename to assets/vue/src/util/debug.js diff --git a/asset/vue/src/util/dom.js b/assets/vue/src/util/dom.js similarity index 100% rename from asset/vue/src/util/dom.js rename to assets/vue/src/util/dom.js diff --git a/asset/vue/src/util/env.js b/assets/vue/src/util/env.js similarity index 100% rename from asset/vue/src/util/env.js rename to assets/vue/src/util/env.js diff --git a/asset/vue/src/util/index.js b/assets/vue/src/util/index.js similarity index 100% rename from asset/vue/src/util/index.js rename to assets/vue/src/util/index.js diff --git a/asset/vue/src/util/lang.js b/assets/vue/src/util/lang.js similarity index 100% rename from asset/vue/src/util/lang.js rename to assets/vue/src/util/lang.js diff --git a/asset/vue/src/util/options.js b/assets/vue/src/util/options.js similarity index 100% rename from asset/vue/src/util/options.js rename to assets/vue/src/util/options.js diff --git a/asset/vue/src/watcher.js b/assets/vue/src/watcher.js similarity index 100% rename from asset/vue/src/watcher.js rename to assets/vue/src/watcher.js