Permalink
Browse files

feat: Migrate codebase to typescript (vuejs#191)

* feat: Migrate codebase to typescript

* fix: Add puppeteer missing types
  • Loading branch information...
znck committed May 9, 2018
1 parent 2806494 commit 758e3307a6bbe98225553a1e373325c64bf6ca3e
Showing with 679 additions and 14,652 deletions.
  1. +1 −1 .circleci/config.yml
  2. +9 −29 README.md
  3. 0 docs/.nojekyll
  4. +0 −54 docs/README.md
  5. BIN docs/assets/images/opengraph.png
  6. BIN docs/assets/images/twitter.png
  7. BIN docs/assets/images/vue-component.png
  8. +0 −58 docs/config.js
  9. +0 −219 docs/en/2.2/README.md
  10. +0 −9 docs/en/2.2/examples.md
  11. +0 −357 docs/en/2.3/README.md
  12. +0 −34 docs/en/2.3/examples.md
  13. +0 −54 docs/en/README.md
  14. +0 −30 docs/index.html
  15. +0 −16 example/Hello.vue
  16. +0 −22 example/README.md
  17. +0 −54 example/build.js
  18. 0 example/dist/.gitkeep
  19. +0 −3 example/index.js
  20. +0 −16 example/package.json
  21. +0 −17 example/rollup.config.js
  22. +0 −972 example/yarn.lock
  23. +9 −0 jest.config.js
  24. BIN {docs/assets/images → }/logo.png
  25. +0 −12,384 package-lock.json
  26. +11 −5 package.json
  27. +0 −10 src/.babelrc
  28. +70 −42 src/{index.js → index.ts}
  29. +0 −71 src/utils.js
  30. +92 −0 src/utils.ts
  31. +17 −13 test/{baseline.spec.js → baseline.spec.ts}
  32. +1 −1 test/fixtures/basic.vue
  33. +2 −2 test/fixtures/only-script.vue
  34. +1 −1 test/fixtures/with-custom-block.vue
  35. +2 −1 test/fixtures/with-import-script.vue
  36. +3 −2 test/fixtures/with-import-style.vue
  37. +1 −1 test/fixtures/with-import-template.vue
  38. +1 −1 test/fixtures/with-langs.vue
  39. +6 −2 test/fixtures/with-render-functional-style.vue
  40. +1 −1 test/fixtures/with-style-css-modules.vue
  41. +1 −1 test/fixtures/with-style-named-css-module.vue
  42. +24 −8 test/fixtures/with-style-scoped.vue
  43. +1 −1 test/fixtures/with-style.vue
  44. +1 −1 test/fixtures/with-template-comment.vue
  45. +3 −1 test/fixtures/with-template-require-transform.vue
  46. +0 −118 test/setup/index.js
  47. +83 −0 test/setup/index.ts
  48. +46 −0 test/setup/plugins.ts
  49. +20 −0 tsconfig.json
  50. +4 −0 typings/hash-sum.d.ts
  51. +3 −0 typings/puppeteer.d.ts
  52. +25 −0 typings/rollup-plugins.d.ts
  53. +241 −40 yarn.lock
@@ -3,7 +3,7 @@ jobs:
build:
working_directory: ~/project
docker:
- image: alekzonder/puppeteer # base image: node/8-slim
- image: alekzonder/puppeteer # base pluginImage: node/8-slim
steps:
- checkout
- run:
@@ -1,8 +1,9 @@
<div class="text-xs-center" align="center" style="margin: 20px">
<img src="docs/assets/images/logo.png">
<img src="logo.png">
</div>

## Introduction

As vue-loader is for webpack and vueify is for browserify, similarly its for rollup. As we know, webpack and browserify concat stuff and make it runnable in browser. Its difficult to share .vue components. **Now roll your [Vue](http://vuejs.org/) components.**

With rollup you can break your application into reusable modules.
@@ -11,53 +12,32 @@ With rollup you can break your application into reusable modules.
<a href="https://circleci.com/gh/vuejs/rollup-plugin-vue">
<img src="https://circleci.com/gh/vuejs/rollup-plugin-vue.svg?style=svg" alt="Build Status" />
</a>
<a href="http://standardjs.com">
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg" alt="Code Style" />
</a>
<a href="https://coveralls.io/github/znck/rollup-plugin-vue?branch=master">
<img src="https://coveralls.io/repos/github/znck/rollup-plugin-vue/badge.svg?branch=master&style=flat-square" alt="Coverage Status" />
</a>
<a href="https://www.codacy.com/app/vuejs/rollup-plugin-vue">
<img src="https://api.codacy.com/project/badge/grade/e3402df0135240c29a1d25bab93932a0"/>
</a>
<a href="LICENSE">
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="Software License" />
</a>
<a href="https://npmjs.org/package/rollup-plugin-vue">
<img src="https://img.shields.io/npm/v/rollup-plugin-vue.svg?style=flat-square" alt="NPM" />
</a>
<a href="https://github.com/vuejs/rollup-plugin-vue/releases">
<img src="https://img.shields.io/github/release/vuejs/rollup-plugin-vue.svg?style=flat-square" alt="Latest Version" />
</a>

<a href="https://github.com/vuejs/rollup-plugin-vue/issues">
<img src="https://img.shields.io/github/issues/vuejs/rollup-plugin-vue.svg?style=flat-square" alt="Issues" />
</a>
</p>

## Usage

```js
import vue from 'rollup-plugin-vue'
export default {
export default {
entry: 'main.js',
plugins: [
vue(/* options */)
]
plugins: [vue(/* options */)]
}
```
```

## Security

If you discover any security related issues, please email hi@znck.me instead of using the issue tracker.

## Credits

- [Rahul Kadyan](https://github.com/znck)
- [Thomas Ghysels](https://github.com/thgh)
- [Eduardo San Martin Morote](https://github.com/posva)
- [All Contributors][link-contributors]
* [Rahul Kadyan](https://github.com/znck)
* [Thomas Ghysels](https://github.com/thgh)
* [Eduardo San Martin Morote](https://github.com/posva)
* [All Contributors][link-contributors]

## License

No changes.

This file was deleted.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 758e330

Please sign in to comment.