From bf811f859ecd264ae3ced8227282ebe484e6df7d Mon Sep 17 00:00:00 2001 From: Walker Date: Wed, 27 Dec 2017 15:00:51 -0200 Subject: [PATCH] feat(template): undo umd and cjs directories and export of .vue files --- package-lock.json | 2 +- template/README.md | 20 ++++---------------- template/package.json | 7 +++---- 3 files changed, 8 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index d382413..d5640ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-standalone-component", - "version": "1.0.4", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/template/README.md b/template/README.md index a5b2be0..41eb694 100644 --- a/template/README.md +++ b/template/README.md @@ -18,23 +18,11 @@ ## Usage -### With [vue-loader](https://github.com/vuejs/vue-loader) or [vueify](https://github.com/vuejs/vueify) - -```js -import {{ camelcase name }} from '{{ name }}.vue'; - -Vue.component('{{ name }}', {{ camelcase name }}); -``` - -```html -<{{name}} text="Hello World!"> -``` - ### ES6 Modules / CommonJS ```js -import {{ camelcase name }} from '{{ name }}/cjs/{{ name }}.min.js'; -import '{{ name }}/cjs/{{ name }}.min.css'; +import {{ camelcase name }} from '{{ name }}'; +import '{{ name }}/dist/{{ name }}.min.css'; Vue.component('{{ name }}', {{ camelcase name }}); ``` @@ -49,8 +37,8 @@ Vue.component('{{ name }}', {{ camelcase name }}); <{{name}} text="Hello World!"> - - + +