Permalink
Please sign in to comment.
Browse files
feat: Use @vue/component-compiler (vuejs#182)
* feat: use @vue/component-compiler * chore: add conventional changelog * chore: Version 4.0.0 * chore: Add circle config for pupperteer
- Loading branch information...
Showing
with
12,900 additions
and 3,950 deletions.
- +5 −8 .circleci/config.yml
- +1 −0 .gitignore
- +9 −0 CHANGELOG.md
- +13 −2 README.md
- +6 −6 config/banner.js
- +35 −53 config/build.js
- +43 −36 docs/config.js
- +6 −13 example/Hello.vue
- +10 −24 example/build.js
- +16 −0 example/package.json
- +13 −16 example/rollup.config.js
- +972 −0 example/yarn.lock
- +7,569 −0 package-lock.json
- +30 −57 package.json
- +10 −0 src/.babelrc
- +0 −3 src/debug.js
- +174 −0 src/delegate.js
- +0 −15 src/gen-scope-id.js
- +4 −79 src/index.js
- +0 −143 src/injections.js
- +0 −109 src/options.js
- +0 −15 src/script/coffee.js
- +0 −2 src/script/index.js
- +0 −14 src/script/typescript.js
- +52 −0 src/simple.js
- +0 −168 src/style/css.js
- +0 −78 src/style/index.js
- +0 −27 src/style/less/index.js
- +0 −27 src/style/postcss.js
- +0 −22 src/style/scss.js
- +0 −18 src/style/stylus.js
- +0 −30 src/template/html.js
- +0 −12 src/template/index.js
- +0 −6 src/template/pug.js
- +56 −0 src/utils.js
- +0 −268 src/vueTransform.js
- +43 −0 test/baseline.spec.js
- +0 −9 test/expects/basic.js
- +0 −11 test/expects/coffee.js
- +0 −19 test/expects/compileTemplate.js
- +0 −9 test/expects/compileTemplateLocalComponent.js
- +0 −3 test/expects/css-modules-static.css
- +0 −3 test/expects/css-modules-static.js
- +0 −3 test/expects/css-modules.css
- +0 −3 test/expects/css-modules.js
- +0 −3 test/expects/empty-less.css
- +0 −3 test/expects/empty-less.js
- +0 −10 test/expects/expression.js
- +0 −3 test/expects/external-script.css
- +0 −14 test/expects/external-script.js
- +0 −3 test/expects/import-less.js
- +0 −2 test/expects/import-scss.css
- +0 −3 test/expects/import-scss.js
- +0 −15 test/expects/imports.js
- +0 −3 test/expects/less.css
- +0 −3 test/expects/less.js
- +0 −8 test/expects/no-css-extract.js
- +0 −4 test/expects/noScript.js
- +0 −10 test/expects/noTemplate.js
- +0 −6 test/expects/postcss.css
- +0 −3 test/expects/postcss.js
- +0 −2 test/expects/pug.css
- +0 −3 test/expects/pug.js
- +0 −2 test/expects/sass.css
- +0 −3 test/expects/sass.js
- +0 −35 test/expects/scoped-css-with-deep-tag.css
- +0 −3 test/expects/scoped-css-with-deep-tag.js
- +0 −16 test/expects/scoped-css-with-no-auto-style.css
- +0 −3 test/expects/scoped-css-with-no-auto-style.js
- +0 −3 test/expects/scoped-css.css
- +0 −3 test/expects/scoped-css.js
- +0 −2 test/expects/scss.css
- +0 −3 test/expects/scss.js
- +0 −15 test/expects/selfClosingComponent.js
- +0 −7 test/expects/slot.js
- +0 −3 test/expects/style.css
- +0 −9 test/expects/style.js
- +0 −3 test/expects/stylus.css
- +0 −3 test/expects/stylus.js
- +0 −3 test/expects/table-n-slot.js
- +0 −3 test/expects/table.js
- +0 −7 test/expects/typescript-export-obj.js
- +0 −12 test/expects/typescript.js
- +0 −2 test/fixtures/app.ts
- +3 −6 test/fixtures/basic.vue
- +0 −8 test/fixtures/coffee.vue
- +0 −25 test/fixtures/compileTemplate.vue
- +0 −15 test/fixtures/compileTemplateLocalComponent.vue
- +0 −13 test/fixtures/css-modules-static.vue
- +0 −13 test/fixtures/css-modules.vue
- +0 −14 test/fixtures/empty-less.vue
- +0 −14 test/fixtures/expression.vue
- +0 −9 test/fixtures/external-script.js
- +0 −11 test/fixtures/external-script.vue
- +0 −11 test/fixtures/import-less.vue
- +0 −11 test/fixtures/import-scss.vue
- +0 −15 test/fixtures/imports.vue
- +0 −16 test/fixtures/less.vue
- BIN test/fixtures/logo.png
- +0 −28 test/fixtures/no-css-extract.vue
- +0 −3 test/fixtures/noScript.vue
- +0 −10 test/fixtures/noTemplate.vue
- +7 −0 test/fixtures/only-script.vue
- +3 −0 test/fixtures/only-template.vue
- +0 −8 test/fixtures/postcss.vue
- +0 −24 test/fixtures/pug.vue
- +0 −15 test/fixtures/sass.vue
- +0 −31 test/fixtures/scoped-css-with-deep-tag.vue
- +0 −19 test/fixtures/scoped-css-with-no-auto-style.vue
- +0 −13 test/fixtures/scoped-css.vue
- +5 −0 test/fixtures/script.js
- +0 −16 test/fixtures/scss.vue
- +0 −16 test/fixtures/selfClosingComponent.vue
- +0 −13 test/fixtures/slot.vue
- +0 −5 test/fixtures/some.less
- +0 −5 test/fixtures/some.scss
- +2 −2 test/{expects/import-less.css → fixtures/style.css}
- +0 −20 test/fixtures/style.vue
- +0 −14 test/fixtures/stylus.vue
- +0 −11 test/fixtures/table-n-slot.vue
- +0 −13 test/fixtures/table.vue
- +1 −0 test/fixtures/template.html
- +0 −10 test/fixtures/typescript-export-obj.vue
- +0 −24 test/fixtures/typescript.vue
- +19 −0 test/fixtures/with-custom-block.vue
- +5 −0 test/fixtures/with-import-script.vue
- +13 −0 test/fixtures/with-import-style.vue
- +9 −0 test/fixtures/with-import-template.vue
- +19 −0 test/fixtures/with-langs.vue
- +8 −0 test/fixtures/with-render-functional-style.vue
- +17 −0 test/fixtures/with-style-css-modules.vue
- +23 −0 test/fixtures/with-style-named-css-module.vue
- +57 −0 test/fixtures/with-style-scoped.vue
- +17 −0 test/fixtures/with-style.vue
- +22 −0 test/fixtures/with-template-comment.vue
- +18 −0 test/fixtures/with-template-functional-root.vue
- +22 −0 test/fixtures/with-template-functional.vue
- +25 −0 test/fixtures/with-template-require-transform.vue
- +109 −0 test/setup/index.js
- +0 −120 test/test.js
- +3,429 −1,800 yarn.lock
@@ -0,0 +1,9 @@ | |||
<a name="4.0.0"></a> | |||
# [4.0.0](https://github.com/znck/rollup-plugin-vue/compare/v2.5.2...v4.0.0) (2018-05-01) | |||
|
|||
### Features | |||
|
|||
* use [@vue](https://github.com/vue)/component-compiler ([e110aa0](https://github.com/znck/rollup-plugin-vue/commit/e110aa0)) | |||
|
|||
|
|||
|
@@ -1,14 +1,14 @@ | |||
"use strict"; | |||
'use strict' | |||
|
|||
let pack = require('../package.json'); | |||
const pack = require('../package.json') | |||
|
|||
const VERSION = process.env.VERSION || pack.version; | |||
const YEAR = new Date().getFullYear(); | |||
const VERSION = process.env.VERSION || pack.version | |||
const YEAR = new Date().getFullYear() | |||
|
|||
const BANNER = `/*! | |||
* ${pack.name} v${VERSION} | |||
* (c) ${YEAR} ${pack.author} | |||
* Release under the ${pack.license} License. | |||
*/`; | |||
*/` | |||
|
|||
module.exports = BANNER; | |||
module.exports = BANNER |
@@ -1,51 +1,58 @@ | |||
const languages = { | |||
title: 'Language', | |||
type: 'dropdown', | |||
exact: true, | |||
items: [ | |||
{ title: 'English', path: '/en/', matchPath: /\/en\/.*/i } | |||
] | |||
title: 'Language', | |||
type: 'dropdown', | |||
exact: true, | |||
items: [{ title: 'English', path: '/en/', matchPath: /\/en\/.*/i }] | |||
} | |||
|
|||
const home = { title: 'Home', path: '/' } | |||
|
|||
const versions = [ | |||
{ title: 'Version 2.2', path: '/2.2/', matchPath: /^\/([a-z-]+)\/2.2\/.*/i }, | |||
{ title: 'Version 2.3', path: '/2.3/', matchPath: /^\/([a-z-]+)\/2.3\/.*/i }, | |||
{ title: 'Version 2.2', path: '/2.2/', matchPath: /^\/([a-z-]+)\/2.2\/.*/i }, | |||
{ title: 'Version 2.3', path: '/2.3/', matchPath: /^\/([a-z-]+)\/2.3\/.*/i } | |||
] | |||
|
|||
function lang_version(lang) { | |||
const version = { | |||
title: 'Version', | |||
type: 'dropdown', | |||
exact: true, | |||
} | |||
version.items = versions.map(function (v) { | |||
const ver = Object.assign({}, v) | |||
ver.path = '/' + lang + ver.path | |||
|
|||
return ver | |||
}) | |||
const version = { | |||
title: 'Version', | |||
type: 'dropdown', | |||
exact: true | |||
} | |||
version.items = versions.map(function(v) { | |||
const ver = Object.assign({}, v) | |||
ver.path = '/' + lang + ver.path | |||
|
|||
return version | |||
return ver | |||
}) | |||
|
|||
return version | |||
} | |||
|
|||
docute.init({ | |||
repo: 'vuejs/rollup-plugin-vue', | |||
'edit-link': 'https://github.com/vuejs/rollup-plugin-vue/edit/master/docs', | |||
|
|||
nav: { | |||
default: [home, languages, lang_version('en')], | |||
'en2.3': [{ title: 'Home', path: '/en/2.3/' }, { title: 'Examples', path: '/en/2.3/examples' }, languages, lang_version('en')], | |||
'en2.2': [{ title: 'Home', path: '/en/2.2/' }, { title: 'Examples', path: '/en/2.2/examples' }, languages, lang_version('en')], | |||
}, | |||
|
|||
plugins: [ | |||
docsearch({ | |||
apiKey: '7792597613e997afeb0b75a206ca0c5a', | |||
indexName: 'rollup-plugin-vue', | |||
url: 'https://vuejs.github.io/rollup-plugin-vue' | |||
}) | |||
repo: 'vuejs/rollup-plugin-vue', | |||
'edit-link': 'https://github.com/vuejs/rollup-plugin-vue/edit/master/docs', | |||
|
|||
nav: { | |||
default: [home, languages, lang_version('en')], | |||
'en2.3': [ | |||
{ title: 'Home', path: '/en/2.3/' }, | |||
{ title: 'Examples', path: '/en/2.3/examples' }, | |||
languages, | |||
lang_version('en') | |||
], | |||
'en2.2': [ | |||
{ title: 'Home', path: '/en/2.2/' }, | |||
{ title: 'Examples', path: '/en/2.2/examples' }, | |||
languages, | |||
lang_version('en') | |||
] | |||
|
|||
}, | |||
|
|||
plugins: [ | |||
docsearch({ | |||
apiKey: '7792597613e997afeb0b75a206ca0c5a', | |||
indexName: 'rollup-plugin-vue', | |||
url: 'https://vuejs.github.io/rollup-plugin-vue' | |||
}) | |||
] | |||
}) |
@@ -1,23 +1,16 @@ | |||
<template> | |||
<div class="hello"> | |||
<h1 class="hello__title">{{ msg }}</h1> | |||
</div> | |||
<template functional> | |||
<div class="hello">{{ props.message }}</div> | |||
</template> | |||
|
|||
<script> | |||
export default { | |||
data () { | |||
return { | |||
msg: 'Hello World!' | |||
} | |||
} | |||
props: ['message'] | |||
} | |||
</script> | |||
|
|||
<style lang="stylus"> | |||
|
|||
<style scoped> | |||
.hello { | |||
&__title { | |||
color: #42b983; | |||
} | |||
color: red; | |||
} | |||
</style> |

Oops, something went wrong.
0 comments on commit
8409424