Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 2081177

Browse files
committed
Merge pull request #3 from znck/dev
Move develop to master
2 parents 8d942f2 + 634b00e commit 2081177

File tree

7 files changed

+164
-18
lines changed

7 files changed

+164
-18
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Changelog
2+
3+
All Notable changes to `rollup-plugin-vue` will be documented in this file.
4+
5+
## [Unreleased]
6+
7+
### Added
8+
- Nothing
9+
10+
### Deprecated
11+
- Nothing
12+
13+
### Fixed
14+
- Nothing
15+
16+
### Removed
17+
- Nothing
18+
19+
### Security
20+
- Nothing
21+
22+
## [1.0.3] - 2016-01-24
23+
24+
### Added
25+
- Initial release.
26+
27+
### Deprecated
28+
- Nothing
29+
30+
### Fixed
31+
- Nothing
32+
33+
### Removed
34+
- Nothing
35+
36+
### Security
37+
- Nothing
38+
39+
[Unreleased]: https://github.com/znck/rollup-plugin-vue/compare/v1.0.3...HEAD

CONDUCT.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
* Other unethical or unprofessional conduct.
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17+
18+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.
19+
20+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via Pull Requests on [Github](https://github.com/znck/rollup-plugin-vue).
6+
7+
8+
## Pull Requests
9+
10+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
11+
12+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
13+
14+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
15+
16+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
17+
18+
- **Create feature branches** - Don't ask us to pull from your master branch.
19+
20+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
21+
22+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
23+
24+
25+
## Running Tests
26+
27+
``` bash
28+
$ composer test
29+
```
30+
31+
32+
**Happy coding**!

README.md

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
1-
# rollup-plugin-vue [![circleci](https://circleci.com/gh/znck/rollup-plugin-vue.svg?style=shield&circle-token=:8f5a3f8b258950508dfe8574a46d9ba2de67f2d2)](https://circleci.com/gh/znck/rollup-plugin-vue) [![npm](https://img.shields.io/npm/v/rollup-plugin-vue.svg)](https://www.npmjs.com/package/rollup-plugin-vue) [![Coveralls](https://img.shields.io/coveralls/znck/rollup-plugin-vue.svg)](https://coveralls.io/github/znck/rollup-plugin-vue)
1+
# Rollup Plugin for Vue
2+
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.**
23

3-
Roll .vue files
4+
With rollup you can break your application into reusable modules.
45

5-
### Installation
6+
![Rollup Plugin for Vue](cover.png)
7+
8+
<p align="center">
9+
<a href="https://circleci.com/gh/znck/rollup-plugin-vue">
10+
<img src="https://circleci.com/gh/znck/rollup-plugin-vue.svg?style=svg" alt="Build Status" />
11+
</a>
12+
<a href="https://coveralls.io/github/znck/rollup-plugin-vue?branch=master">
13+
<img src="https://coveralls.io/repos/github/znck/rollup-plugin-vue/badge.svg?branch=master&style=flat-square" alt="Coverage Status" />
14+
</a>
15+
<a href="LICENSE">
16+
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="Software License" />
17+
</a>
18+
<a href="https://npmjs.org/package/znck/rollup-plugin-vue">
19+
<img src="https://img.shields.io/npm/v/rollup-plugin-vue.svg?style=flat-square" alt="NPM" />
20+
</a>
21+
<a href="https://github.com/znck/rollup-plugin-vue/releases">
22+
<img src="https://img.shields.io/github/release/znck/rollup-plugin-vue.svg?style=flat-square" alt="Latest Version" />
23+
</a>
24+
25+
<a href="https://github.com/znck/rollup-plugin-vue/issues">
26+
<img src="https://img.shields.io/github/issues/znck/rollup-plugin-vue.svg?style=flat-square" alt="Issues" />
27+
</a>
28+
</p>
629

30+
### Installation
31+
[Node](http://nodejs.org/) and [Rollup](http://rollupjs.org) are required.
732
```
8-
npm install --save-dev rollup rollup-plugin-vue
33+
npm install --save-dev rollup-plugin-vue
934
```
1035

11-
### Configuration
36+
### Usage
1237

1338
```js
1439
import {rollup} from 'rollup';
@@ -23,3 +48,34 @@ rollup({
2348
### Limitations
2449

2550
- Multiple script tags not working.
51+
52+
53+
## Change log
54+
55+
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
56+
57+
## Testing
58+
59+
``` bash
60+
$ npm run test
61+
```
62+
63+
## Contributing
64+
65+
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
66+
67+
## Security
68+
69+
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
70+
71+
## Credits
72+
73+
- [Rahul Kadyan][link-author]
74+
- [All Contributors][link-contributors]
75+
76+
## License
77+
78+
The MIT License (MIT). Please see [License File](LICENSE) for more information.
79+
80+
[link-author]: https://github.com/:author_username
81+
[link-contributors]: ../../contributors

cover.png

55.9 KB
Loading

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "NODE_ENV=production node --harmony config/build.js",
99
"test": "NODE_ENV=production mocha test/test.js --slow=5000 --timeout=10000",
10-
"coveralls": "NODE_ENV=production istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --slow=5000 --timeout=10000 test/test.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
10+
"coveralls": "NODE_ENV=production istanbul cover --default-excludes -x 'dist/**' -x 'config/**' ./node_modules/mocha/bin/_mocha --report lcovonly -- --slow=5000 --timeout=10000 test/test.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
1111
},
1212
"repository": {
1313
"type": "git",
@@ -25,33 +25,34 @@
2525
"homepage": "https://github.com/znck/rollup-plugin-vue#readme",
2626
"dependencies": {
2727
"rollup-pluginutils": "latest",
28-
"vueify": "latest"
29-
},
30-
"devDependencies": {
28+
"rollup": "latest",
29+
"vueify": "latest",
3130
"babel-core": "^6.1.2",
3231
"babel-plugin-transform-runtime": "latest",
3332
"babel-preset-es2015": "latest",
3433
"babel-preset-es2015-rollup": "latest",
3534
"babel-register": "latest",
3635
"babel-runtime": "^5.8.0",
3736
"coffee-script": "^1.10.0",
38-
"coveralls": "^2.11.6",
3937
"diff": "^2.2.1",
4038
"hash-sum": "latest",
4139
"html-minifier": "^1.1.1",
42-
"istanbul": "^0.4.2",
4340
"jade": "^1.11.0",
4441
"less": "^2.5.3",
4542
"minify": "^2.0.3",
46-
"mocha": "^2.3.4",
47-
"mocha-lcov-reporter": "^1.0.0",
4843
"node-sass": "^3.4.2",
4944
"rollup": "^0.25.1",
5045
"rollup-plugin-babel": "^2.3.9",
5146
"rollup-plugin-commonjs": "^2.2.0",
5247
"rollup-plugin-replace": "^1.1.0",
5348
"stylus": "^0.53.0",
54-
"vue-hot-reload-api": "^1.2.2",
5549
"vueify-insert-css": "^1.0.0"
50+
},
51+
"devDependencies": {
52+
"coveralls": "^2.11.6",
53+
"istanbul": "^0.4.2",
54+
"mocha": "^2.3.4",
55+
"mocha-lcov-reporter": "^1.0.0",
56+
"vue-hot-reload-api": "^1.2.2"
5657
}
5758
}

test/test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ function test(name) {
5151
var result = bundle['generate']();
5252
var code = result.code;
5353

54-
//if (code !== expected) {
55-
//console.warn([code, expected]);
56-
//}
57-
5854
assert.equal(code, expected, 'should compile correctly');
5955
// check src
6056

0 commit comments

Comments
 (0)